forked from cromer/pamac-classic
54 lines
2.1 KiB
Meson
54 lines
2.1 KiB
Meson
cfg_pamac_clean_cache = configuration_data()
|
|
cfg_pamac_clean_cache.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
|
cfg_pamac_clean_cache.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
|
cfg_pamac_clean_cache.set('GETTEXT_PACKAGE', 'pamac')
|
|
cfg_pamac_clean_cache.set('RELEASE_NAME', 'pamac')
|
|
cfg_pamac_clean_cache.set('PREFIX', get_option('prefix'))
|
|
cfg_pamac_clean_cache.set('VERSION', '6.7.2')
|
|
cfg_pamac_clean_cache.set('TESTSRCDIR', meson.source_root())
|
|
|
|
cfgfile_4 = configure_file(
|
|
input: 'Config.vala.base',
|
|
output: 'Config.vala',
|
|
configuration: cfg_pamac_clean_cache)
|
|
|
|
pamac_clean_cache_deps = [gtk_3_0_dep]
|
|
pamac_clean_cache_deps += [json_glib_1_0_dep]
|
|
pamac_clean_cache_deps += [glib_2_0_dep]
|
|
pamac_clean_cache_deps += [gobject_2_0_dep]
|
|
pamac_clean_cache_sources = [cfgfile_4]
|
|
pamac_clean_cache_sources += ['clean_cache.vala']
|
|
pamac_clean_cache_sources += ['pamac_config.vala']
|
|
pamac_clean_cache_vala_args = ['--pkg','posix']
|
|
pamac_clean_cache_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
|
pamac_clean_cache_dependencies = [pamacclassic_library]
|
|
pamac_clean_cache_c_args = []
|
|
if ENABLE_UPDATE_ICON
|
|
pamac_clean_cache_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
|
|
pamac_clean_cache_c_args += ['-DENABLE_UPDATE_ICON']
|
|
endif
|
|
if ENABLE_HAMBURGER
|
|
pamac_clean_cache_vala_args += ['-D', 'ENABLE_HAMBURGER']
|
|
pamac_clean_cache_c_args += ['-DENABLE_HAMBURGER']
|
|
endif
|
|
if KDE_TRAY
|
|
pamac_clean_cache_vala_args += ['-D', 'KDE_TRAY']
|
|
pamac_clean_cache_c_args += ['-DKDE_TRAY']
|
|
endif
|
|
if DISABLE_AUR
|
|
pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR']
|
|
pamac_clean_cache_c_args += ['-DDISABLE_AUR']
|
|
endif
|
|
pamac_clean_cache_link_args = ['-rdynamic']
|
|
pamac_clean_cache_hfolders = ['../../src']
|
|
|
|
executable('pamac-clean-cache',pamac_clean_cache_sources,
|
|
dependencies: pamac_clean_cache_deps,
|
|
vala_args: pamac_clean_cache_vala_args,
|
|
c_args: pamac_clean_cache_c_args,
|
|
link_args: pamac_clean_cache_link_args,
|
|
link_with: pamac_clean_cache_dependencies,
|
|
include_directories: include_directories(pamac_clean_cache_hfolders),
|
|
install: true)
|
|
|