forked from AuroraMiddleware/gtk
f3db19d694
So far that parser is unused.
56 lines
1.9 KiB
Meson
56 lines
1.9 KiB
Meson
gtk_css_public_sources = files([
|
|
'gtkcsslocation.c',
|
|
'gtkcsserror.c',
|
|
])
|
|
|
|
gtk_css_private_sources = files([
|
|
'gtkcssparser.c',
|
|
'gtkcsstokenizer.c',
|
|
])
|
|
|
|
gtk_css_public_headers = files([
|
|
'gtkcssenums.h',
|
|
'gtkcsserror.h',
|
|
'gtkcsslocation.h',
|
|
])
|
|
|
|
install_headers(gtk_css_public_headers, 'gtkcss.h', subdir: 'gtk-4.0/gtk/css')
|
|
|
|
gtk_css_deps = [
|
|
libm,
|
|
glib_dep,
|
|
gobject_dep,
|
|
platform_gio_dep,
|
|
]
|
|
|
|
gtk_css_enums = gnome.mkenums('gtkcssenumtypes',
|
|
sources: gtk_css_public_headers,
|
|
c_template: 'gtkcssenumtypes.c.template',
|
|
h_template: 'gtkcssenumtypes.h.template',
|
|
install_dir: join_paths(gtk_includedir, 'gtk-4.0/gtk/css'),
|
|
install_header: true)
|
|
|
|
gtk_css_enum_h = gtk_css_enums[1]
|
|
|
|
libgtk_css = static_library('gtk_css',
|
|
sources: [
|
|
gtk_css_public_sources,
|
|
gtk_css_private_sources,
|
|
gtk_css_enums,
|
|
],
|
|
dependencies: gtk_css_deps,
|
|
include_directories: [ confinc, ],
|
|
c_args: [
|
|
'-DGTK_CSS_COMPILATION',
|
|
'-DG_LOG_DOMAIN="Gtk"',
|
|
'-DG_LOG_STRUCTURED=1',
|
|
] + common_cflags,
|
|
link_args: common_ldflags)
|
|
|
|
# We don't have link_with: to internal static libs here on purpose, just
|
|
# list the dependencies and generated headers and such, for use in the
|
|
# "public" libgtk_dep used by internal executables.
|
|
libgtk_css_dep = declare_dependency(include_directories: [ confinc, ],
|
|
sources: [ gtk_css_enum_h ],
|
|
dependencies: gtk_css_deps)
|