forked from cromer/pamac-classic
readd meson
This commit is contained in:
@@ -82,7 +82,8 @@ GENERATE_HEADER
|
||||
SET (VALA_C ${VALA_C} ${pamac_transaction_gresource_xml_C_FILE})
|
||||
add_library(Pamac SHARED ${VALA_C})
|
||||
|
||||
add_dependencies (Pamac pamac_transaction_gresource_xml)
|
||||
set ( Pamac_DEPENDENCIES ${Pamac_DEPENDENCIES} pamac_transaction_gresource_xml )
|
||||
add_dependencies( Pamac ${Pamac_DEPENDENCIES} )
|
||||
target_link_libraries( Pamac m )
|
||||
set_target_properties( Pamac PROPERTIES
|
||||
VERSION
|
||||
|
46
src/aur/meson.build
Normal file
46
src/aur/meson.build
Normal file
@@ -0,0 +1,46 @@
|
||||
cfg_aur = configuration_data()
|
||||
cfg_aur.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_aur.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_aur.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_aur.set('RELEASE_NAME', 'pamac')
|
||||
cfg_aur.set('PREFIX', get_option('prefix'))
|
||||
cfg_aur.set('VERSION', '6.1.0')
|
||||
cfg_aur.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_2 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_aur)
|
||||
|
||||
aur_deps = [json_glib_1_0_dep]
|
||||
aur_deps += [libsoup_2_4_dep]
|
||||
aur_deps += [glib_2_0_dep]
|
||||
aur_sources = [cfgfile_2]
|
||||
aur_sources += ['aur.vala']
|
||||
aur_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
aur_c_args = []
|
||||
if DISABLE_AUR
|
||||
aur_vala_args += ['-D', 'DISABLE_AUR']
|
||||
aur_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
aur_vala_args += ['-D', 'KDE_TRAY']
|
||||
aur_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
aur_vala_args += ['--gir=AUR-6.0.gir']
|
||||
|
||||
|
||||
AUR_library = shared_library('AUR',aur_sources,dependencies: aur_deps,vala_args: aur_vala_args,c_args: aur_c_args,version: '6.1.0',soversion: '6',install: true)
|
||||
|
||||
aur_requires = []
|
||||
aur_requires += ['json-glib-1.0']
|
||||
aur_requires += ['libsoup-2.4']
|
||||
aur_requires += ['glib-2.0']
|
||||
pkg_mod = import('pkgconfig')
|
||||
pkg_mod.generate(libraries : AUR_library,
|
||||
version : '6.1.0',
|
||||
name : 'AUR',
|
||||
filebase : 'AUR',
|
||||
description : 'AUR',
|
||||
requires : aur_requires)
|
||||
|
||||
install_data(join_paths(meson.current_source_dir(),'AUR.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi'))
|
||||
meson.add_install_script(join_paths(meson.source_root(),'meson_scripts','install_library.sh'),'src/aur','AUR','AUR-6.0.gir')
|
||||
|
78
src/meson.build
Normal file
78
src/meson.build
Normal file
@@ -0,0 +1,78 @@
|
||||
cfg_pamac = configuration_data()
|
||||
cfg_pamac.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_pamac.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_pamac.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_pamac.set('RELEASE_NAME', 'pamac')
|
||||
cfg_pamac.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac.set('VERSION', '6.1.0')
|
||||
cfg_pamac.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_1 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac)
|
||||
|
||||
pamac_deps = [gdk_3_0_dep]
|
||||
pamac_deps += [gtk_3_0_dep]
|
||||
pamac_deps += [libalpm_dep]
|
||||
pamac_deps += [libnotify_dep]
|
||||
pamac_deps += [vte_2_91_dep]
|
||||
pamac_deps += [gio_2_0_dep]
|
||||
pamac_deps += [glib_2_0_dep]
|
||||
pamac_deps += [gobject_2_0_dep]
|
||||
pamac_sources = [cfgfile_1]
|
||||
pamac_sources += ['alpm_config.vala']
|
||||
pamac_sources += ['choose_ignorepkgs_dialog.vala']
|
||||
pamac_sources += ['choose_provider_dialog.vala']
|
||||
pamac_sources += ['common.vala']
|
||||
pamac_sources += ['mirrors_config.vala']
|
||||
pamac_sources += ['package.vala']
|
||||
pamac_sources += ['pamac_config.vala']
|
||||
pamac_sources += ['preferences_dialog.vala']
|
||||
pamac_sources += ['progress_box.vala']
|
||||
pamac_sources += ['transaction.vala']
|
||||
pamac_sources += ['transaction_sum_dialog.vala']
|
||||
if DISABLE_AUR
|
||||
pamac_sources += [pamac_transaction_no_aur_gresource_xml_file_c]
|
||||
else
|
||||
pamac_sources += [pamac_transaction_gresource_xml_file_c]
|
||||
endif
|
||||
pamac_vala_args = ['--pkg','posix']
|
||||
pamac_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
if DISABLE_AUR
|
||||
pamac_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction_no_aur.gresource.xml')]
|
||||
else
|
||||
pamac_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction.gresource.xml')]
|
||||
endif
|
||||
pamac_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
pamac_deps += [meson.get_compiler('c').find_library('m', required : false)]
|
||||
pamac_vala_args += ['--gir=Pamac-6.0.gir']
|
||||
|
||||
|
||||
Pamac_library = shared_library('Pamac',pamac_sources,dependencies: pamac_deps,vala_args: pamac_vala_args,c_args: pamac_c_args,version: '6.1.0',soversion: '6',install: true)
|
||||
|
||||
pamac_requires = []
|
||||
pamac_requires += ['gdk-3.0']
|
||||
pamac_requires += ['gtk+-3.0']
|
||||
pamac_requires += ['libalpm']
|
||||
pamac_requires += ['libnotify']
|
||||
pamac_requires += ['vte-2.91']
|
||||
pamac_requires += ['gio-2.0']
|
||||
pamac_requires += ['glib-2.0']
|
||||
pamac_requires += ['gobject-2.0']
|
||||
pkg_mod = import('pkgconfig')
|
||||
pkg_mod.generate(libraries : Pamac_library,
|
||||
version : '6.1.0',
|
||||
name : 'Pamac',
|
||||
filebase : 'Pamac',
|
||||
description : 'Pamac',
|
||||
requires : pamac_requires)
|
||||
|
||||
install_data(join_paths(meson.current_source_dir(),'Pamac.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi'))
|
||||
meson.add_install_script(join_paths(meson.source_root(),'meson_scripts','install_library.sh'),'src','Pamac','Pamac-6.0.gir')
|
||||
|
34
src/pamac-clean-cache/meson.build
Normal file
34
src/pamac-clean-cache/meson.build
Normal file
@@ -0,0 +1,34 @@
|
||||
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.1.0')
|
||||
cfg_pamac_clean_cache.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_5 = 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 += [gio_2_0_dep]
|
||||
pamac_clean_cache_deps += [glib_2_0_dep]
|
||||
pamac_clean_cache_deps += [gobject_2_0_dep]
|
||||
pamac_clean_cache_sources = [cfgfile_5]
|
||||
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 = [Pamac_library]
|
||||
pamac_clean_cache_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_clean_cache_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_clean_cache_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_clean_cache_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
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_with: pamac_clean_cache_dependencies,include_directories: include_directories(pamac_clean_cache_hfolders),install: true)
|
||||
|
@@ -64,7 +64,7 @@ OPTIONS
|
||||
|
||||
SET (VALA_C ${VALA_C} ${pamac_installer_gresource_xml_C_FILE})
|
||||
add_executable(pamac-install ${VALA_C})
|
||||
add_dependencies (pamac-install pamac_installer_gresource_xml)
|
||||
set ( pamac-install_DEPENDENCIES ${pamac-install_DEPENDENCIES} pamac_installer_gresource_xml )
|
||||
set ( pamac-install_DEPENDENCIES ${pamac-install_DEPENDENCIES} Pamac )
|
||||
add_dependencies( pamac-install ${pamac-install_DEPENDENCIES} )
|
||||
|
||||
|
35
src/pamac-install/meson.build
Normal file
35
src/pamac-install/meson.build
Normal file
@@ -0,0 +1,35 @@
|
||||
cfg_pamac_install = configuration_data()
|
||||
cfg_pamac_install.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_pamac_install.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_pamac_install.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_pamac_install.set('RELEASE_NAME', 'pamac')
|
||||
cfg_pamac_install.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_install.set('VERSION', '6.1.0')
|
||||
cfg_pamac_install.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_6 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_install)
|
||||
|
||||
pamac_install_deps = [gtk_3_0_dep]
|
||||
pamac_install_deps += [gio_2_0_dep]
|
||||
pamac_install_deps += [glib_2_0_dep]
|
||||
pamac_install_deps += [gobject_2_0_dep]
|
||||
pamac_install_sources = [cfgfile_6]
|
||||
pamac_install_sources += ['installer.vala']
|
||||
pamac_install_sources += ['progress_dialog.vala']
|
||||
pamac_install_sources += [pamac_installer_gresource_xml_file_c]
|
||||
pamac_install_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
pamac_install_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.installer.gresource.xml')]
|
||||
pamac_install_dependencies = [Pamac_library]
|
||||
pamac_install_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_install_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_install_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_install_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_install_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
pamac_install_hfolders = ['../../src']
|
||||
|
||||
executable('pamac-install',pamac_install_sources,dependencies: pamac_install_deps,vala_args: pamac_install_vala_args,c_args: pamac_install_c_args,link_with: pamac_install_dependencies,include_directories: include_directories(pamac_install_hfolders),install: true)
|
||||
|
@@ -66,7 +66,7 @@ OPTIONS
|
||||
|
||||
SET (VALA_C ${VALA_C} ${pamac_manager_gresource_xml_C_FILE})
|
||||
add_executable(pamac-manager ${VALA_C})
|
||||
add_dependencies (pamac-manager pamac_manager_gresource_xml)
|
||||
set ( pamac-manager_DEPENDENCIES ${pamac-manager_DEPENDENCIES} pamac_manager_gresource_xml )
|
||||
set ( pamac-manager_DEPENDENCIES ${pamac-manager_DEPENDENCIES} Pamac )
|
||||
add_dependencies( pamac-manager ${pamac-manager_DEPENDENCIES} )
|
||||
|
||||
|
44
src/pamac-manager/meson.build
Normal file
44
src/pamac-manager/meson.build
Normal file
@@ -0,0 +1,44 @@
|
||||
cfg_pamac_manager = configuration_data()
|
||||
cfg_pamac_manager.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_pamac_manager.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_pamac_manager.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_pamac_manager.set('RELEASE_NAME', 'pamac')
|
||||
cfg_pamac_manager.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_manager.set('VERSION', '6.1.0')
|
||||
cfg_pamac_manager.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_7 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_manager)
|
||||
|
||||
pamac_manager_deps = [gtk_3_0_dep]
|
||||
pamac_manager_deps += [gio_2_0_dep]
|
||||
pamac_manager_deps += [glib_2_0_dep]
|
||||
pamac_manager_deps += [gobject_2_0_dep]
|
||||
pamac_manager_sources = [cfgfile_7]
|
||||
pamac_manager_sources += ['history_dialog.vala']
|
||||
pamac_manager_sources += ['manager.vala']
|
||||
pamac_manager_sources += ['manager_window.vala']
|
||||
if DISABLE_AUR
|
||||
pamac_manager_sources += [pamac_manager_no_aur_gresource_xml_file_c]
|
||||
else
|
||||
pamac_manager_sources += [pamac_manager_gresource_xml_file_c]
|
||||
endif
|
||||
pamac_manager_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
if DISABLE_AUR
|
||||
pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager_no_aur.gresource.xml')]
|
||||
else
|
||||
pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager.gresource.xml')]
|
||||
endif
|
||||
pamac_manager_dependencies = [Pamac_library]
|
||||
pamac_manager_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_manager_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_manager_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_manager_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
pamac_manager_hfolders = ['../../src']
|
||||
|
||||
executable('pamac-manager',pamac_manager_sources,dependencies: pamac_manager_deps,vala_args: pamac_manager_vala_args,c_args: pamac_manager_c_args,link_with: pamac_manager_dependencies,include_directories: include_directories(pamac_manager_hfolders),install: true)
|
||||
|
45
src/pamac-system-daemon/meson.build
Normal file
45
src/pamac-system-daemon/meson.build
Normal file
@@ -0,0 +1,45 @@
|
||||
cfg_pamac_system_daemon = configuration_data()
|
||||
cfg_pamac_system_daemon.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_pamac_system_daemon.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_pamac_system_daemon.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_pamac_system_daemon.set('RELEASE_NAME', 'pamac')
|
||||
cfg_pamac_system_daemon.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_system_daemon.set('VERSION', '6.1.0')
|
||||
cfg_pamac_system_daemon.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_8 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_system_daemon)
|
||||
|
||||
pamac_system_daemon_deps = [gtk_3_0_dep]
|
||||
pamac_system_daemon_deps += [json_glib_1_0_dep]
|
||||
pamac_system_daemon_deps += [libalpm_dep]
|
||||
pamac_system_daemon_deps += [libcurl_dep]
|
||||
pamac_system_daemon_deps += [libsoup_2_4_dep]
|
||||
pamac_system_daemon_deps += [polkit_gobject_1_dep]
|
||||
pamac_system_daemon_deps += [gio_2_0_dep]
|
||||
pamac_system_daemon_deps += [glib_2_0_dep]
|
||||
pamac_system_daemon_deps += [gobject_2_0_dep]
|
||||
pamac_system_daemon_sources = [cfgfile_8]
|
||||
pamac_system_daemon_sources += ['alpm_config.vala']
|
||||
pamac_system_daemon_sources += ['mirrors_config.vala']
|
||||
pamac_system_daemon_sources += ['pamac_config.vala']
|
||||
pamac_system_daemon_sources += ['system_daemon.vala']
|
||||
pamac_system_daemon_vala_args = ['--pkg','posix']
|
||||
pamac_system_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
pamac_system_daemon_dependencies = [Pamac_library]
|
||||
if not DISABLE_AUR
|
||||
pamac_system_daemon_dependencies += [AUR_library]
|
||||
endif
|
||||
pamac_system_daemon_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_system_daemon_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_system_daemon_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_system_daemon_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_system_daemon_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
pamac_system_daemon_hfolders = ['../../src']
|
||||
pamac_system_daemon_hfolders += ['../../src/aur']
|
||||
|
||||
executable('pamac-system-daemon',pamac_system_daemon_sources,dependencies: pamac_system_daemon_deps,vala_args: pamac_system_daemon_vala_args,c_args: pamac_system_daemon_c_args,link_with: pamac_system_daemon_dependencies,include_directories: include_directories(pamac_system_daemon_hfolders),install: true)
|
||||
|
50
src/pamac-tray/meson.build
Normal file
50
src/pamac-tray/meson.build
Normal file
@@ -0,0 +1,50 @@
|
||||
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'))
|
||||
cfg_pamac_tray.set('VERSION', '6.1.0')
|
||||
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]
|
||||
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
|
||||
pamac_tray_sources += ['pamac_config.vala']
|
||||
pamac_tray_sources += ['tray.vala']
|
||||
pamac_tray_sources += ['user_daemon.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)
|
||||
|
41
src/pamac-user-daemon/meson.build
Normal file
41
src/pamac-user-daemon/meson.build
Normal file
@@ -0,0 +1,41 @@
|
||||
cfg_pamac_user_daemon = configuration_data()
|
||||
cfg_pamac_user_daemon.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
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')
|
||||
cfg_pamac_user_daemon.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_user_daemon.set('VERSION', '6.1.0')
|
||||
cfg_pamac_user_daemon.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_3 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_user_daemon)
|
||||
|
||||
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]
|
||||
pamac_user_daemon_sources = [cfgfile_3]
|
||||
pamac_user_daemon_sources += ['alpm_config.vala']
|
||||
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')]
|
||||
pamac_user_daemon_dependencies = [Pamac_library]
|
||||
if not DISABLE_AUR
|
||||
pamac_user_daemon_dependencies += [AUR_library]
|
||||
endif
|
||||
pamac_user_daemon_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_user_daemon_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_user_daemon_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
pamac_user_daemon_hfolders = ['../../src']
|
||||
pamac_user_daemon_hfolders += ['../../src/aur']
|
||||
|
||||
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_with: pamac_user_daemon_dependencies,include_directories: include_directories(pamac_user_daemon_hfolders),install: true)
|
||||
|
Reference in New Issue
Block a user