pamac-classic/src/pamac-tray/meson.build

52 lines
1.9 KiB
Meson
Raw Normal View History

2017-10-16 13:40:34 -03:00
cfg_pamac_tray = configuration_data()
cfg_pamac_tray.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
cfg_pamac_tray.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
cfg_pamac_tray.set('GETTEXT_PACKAGE', 'pamac')
cfg_pamac_tray.set('RELEASE_NAME', 'pamac')
cfg_pamac_tray.set('PREFIX', get_option('prefix'))
2017-10-27 18:10:19 -03:00
cfg_pamac_tray.set('VERSION', '6.3.4')
2017-10-16 13:40:34 -03:00
cfg_pamac_tray.set('TESTSRCDIR', meson.source_root())
cfgfile_4 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_tray)
pamac_tray_deps = [json_glib_1_0_dep]
2017-10-26 13:45:40 -03:00
pamac_tray_deps += [libalpm_dep]
2017-10-16 13:40:34 -03:00
pamac_tray_deps += [libnotify_dep]
if KDE_TRAY
pamac_tray_deps += [appindicator3_0_1_dep]
else
pamac_tray_deps += [gtk_3_0_dep]
endif
pamac_tray_deps += [gio_2_0_dep]
pamac_tray_deps += [glib_2_0_dep]
pamac_tray_deps += [gobject_2_0_dep]
pamac_tray_sources = [cfgfile_4]
if KDE_TRAY
pamac_tray_sources += ['tray-appindicator.vala']
else
pamac_tray_sources += ['tray-gtk.vala']
endif
2017-10-26 13:45:40 -03:00
pamac_tray_sources += ['alpm_config.vala']
2017-10-16 13:40:34 -03:00
pamac_tray_sources += ['pamac_config.vala']
pamac_tray_sources += ['tray.vala']
pamac_tray_vala_args = ['--pkg','posix']
pamac_tray_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
pamac_tray_dependencies = [Pamac_library]
if not DISABLE_AUR
pamac_tray_dependencies += [AUR_library]
endif
pamac_tray_c_args = []
if DISABLE_AUR
pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
pamac_tray_c_args += ['-DDISABLE_AUR']
endif
if KDE_TRAY
pamac_tray_vala_args += ['-D', 'KDE_TRAY']
pamac_tray_c_args += ['-DKDE_TRAY']
endif
pamac_tray_hfolders = ['../../src']
pamac_tray_hfolders += ['../../src/aur']
executable('pamac-tray',pamac_tray_sources,dependencies: pamac_tray_deps,vala_args: pamac_tray_vala_args,c_args: pamac_tray_c_args,link_with: pamac_tray_dependencies,include_directories: include_directories(pamac_tray_hfolders),install: true)