2019-03-22 03:20:17 +00:00
|
|
|
gtk_css_public_sources = files([
|
2019-03-23 02:27:56 +00:00
|
|
|
'gtkcsslocation.c',
|
2019-03-22 03:20:17 +00:00
|
|
|
'gtkcsserror.c',
|
2019-04-10 16:40:50 +00:00
|
|
|
'gtkcsssection.c',
|
2019-03-22 03:20:17 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
gtk_css_private_sources = files([
|
2019-05-09 01:04:21 +00:00
|
|
|
'gtkcssdataurl.c',
|
2019-03-19 04:46:59 +00:00
|
|
|
'gtkcssparser.c',
|
2016-03-04 17:40:11 +00:00
|
|
|
'gtkcsstokenizer.c',
|
2020-10-03 02:28:17 +00:00
|
|
|
'gtkcssserializer.c',
|
2019-03-22 03:20:17 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
gtk_css_public_headers = files([
|
|
|
|
'gtkcssenums.h',
|
|
|
|
'gtkcsserror.h',
|
2019-03-23 02:27:56 +00:00
|
|
|
'gtkcsslocation.h',
|
2019-04-10 16:40:50 +00:00
|
|
|
'gtkcsssection.h',
|
2019-03-22 03:20:17 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
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',
|
2020-12-15 12:31:38 +00:00
|
|
|
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,
|
|
|
|
)
|
2019-03-22 03:20:17 +00:00
|
|
|
|
|
|
|
gtk_css_enum_h = gtk_css_enums[1]
|
|
|
|
|
|
|
|
libgtk_css = static_library('gtk_css',
|
2020-12-15 12:31:38 +00:00
|
|
|
sources: [
|
|
|
|
gtk_css_public_sources,
|
|
|
|
gtk_css_private_sources,
|
|
|
|
gtk_css_enums,
|
|
|
|
],
|
|
|
|
dependencies: gtk_css_deps,
|
|
|
|
include_directories: [ confinc, ],
|
|
|
|
c_args: [
|
|
|
|
'-DGTK_COMPILATION',
|
|
|
|
'-DG_LOG_DOMAIN="Gtk"',
|
|
|
|
] + common_cflags,
|
|
|
|
)
|
2019-03-22 03:20:17 +00:00
|
|
|
|
|
|
|
# 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, ],
|
2020-12-15 12:31:38 +00:00
|
|
|
sources: [ gtk_css_enum_h ],
|
|
|
|
dependencies: gtk_css_deps,
|
|
|
|
)
|