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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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', '6.7.0')
  8. cfg_pamac_system_daemon.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_7 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_system_daemon)
  10. pamac_system_daemon_deps = [gtk_3_0_dep]
  11. pamac_system_daemon_deps += [json_glib_1_0_dep]
  12. pamac_system_daemon_deps += [libalpm_dep]
  13. pamac_system_daemon_deps += [libcurl_dep]
  14. pamac_system_daemon_deps += [libsoup_2_4_dep]
  15. pamac_system_daemon_deps += [polkit_gobject_1_dep]
  16. pamac_system_daemon_deps += [gio_2_0_dep]
  17. pamac_system_daemon_deps += [glib_2_0_dep]
  18. pamac_system_daemon_deps += [gobject_2_0_dep]
  19. pamac_system_daemon_sources = [cfgfile_7]
  20. pamac_system_daemon_sources += ['alpm_config.vala']
  21. pamac_system_daemon_sources += ['mirrors_config.vala']
  22. pamac_system_daemon_sources += ['pamac_config.vala']
  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 = [pamacclassic_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,dependencies: pamac_system_daemon_deps,vala_args: pamac_system_daemon_vala_args,c_args: pamac_system_daemon_c_args,link_args: pamac_system_daemon_link_args,link_with: pamac_system_daemon_dependencies,include_directories: include_directories(pamac_system_daemon_hfolders),install: true)