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

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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', '6.7.0')
  8. cfg_pamac_install.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_5 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_install)
  10. pamac_install_deps = [gtk_3_0_dep]
  11. pamac_install_deps += [json_glib_1_0_dep]
  12. pamac_install_deps += [gio_2_0_dep]
  13. pamac_install_deps += [glib_2_0_dep]
  14. pamac_install_deps += [gobject_2_0_dep]
  15. pamac_install_sources = [cfgfile_5]
  16. pamac_install_sources += ['installer.vala']
  17. pamac_install_sources += ['progress_dialog.vala']
  18. pamac_install_sources += [pamac_installer_gresource_xml_file_c]
  19. pamac_install_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  20. pamac_install_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.installer.gresource.xml')]
  21. pamac_install_dependencies = [pamacclassic_library]
  22. pamac_install_c_args = []
  23. if ENABLE_UPDATE_ICON
  24. pamac_install_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  25. pamac_install_c_args += ['-DENABLE_UPDATE_ICON']
  26. endif
  27. if ENABLE_HAMBURGER
  28. pamac_install_vala_args += ['-D', 'ENABLE_HAMBURGER']
  29. pamac_install_c_args += ['-DENABLE_HAMBURGER']
  30. endif
  31. if KDE_TRAY
  32. pamac_install_vala_args += ['-D', 'KDE_TRAY']
  33. pamac_install_c_args += ['-DKDE_TRAY']
  34. endif
  35. if DISABLE_AUR
  36. pamac_install_vala_args += ['-D', 'DISABLE_AUR']
  37. pamac_install_c_args += ['-DDISABLE_AUR']
  38. endif
  39. pamac_install_link_args = ['-rdynamic']
  40. pamac_install_hfolders = ['../../src']
  41. executable('pamac-install',pamac_install_sources,dependencies: pamac_install_deps,vala_args: pamac_install_vala_args,c_args: pamac_install_c_args,link_args: pamac_install_link_args,link_with: pamac_install_dependencies,include_directories: include_directories(pamac_install_hfolders),install: true)