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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. cfg_pamac_install = configuration_data()
  2. cfg_pamac_install.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_install.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_install.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_install.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_install.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_install.set('VERSION', '7.0.0')
  8. cfg_pamac_install.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_5 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac_install)
  13. pamac_install_deps = [gtk_3_0_dep]
  14. pamac_install_deps += [json_glib_1_0_dep]
  15. pamac_install_deps += [gio_2_0_dep]
  16. pamac_install_deps += [glib_2_0_dep]
  17. pamac_install_deps += [gobject_2_0_dep]
  18. pamac_install_sources = [cfgfile_5]
  19. pamac_install_sources += ['installer.vala']
  20. pamac_install_sources += ['progress_dialog.vala']
  21. pamac_install_sources += [pamac_installer_gresource_xml_file_c]
  22. pamac_install_sources += [join_paths(meson.current_source_dir(),'../vapis/libalpm.vapi')]
  23. pamac_install_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  24. pamac_install_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.installer.gresource.xml')]
  25. pamac_install_dependencies = [Pamac_library]
  26. pamac_install_c_args = []
  27. if ENABLE_UPDATE_ICON
  28. pamac_install_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  29. pamac_install_c_args += ['-DENABLE_UPDATE_ICON']
  30. endif
  31. if ENABLE_HAMBURGER
  32. pamac_install_vala_args += ['-D', 'ENABLE_HAMBURGER']
  33. pamac_install_c_args += ['-DENABLE_HAMBURGER']
  34. endif
  35. if KDE_TRAY
  36. pamac_install_vala_args += ['-D', 'KDE_TRAY']
  37. pamac_install_c_args += ['-DKDE_TRAY']
  38. endif
  39. if DISABLE_AUR
  40. pamac_install_vala_args += ['-D', 'DISABLE_AUR']
  41. pamac_install_c_args += ['-DDISABLE_AUR']
  42. endif
  43. pamac_install_link_args = ['-rdynamic']
  44. pamac_install_hfolders = ['../../src']
  45. executable('pamac-install',pamac_install_sources,
  46. dependencies: pamac_install_deps,
  47. vala_args: pamac_install_vala_args,
  48. c_args: pamac_install_c_args,
  49. link_args: pamac_install_link_args,
  50. link_with: pamac_install_dependencies,
  51. include_directories: include_directories(pamac_install_hfolders),
  52. install: true)