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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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', '7.0.0')
  8. cfg_pamac_tray.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_3 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac_tray)
  13. pamac_tray_deps = [json_glib_1_0_dep]
  14. pamac_tray_deps += [libalpm_dep]
  15. pamac_tray_deps += [libnotify_dep]
  16. if KDE_TRAY
  17. pamac_tray_deps += [appindicator3_0_1_dep]
  18. else
  19. pamac_tray_deps += [gtk_3_0_dep]
  20. endif
  21. pamac_tray_deps += [gio_2_0_dep]
  22. pamac_tray_deps += [glib_2_0_dep]
  23. pamac_tray_deps += [gobject_2_0_dep]
  24. pamac_tray_sources = [cfgfile_3]
  25. if KDE_TRAY
  26. pamac_tray_sources += ['tray-appindicator.vala']
  27. else
  28. pamac_tray_sources += ['tray-gtk.vala']
  29. endif
  30. pamac_tray_sources += ['tray.vala']
  31. pamac_tray_vala_args = ['--pkg','posix']
  32. pamac_tray_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  33. pamac_tray_dependencies = [Pamac_library]
  34. pamac_tray_c_args = []
  35. if ENABLE_UPDATE_ICON
  36. pamac_tray_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  37. pamac_tray_c_args += ['-DENABLE_UPDATE_ICON']
  38. endif
  39. if ENABLE_HAMBURGER
  40. pamac_tray_vala_args += ['-D', 'ENABLE_HAMBURGER']
  41. pamac_tray_c_args += ['-DENABLE_HAMBURGER']
  42. endif
  43. if KDE_TRAY
  44. pamac_tray_vala_args += ['-D', 'KDE_TRAY']
  45. pamac_tray_c_args += ['-DKDE_TRAY']
  46. endif
  47. if DISABLE_AUR
  48. pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
  49. pamac_tray_c_args += ['-DDISABLE_AUR']
  50. endif
  51. pamac_tray_link_args = ['-rdynamic']
  52. pamac_tray_hfolders = ['../../src']
  53. executable('pamac-tray',pamac_tray_sources,
  54. dependencies: pamac_tray_deps,
  55. vala_args: pamac_tray_vala_args,
  56. c_args: pamac_tray_c_args,
  57. link_args: pamac_tray_link_args,
  58. link_with: pamac_tray_dependencies,
  59. include_directories: include_directories(pamac_tray_hfolders),
  60. install: true)