mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
meson: gsk: use gnome.mkenums() to generate enum types
This commit is contained in:
parent
fed7d22df7
commit
7b6b3c7786
@ -127,18 +127,14 @@ gsk_resources_xml = configure_file(output : 'gsk.resources.xml',
|
|||||||
# FIXME: do we need this variable?
|
# FIXME: do we need this variable?
|
||||||
gsk_sources = gsk_public_sources + gsk_private_sources
|
gsk_sources = gsk_public_sources + gsk_private_sources
|
||||||
|
|
||||||
gskenum_h = custom_target(
|
gsk_enums = gnome.mkenums('gskenumtypes',
|
||||||
'gskenum_h',
|
sources: gsk_public_headers,
|
||||||
output : 'gskenumtypes.h',
|
c_template : 'gskenumtypes.c.template',
|
||||||
input : gsk_public_headers,
|
h_template : 'gskenumtypes.h.template',
|
||||||
command : [mkenum, perl, glib_mkenums, meson.current_source_dir() + '/gskenumtypes.h.template', '@OUTPUT@', '@INPUT@'])
|
install_dir : 'gtk-4.0/gsk',
|
||||||
|
install_header : true)
|
||||||
|
|
||||||
gskenum_c = custom_target(
|
gskenum_h = gsk_enums[1]
|
||||||
'gskenum_c',
|
|
||||||
output : 'gskenumtypes.c',
|
|
||||||
input : gsk_public_headers,
|
|
||||||
depends : gskenum_h,
|
|
||||||
command : [mkenum, perl, glib_mkenums, meson.current_source_dir() + '/gskenumtypes.c.template', '@OUTPUT@', '@INPUT@'])
|
|
||||||
|
|
||||||
gskresources = gnome.compile_resources('gskresources',
|
gskresources = gnome.compile_resources('gskresources',
|
||||||
gsk_resources_xml,
|
gsk_resources_xml,
|
||||||
@ -155,9 +151,8 @@ gsk_deps = [
|
|||||||
libgdk_dep,
|
libgdk_dep,
|
||||||
]
|
]
|
||||||
|
|
||||||
libgsk = static_library(
|
libgsk = static_library('gsk',
|
||||||
'gsk',
|
sources: [gsk_sources, gsk_enums, gskresources],
|
||||||
sources: [gsk_sources, gskenum_h, gskresources],
|
|
||||||
dependencies: gsk_deps,
|
dependencies: gsk_deps,
|
||||||
include_directories: [confinc],
|
include_directories: [confinc],
|
||||||
c_args: ['-DGSK_COMPILATION', '-DG_LOG_DOMAIN="Gsk"'],
|
c_args: ['-DGSK_COMPILATION', '-DG_LOG_DOMAIN="Gsk"'],
|
||||||
|
Loading…
Reference in New Issue
Block a user