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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. cfg_pamac_manager = configuration_data()
  2. cfg_pamac_manager.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_manager.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_manager.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_manager.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_manager.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_manager.set('VERSION', '7.0.0')
  8. cfg_pamac_manager.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_6 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac_manager)
  13. pamac_manager_deps = [gtk_3_0_dep]
  14. pamac_manager_deps += [json_glib_1_0_dep]
  15. pamac_manager_deps += [gio_2_0_dep]
  16. pamac_manager_deps += [glib_2_0_dep]
  17. pamac_manager_deps += [gobject_2_0_dep]
  18. pamac_manager_sources = [cfgfile_6]
  19. pamac_manager_sources += ['history_dialog.vala']
  20. pamac_manager_sources += ['manager.vala']
  21. pamac_manager_sources += ['manager_window.vala']
  22. pamac_manager_sources += [pamac_manager_gresource_xml_file_c]
  23. pamac_manager_sources += [join_paths(meson.current_source_dir(),'../vapis/libalpm.vapi')]
  24. pamac_manager_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  25. pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager.gresource.xml')]
  26. pamac_manager_dependencies = [Pamac_library]
  27. pamac_manager_c_args = []
  28. if ENABLE_UPDATE_ICON
  29. pamac_manager_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  30. pamac_manager_c_args += ['-DENABLE_UPDATE_ICON']
  31. endif
  32. if ENABLE_HAMBURGER
  33. pamac_manager_vala_args += ['-D', 'ENABLE_HAMBURGER']
  34. pamac_manager_c_args += ['-DENABLE_HAMBURGER']
  35. endif
  36. if KDE_TRAY
  37. pamac_manager_vala_args += ['-D', 'KDE_TRAY']
  38. pamac_manager_c_args += ['-DKDE_TRAY']
  39. endif
  40. if DISABLE_AUR
  41. pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
  42. pamac_manager_c_args += ['-DDISABLE_AUR']
  43. endif
  44. pamac_manager_link_args = ['-rdynamic']
  45. pamac_manager_hfolders = ['../../src']
  46. executable('pamac-manager',pamac_manager_sources,
  47. dependencies: pamac_manager_deps,
  48. vala_args: pamac_manager_vala_args,
  49. c_args: pamac_manager_c_args,
  50. link_args: pamac_manager_link_args,
  51. link_with: pamac_manager_dependencies,
  52. include_directories: include_directories(pamac_manager_hfolders),
  53. install: true)
  54. meson.add_install_script('sh', '-c', 'ln -sf pamac-manager ${DESTDIR}/${MESON_INSTALL_PREFIX}/bin/pamac-updater')