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.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. cfg_pamac_system_daemon = configuration_data()
  2. cfg_pamac_system_daemon.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_system_daemon.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_system_daemon.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_system_daemon.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_system_daemon.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_system_daemon.set('VERSION', '7.0.0')
  8. cfg_pamac_system_daemon.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_7 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac_system_daemon)
  13. pamac_system_daemon_deps = [gtk_3_0_dep]
  14. pamac_system_daemon_deps += [json_glib_1_0_dep]
  15. pamac_system_daemon_deps += [libalpm_dep]
  16. pamac_system_daemon_deps += [libcurl_dep]
  17. pamac_system_daemon_deps += [libsoup_2_4_dep]
  18. pamac_system_daemon_deps += [polkit_gobject_1_dep]
  19. pamac_system_daemon_deps += [gio_2_0_dep]
  20. pamac_system_daemon_deps += [glib_2_0_dep]
  21. pamac_system_daemon_deps += [gobject_2_0_dep]
  22. pamac_system_daemon_sources = [cfgfile_7]
  23. pamac_system_daemon_sources += ['system_daemon.vala']
  24. pamac_system_daemon_vala_args = ['--pkg','posix']
  25. pamac_system_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  26. pamac_system_daemon_dependencies = [Pamac_library]
  27. pamac_system_daemon_c_args = []
  28. if ENABLE_UPDATE_ICON
  29. pamac_system_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  30. pamac_system_daemon_c_args += ['-DENABLE_UPDATE_ICON']
  31. endif
  32. if ENABLE_HAMBURGER
  33. pamac_system_daemon_vala_args += ['-D', 'ENABLE_HAMBURGER']
  34. pamac_system_daemon_c_args += ['-DENABLE_HAMBURGER']
  35. endif
  36. if KDE_TRAY
  37. pamac_system_daemon_vala_args += ['-D', 'KDE_TRAY']
  38. pamac_system_daemon_c_args += ['-DKDE_TRAY']
  39. endif
  40. if DISABLE_AUR
  41. pamac_system_daemon_vala_args += ['-D', 'DISABLE_AUR']
  42. pamac_system_daemon_c_args += ['-DDISABLE_AUR']
  43. endif
  44. pamac_system_daemon_link_args = ['-rdynamic']
  45. pamac_system_daemon_hfolders = ['../../src']
  46. executable('pamac-system-daemon',pamac_system_daemon_sources,
  47. dependencies: pamac_system_daemon_deps,
  48. vala_args: pamac_system_daemon_vala_args,
  49. c_args: pamac_system_daemon_c_args,
  50. link_args: pamac_system_daemon_link_args,
  51. link_with: pamac_system_daemon_dependencies,
  52. include_directories: include_directories(pamac_system_daemon_hfolders),
  53. install: true)