2017-10-16 13:40:34 -03:00
|
|
|
cfg_pamac_user_daemon = configuration_data()
|
|
|
|
cfg_pamac_user_daemon.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
2017-11-16 21:43:51 -03:00
|
|
|
cfg_pamac_user_daemon.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
|
|
|
cfg_pamac_user_daemon.set('GETTEXT_PACKAGE', 'pamac')
|
|
|
|
cfg_pamac_user_daemon.set('RELEASE_NAME', 'pamac')
|
2017-10-16 13:40:34 -03:00
|
|
|
cfg_pamac_user_daemon.set('PREFIX', get_option('prefix'))
|
2019-06-29 12:07:48 -04:00
|
|
|
cfg_pamac_user_daemon.set('VERSION', '6.7.1')
|
2017-10-16 13:40:34 -03:00
|
|
|
cfg_pamac_user_daemon.set('TESTSRCDIR', meson.source_root())
|
|
|
|
|
2019-06-29 12:07:48 -04:00
|
|
|
cfgfile_2 = configure_file(
|
|
|
|
input: 'Config.vala.base',
|
|
|
|
output: 'Config.vala',
|
|
|
|
configuration: cfg_pamac_user_daemon)
|
2017-10-16 13:40:34 -03:00
|
|
|
|
|
|
|
pamac_user_daemon_deps = [gtk_3_0_dep]
|
|
|
|
pamac_user_daemon_deps += [json_glib_1_0_dep]
|
|
|
|
pamac_user_daemon_deps += [libalpm_dep]
|
|
|
|
pamac_user_daemon_deps += [libsoup_2_4_dep]
|
|
|
|
pamac_user_daemon_deps += [gio_2_0_dep]
|
|
|
|
pamac_user_daemon_deps += [glib_2_0_dep]
|
|
|
|
pamac_user_daemon_deps += [gobject_2_0_dep]
|
2017-10-29 17:23:58 -03:00
|
|
|
pamac_user_daemon_sources = [cfgfile_2]
|
2017-10-16 13:40:34 -03:00
|
|
|
pamac_user_daemon_sources += ['alpm_config.vala']
|
2017-11-11 21:04:15 -03:00
|
|
|
pamac_user_daemon_sources += ['pamac_config.vala']
|
2017-10-16 13:40:34 -03:00
|
|
|
pamac_user_daemon_sources += ['user_daemon.vala']
|
|
|
|
pamac_user_daemon_vala_args = ['--pkg','posix']
|
|
|
|
pamac_user_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
2017-10-29 17:23:58 -03:00
|
|
|
pamac_user_daemon_dependencies = [pamacclassic_library]
|
2017-10-16 13:40:34 -03:00
|
|
|
pamac_user_daemon_c_args = []
|
2017-10-29 14:28:26 -03:00
|
|
|
if ENABLE_UPDATE_ICON
|
|
|
|
pamac_user_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
|
|
|
|
pamac_user_daemon_c_args += ['-DENABLE_UPDATE_ICON']
|
|
|
|
endif
|
2017-11-01 20:02:27 -03:00
|
|
|
if ENABLE_HAMBURGER
|
|
|
|
pamac_user_daemon_vala_args += ['-D', 'ENABLE_HAMBURGER']
|
|
|
|
pamac_user_daemon_c_args += ['-DENABLE_HAMBURGER']
|
|
|
|
endif
|
2017-10-16 13:40:34 -03:00
|
|
|
if KDE_TRAY
|
|
|
|
pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY']
|
|
|
|
pamac_user_daemon_c_args += ['-DKDE_TRAY']
|
|
|
|
endif
|
2017-11-11 11:30:47 -03:00
|
|
|
if DISABLE_AUR
|
|
|
|
pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
|
|
|
|
pamac_user_daemon_c_args += ['-DDISABLE_AUR']
|
|
|
|
endif
|
2018-06-02 14:51:40 -04:00
|
|
|
pamac_user_daemon_link_args = ['-rdynamic']
|
2017-10-16 13:40:34 -03:00
|
|
|
pamac_user_daemon_hfolders = ['../../src']
|
|
|
|
|
2019-06-29 12:07:48 -04:00
|
|
|
executable('pamac-user-daemon',pamac_user_daemon_sources,
|
|
|
|
dependencies: pamac_user_daemon_deps,
|
|
|
|
vala_args: pamac_user_daemon_vala_args,
|
|
|
|
c_args: pamac_user_daemon_c_args,
|
|
|
|
link_args: pamac_user_daemon_link_args,
|
|
|
|
link_with: pamac_user_daemon_dependencies,
|
|
|
|
include_directories: include_directories(pamac_user_daemon_hfolders),
|
|
|
|
install: true)
|
2017-10-16 13:40:34 -03:00
|
|
|
|