mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Merge branch 'install-tag-2' into 'main'
meson: Set install_tag remaining installed files See merge request GNOME/glib!2905
This commit is contained in:
@@ -32,6 +32,7 @@ gdbus_codegen_built_files = []
|
||||
gdbus_codegen_built_files += configure_file(input : 'config.py.in',
|
||||
output : 'config.py',
|
||||
install_dir : codegen_dir,
|
||||
install_tag : 'bin-devel',
|
||||
configuration : gdbus_codegen_conf)
|
||||
|
||||
foreach f : gdbus_codegen_files
|
||||
@@ -39,5 +40,6 @@ foreach f : gdbus_codegen_files
|
||||
# and then install it too so that it can be used after installation
|
||||
gdbus_codegen_built_files += configure_file(input : f, output : f,
|
||||
install_dir : codegen_dir,
|
||||
install_tag : 'bin-devel',
|
||||
copy : true)
|
||||
endforeach
|
||||
|
@@ -800,13 +800,15 @@ if have_bash
|
||||
endif
|
||||
|
||||
install_data([
|
||||
'completion/gapplication',
|
||||
'completion/gdbus',
|
||||
'completion/gio',
|
||||
'completion/gsettings',
|
||||
'completion/gresource'
|
||||
],
|
||||
install_dir: bash_comp_inst_dir)
|
||||
'completion/gapplication',
|
||||
'completion/gdbus',
|
||||
'completion/gio',
|
||||
'completion/gsettings',
|
||||
'completion/gresource'
|
||||
],
|
||||
install_dir: bash_comp_inst_dir,
|
||||
install_tag: 'bin',
|
||||
)
|
||||
endif
|
||||
|
||||
if enable_dtrace
|
||||
@@ -1017,10 +1019,14 @@ executable('gsettings', 'gsettings-tool.c',
|
||||
link_args : noseh_link_args,
|
||||
dependencies : [libgio_dep, libgobject_dep, libgmodule_dep, libglib_dep])
|
||||
install_data('gschema.dtd',
|
||||
install_dir : join_paths(get_option('datadir'), schemas_subdir))
|
||||
install_dir : get_option('datadir') / schemas_subdir,
|
||||
install_tag : 'devel',
|
||||
)
|
||||
|
||||
install_data(['gschema.loc', 'gschema.its'],
|
||||
install_dir : join_paths(get_option('datadir'), 'gettext/its'))
|
||||
install_dir : get_option('datadir') / 'gettext' / 'its',
|
||||
install_tag : 'devel',
|
||||
)
|
||||
|
||||
executable('gdbus', 'gdbus-tool.c',
|
||||
install : true,
|
||||
|
@@ -222,6 +222,7 @@ if host_machine.system() != 'windows'
|
||||
name_prefix : '',
|
||||
dependencies: libdl_dep,
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install: installed_tests_enabled,
|
||||
)
|
||||
],
|
||||
@@ -419,6 +420,7 @@ if host_machine.system() != 'windows'
|
||||
c_args : test_c_args,
|
||||
dependencies : common_gio_tests_deps,
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install : installed_tests_enabled)
|
||||
|
||||
gio_tests += {
|
||||
@@ -544,6 +546,7 @@ foreach appinfo_test_desktop_file : appinfo_test_desktop_files
|
||||
input: appinfo_test_desktop_file + '.in',
|
||||
output: appinfo_test_desktop_file,
|
||||
install_dir: installed_tests_execdir,
|
||||
install_tag: 'tests',
|
||||
configuration: cdata,
|
||||
)
|
||||
else
|
||||
@@ -566,11 +569,24 @@ if installed_tests_enabled
|
||||
'org.gtk.test.dbusappinfo.flatpak.desktop',
|
||||
'test1.overlay',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
install_subdir('x-content',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
install_subdir('desktop-files',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
install_subdir('thumbnails',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
install_subdir('cert-tests',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
install_subdir('x-content', install_dir : installed_tests_execdir)
|
||||
install_subdir('desktop-files', install_dir : installed_tests_execdir)
|
||||
install_subdir('thumbnails', install_dir : installed_tests_execdir)
|
||||
install_subdir('cert-tests', install_dir : installed_tests_execdir)
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('installed_tests_dir', installed_tests_execdir)
|
||||
@@ -579,10 +595,17 @@ if installed_tests_enabled
|
||||
input: installed_tests_template,
|
||||
output: 'static-link.test',
|
||||
install_dir: installed_tests_metadir,
|
||||
install_tag: 'tests',
|
||||
configuration: cdata
|
||||
)
|
||||
install_subdir('static-link', install_dir : installed_tests_execdir)
|
||||
install_data('static-link.py', install_dir : installed_tests_execdir)
|
||||
install_subdir('static-link',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
install_data('static-link.py',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
)
|
||||
|
||||
monitor_tests = [
|
||||
'memory-monitor-dbus',
|
||||
@@ -600,6 +623,7 @@ if installed_tests_enabled
|
||||
input: installed_tests_template_tap,
|
||||
output: monitor_test + '.test',
|
||||
install_dir: installed_tests_metadir,
|
||||
install_tag: 'tests',
|
||||
configuration: cdata
|
||||
)
|
||||
cdata = configuration_data()
|
||||
@@ -608,6 +632,7 @@ if installed_tests_enabled
|
||||
input: monitor_test + '.py.in',
|
||||
output: monitor_test + '.py',
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
configuration: cdata,
|
||||
)
|
||||
endforeach
|
||||
@@ -633,6 +658,7 @@ if meson.can_run_host_binaries()
|
||||
link_args : export_dynamic_ldflags,
|
||||
dependencies : common_gio_tests_deps,
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install : installed_tests_enabled
|
||||
)
|
||||
|
||||
@@ -654,6 +680,7 @@ if meson.can_run_host_binaries()
|
||||
'--internal',
|
||||
'@INPUT@'],
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install : installed_tests_enabled)
|
||||
|
||||
test_resources2_c = custom_target('test_resources2.c',
|
||||
@@ -766,6 +793,7 @@ if meson.can_run_host_binaries()
|
||||
'--internal',
|
||||
'@INPUT@'],
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install : installed_tests_enabled)
|
||||
|
||||
# Create resource data file
|
||||
@@ -847,6 +875,7 @@ foreach test_name, extra_args : gio_tests
|
||||
input: installed_tests_template_tap,
|
||||
output: test_name + '.test',
|
||||
install_dir: installed_tests_metadir,
|
||||
install_tag: 'tests',
|
||||
configuration: test_conf
|
||||
)
|
||||
endif
|
||||
@@ -856,6 +885,7 @@ foreach test_name, extra_args : gio_tests
|
||||
dependencies : common_gio_tests_deps + extra_args.get('dependencies', []),
|
||||
install_rpath : extra_args.get('install_rpath', ''),
|
||||
install_dir: installed_tests_execdir,
|
||||
install_tag: 'tests',
|
||||
install: install,
|
||||
)
|
||||
|
||||
@@ -885,6 +915,7 @@ foreach program_name, extra_args : test_extra_programs
|
||||
c_args : test_c_args,
|
||||
dependencies : common_gio_tests_deps + extra_args.get('dependencies', []),
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install : install,
|
||||
)
|
||||
endforeach
|
||||
@@ -902,6 +933,7 @@ foreach test_name : python_tests
|
||||
install_data(
|
||||
files(test_name),
|
||||
install_dir: installed_tests_execdir,
|
||||
install_tag: 'tests',
|
||||
install_mode: 'rwxr-xr-x',
|
||||
)
|
||||
|
||||
@@ -913,6 +945,7 @@ foreach test_name : python_tests
|
||||
input: installed_tests_template_tap,
|
||||
output: test_name + '.test',
|
||||
install_dir: installed_tests_metadir,
|
||||
install_tag: 'tests',
|
||||
configuration: test_conf,
|
||||
)
|
||||
endif
|
||||
@@ -923,6 +956,7 @@ if installed_tests_enabled
|
||||
install_data(
|
||||
files('taptestrunner.py'),
|
||||
install_dir: installed_tests_execdir,
|
||||
install_tag: 'tests',
|
||||
)
|
||||
endif
|
||||
|
||||
|
@@ -25,6 +25,7 @@ foreach service_file : dbus_service_files
|
||||
)
|
||||
install_data(meson.current_build_dir() / service_file + '.to-install',
|
||||
install_dir: installed_tests_execdir / 'services',
|
||||
install_tag: 'tests',
|
||||
rename: [service_file],
|
||||
)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user