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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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', '7.0.2')
  8. cfg_pamac_user_daemon.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_2 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac_user_daemon)
  13. pamac_user_daemon_deps = [gtk_3_0_dep]
  14. pamac_user_daemon_deps += [json_glib_1_0_dep]
  15. pamac_user_daemon_deps += [libalpm_dep]
  16. pamac_user_daemon_deps += [libsoup_2_4_dep]
  17. pamac_user_daemon_deps += [gio_2_0_dep]
  18. pamac_user_daemon_deps += [glib_2_0_dep]
  19. pamac_user_daemon_deps += [gobject_2_0_dep]
  20. pamac_user_daemon_sources = [cfgfile_2]
  21. pamac_user_daemon_sources += ['user_daemon.vala']
  22. pamac_user_daemon_vala_args = ['--pkg','posix']
  23. pamac_user_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  24. pamac_user_daemon_dependencies = [Pamac_library]
  25. pamac_user_daemon_c_args = []
  26. if ENABLE_UPDATE_ICON
  27. pamac_user_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  28. pamac_user_daemon_c_args += ['-DENABLE_UPDATE_ICON']
  29. endif
  30. if ENABLE_HAMBURGER
  31. pamac_user_daemon_vala_args += ['-D', 'ENABLE_HAMBURGER']
  32. pamac_user_daemon_c_args += ['-DENABLE_HAMBURGER']
  33. endif
  34. if KDE_TRAY
  35. pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY']
  36. pamac_user_daemon_c_args += ['-DKDE_TRAY']
  37. endif
  38. if DISABLE_AUR
  39. pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
  40. pamac_user_daemon_c_args += ['-DDISABLE_AUR']
  41. endif
  42. pamac_user_daemon_link_args = ['-rdynamic']
  43. pamac_user_daemon_hfolders = ['../../src']
  44. executable('pamac-user-daemon',pamac_user_daemon_sources,
  45. dependencies: pamac_user_daemon_deps,
  46. vala_args: pamac_user_daemon_vala_args,
  47. c_args: pamac_user_daemon_c_args,
  48. link_args: pamac_user_daemon_link_args,
  49. link_with: pamac_user_daemon_dependencies,
  50. include_directories: include_directories(pamac_user_daemon_hfolders),
  51. install: true)