diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:25:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:25:44 +0000 |
commit | 26e5532cd264d58100e9db9c28ee6f13c4b36ab8 (patch) | |
tree | 6165da9db89a878424c0da6b6f8824dece5735ec /headers/meson.build | |
parent | Initial commit. (diff) | |
download | gsettings-desktop-schemas-26e5532cd264d58100e9db9c28ee6f13c4b36ab8.tar.xz gsettings-desktop-schemas-26e5532cd264d58100e9db9c28ee6f13c4b36ab8.zip |
Adding upstream version 3.38.0.upstream/3.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'headers/meson.build')
-rw-r--r-- | headers/meson.build | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/headers/meson.build b/headers/meson.build new file mode 100644 index 0000000..2aed919 --- /dev/null +++ b/headers/meson.build @@ -0,0 +1,45 @@ +headers = files( + 'gdesktop-enums.h' +) + +install_headers(headers, subdir: gsettings_desktop_schemas_name) + +enums_xml = custom_target( + 'org.gnome.desktop.enums.xml', + input: headers, + output: 'org.gnome.desktop.enums.xml', + command: [glib_mkenums, + '--comments', '<!-- @comment@ -->', + '--fhead', '<schemalist>', + '--vhead', '<@type@ id="org.gnome.desktop.@EnumName@">', + '--vprod', ' <value nick="@valuenick@" value="@valuenum@"/>', + '--vtail', ' </@type@>', + '--ftail', '</schemalist>', '@INPUT@'], + capture: true, + install: true, + install_dir: schemasdir) + +if get_option('introspection') + gir_sources = headers + + # Use a dummy .c source for Visual Studio builds-it is not enough + # to send in just a header file to build a dummy library on MSVC + if cc.get_id() == 'msvc' + gir_sources += ['dummy-msvc.c'] + endif + + noinst_lib = shared_library('noinst', + gir_sources, + install: false) + + gnome.generate_gir(noinst_lib, + sources: headers, + namespace: 'GDesktopEnums', + identifier_prefix: 'GDesktop', + nsversion : '3.0', + install: true, + extra_args: [ + '--header-only', + ] + ) +endif |