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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. cfg_pamac_user_daemon = configuration_data()
  2. cfg_pamac_user_daemon.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_user_daemon.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_user_daemon.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_user_daemon.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_user_daemon.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_user_daemon.set('VERSION', '6.7.0')
  8. cfg_pamac_user_daemon.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_2 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_user_daemon)
  10. pamac_user_daemon_deps = [gtk_3_0_dep]
  11. pamac_user_daemon_deps += [json_glib_1_0_dep]
  12. pamac_user_daemon_deps += [libalpm_dep]
  13. pamac_user_daemon_deps += [libsoup_2_4_dep]
  14. pamac_user_daemon_deps += [gio_2_0_dep]
  15. pamac_user_daemon_deps += [glib_2_0_dep]
  16. pamac_user_daemon_deps += [gobject_2_0_dep]
  17. pamac_user_daemon_sources = [cfgfile_2]
  18. pamac_user_daemon_sources += ['alpm_config.vala']
  19. pamac_user_daemon_sources += ['pamac_config.vala']
  20. pamac_user_daemon_sources += ['user_daemon.vala']
  21. pamac_user_daemon_vala_args = ['--pkg','posix']
  22. pamac_user_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  23. pamac_user_daemon_dependencies = [pamacclassic_library]
  24. pamac_user_daemon_c_args = []
  25. if ENABLE_UPDATE_ICON
  26. pamac_user_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  27. pamac_user_daemon_c_args += ['-DENABLE_UPDATE_ICON']
  28. endif
  29. if ENABLE_HAMBURGER
  30. pamac_user_daemon_vala_args += ['-D', 'ENABLE_HAMBURGER']
  31. pamac_user_daemon_c_args += ['-DENABLE_HAMBURGER']
  32. endif
  33. if KDE_TRAY
  34. pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY']
  35. pamac_user_daemon_c_args += ['-DKDE_TRAY']
  36. endif
  37. if DISABLE_AUR
  38. pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
  39. pamac_user_daemon_c_args += ['-DDISABLE_AUR']
  40. endif
  41. pamac_user_daemon_link_args = ['-rdynamic']
  42. pamac_user_daemon_hfolders = ['../../src']
  43. executable('pamac-user-daemon',pamac_user_daemon_sources,dependencies: pamac_user_daemon_deps,vala_args: pamac_user_daemon_vala_args,c_args: pamac_user_daemon_c_args,link_args: pamac_user_daemon_link_args,link_with: pamac_user_daemon_dependencies,include_directories: include_directories(pamac_user_daemon_hfolders),install: true)