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.

53 lines
2.1KB

  1. cfg_pamac_clean_cache = configuration_data()
  2. cfg_pamac_clean_cache.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_clean_cache.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_clean_cache.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_clean_cache.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_clean_cache.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_clean_cache.set('VERSION', '7.1.2')
  8. cfg_pamac_clean_cache.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_4 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac_clean_cache)
  13. pamac_clean_cache_deps = [gtk_3_0_dep]
  14. pamac_clean_cache_deps += [json_glib_1_0_dep]
  15. pamac_clean_cache_deps += [glib_2_0_dep]
  16. pamac_clean_cache_sources = [cfgfile_4]
  17. pamac_clean_cache_sources += ['clean_cache.vala']
  18. pamac_clean_cache_sources += [join_paths(meson.current_source_dir(),'../vapis/libalpm.vapi')]
  19. pamac_clean_cache_vala_args = ['--pkg','posix']
  20. pamac_clean_cache_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  21. pamac_clean_cache_dependencies = [Pamac_library]
  22. pamac_clean_cache_c_args = []
  23. if ENABLE_UPDATE_ICON
  24. pamac_clean_cache_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  25. pamac_clean_cache_c_args += ['-DENABLE_UPDATE_ICON']
  26. endif
  27. if ENABLE_HAMBURGER
  28. pamac_clean_cache_vala_args += ['-D', 'ENABLE_HAMBURGER']
  29. pamac_clean_cache_c_args += ['-DENABLE_HAMBURGER']
  30. endif
  31. if KDE_TRAY
  32. pamac_clean_cache_vala_args += ['-D', 'KDE_TRAY']
  33. pamac_clean_cache_c_args += ['-DKDE_TRAY']
  34. endif
  35. if DISABLE_AUR
  36. pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR']
  37. pamac_clean_cache_c_args += ['-DDISABLE_AUR']
  38. endif
  39. pamac_clean_cache_link_args = ['-rdynamic']
  40. pamac_clean_cache_hfolders = ['../../src']
  41. executable('pamac-clean-cache',pamac_clean_cache_sources,
  42. dependencies: pamac_clean_cache_deps,
  43. vala_args: pamac_clean_cache_vala_args,
  44. c_args: pamac_clean_cache_c_args,
  45. link_args: pamac_clean_cache_link_args,
  46. link_with: pamac_clean_cache_dependencies,
  47. include_directories: include_directories(pamac_clean_cache_hfolders),
  48. install: true)