gimp/libgimpconfig/meson.build

92 lines
2.0 KiB
Meson
Raw Normal View History

2017-11-01 21:27:13 +08:00
stamp_config_enums = custom_target('stamp-gimpconfigenums.h',
input : [
files(
'gimpconfigenums.h'
),
],
output: [ 'stamp-gimpconfigenums.h', ],
2017-11-01 21:27:13 +08:00
command: [
mkenums_wrap, perl,
meson.project_source_root(), meson.current_source_dir(),
meson.current_build_dir(),
'gimpconfig',
'#include <gio/gio.h>\n' +
'#include "libgimpbase/gimpbase.h"\n',
'#include "libgimp/libgimp-intl.h"',
libgimp_mkenums_dtails
2017-11-01 21:27:13 +08:00
],
build_by_default: true
2017-11-01 21:27:13 +08:00
)
libgimpconfig_sources_introspectable = files(
'gimpcolorconfig.c',
'gimpconfig-array.c',
2017-11-01 21:27:13 +08:00
'gimpconfig-deserialize.c',
'gimpconfig-error.c',
'gimpconfig-iface.c',
'gimpconfig-params.c',
'gimpconfig-path.c',
'gimpconfig-register.c',
2017-11-01 21:27:13 +08:00
'gimpconfig-serialize.c',
'gimpconfig-utils.c',
'gimpconfigwriter.c',
'gimpscanner.c',
)
libgimpconfig_sources = [
libgimpconfig_sources_introspectable,
'gimpconfigenums.c',
stamp_config_enums
2017-11-01 21:27:13 +08:00
]
libgimpconfig_headers_introspectable = files(
'gimpcolorconfig.h',
'gimpconfig-array.h',
2017-11-01 21:27:13 +08:00
'gimpconfig-deserialize.h',
'gimpconfig-error.h',
'gimpconfig-iface.h',
'gimpconfig-params.h',
'gimpconfig-path.h',
'gimpconfig-register.h',
2017-11-01 21:27:13 +08:00
'gimpconfig-serialize.h',
'gimpconfig-utils.h',
'gimpconfigenums.h',
'gimpconfigtypes.h',
'gimpconfigwriter.h',
'gimpscanner.h',
)
libgimpconfig_headers = [
libgimpconfig_headers_introspectable,
'gimpconfig.h',
]
libgimpconfig_introspectable = [
libgimpconfig_headers_introspectable,
libgimpconfig_sources_introspectable,
]
libgimpconfig = library('gimpconfig-' + gimp_api_version,
libgimpconfig_sources,
include_directories: rootInclude,
dependencies: [
cairo, gdk_pixbuf, gegl, gio, gio_specific,
],
c_args: [ '-DG_LOG_DOMAIN="LibGimpConfig"', '-DGIMP_CONFIG_COMPILATION', ],
link_with: [
libgimpbase,
libgimpcolor,
libgimpmath,
],
vs_module_defs: 'gimpconfig.def',
install: true,
version: so_version,
)
install_headers(
libgimpconfig_headers,
subdir: gimp_api_name / 'libgimpconfig',
)