Graphical package manager for pacman based on pamac 5.x.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

meson.build 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. cfg_pamac_tray = configuration_data()
  2. cfg_pamac_tray.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_tray.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_tray.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_tray.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_tray.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_tray.set('VERSION', '6.7.0')
  8. cfg_pamac_tray.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_3 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_tray)
  10. pamac_tray_deps = [json_glib_1_0_dep]
  11. pamac_tray_deps += [libalpm_dep]
  12. pamac_tray_deps += [libnotify_dep]
  13. if KDE_TRAY
  14. pamac_tray_deps += [appindicator3_0_1_dep]
  15. else
  16. pamac_tray_deps += [gtk_3_0_dep]
  17. endif
  18. pamac_tray_deps += [gio_2_0_dep]
  19. pamac_tray_deps += [glib_2_0_dep]
  20. pamac_tray_deps += [gobject_2_0_dep]
  21. pamac_tray_sources = [cfgfile_3]
  22. if KDE_TRAY
  23. pamac_tray_sources += ['tray-appindicator.vala']
  24. else
  25. pamac_tray_sources += ['tray-gtk.vala']
  26. endif
  27. pamac_tray_sources += ['alpm_config.vala']
  28. pamac_tray_sources += ['pamac_config.vala']
  29. pamac_tray_sources += ['tray.vala']
  30. pamac_tray_vala_args = ['--pkg','posix']
  31. pamac_tray_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  32. pamac_tray_dependencies = [pamacclassic_library]
  33. pamac_tray_c_args = []
  34. if ENABLE_UPDATE_ICON
  35. pamac_tray_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  36. pamac_tray_c_args += ['-DENABLE_UPDATE_ICON']
  37. endif
  38. if ENABLE_HAMBURGER
  39. pamac_tray_vala_args += ['-D', 'ENABLE_HAMBURGER']
  40. pamac_tray_c_args += ['-DENABLE_HAMBURGER']
  41. endif
  42. if KDE_TRAY
  43. pamac_tray_vala_args += ['-D', 'KDE_TRAY']
  44. pamac_tray_c_args += ['-DKDE_TRAY']
  45. endif
  46. if DISABLE_AUR
  47. pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
  48. pamac_tray_c_args += ['-DDISABLE_AUR']
  49. endif
  50. pamac_tray_link_args = ['-rdynamic']
  51. pamac_tray_hfolders = ['../../src']
  52. executable('pamac-tray',pamac_tray_sources,dependencies: pamac_tray_deps,vala_args: pamac_tray_vala_args,c_args: pamac_tray_c_args,link_args: pamac_tray_link_args,link_with: pamac_tray_dependencies,include_directories: include_directories(pamac_tray_hfolders),install: true)