1 gegl_library_build_dir = meson.current_build_dir()
3 geglInclude = include_directories(
15 '-DLIBDIR="@0@"'.format(get_option('prefix') / get_option('libdir')),
16 '-DG_LOG_DOMAIN="@0@"'.format('GEGL'),
17 '-DGEGL_LOCALEDIR="@0@"'.format(get_option('localedir')),
18 '-DGEGL_PREFIX="@0@"'.format(get_option('prefix')),
21 gegl_version_h = configure_file(
22 input : 'gegl-version.h.in',
23 output: 'gegl-version.h',
24 configuration: config,
27 gegl_introspectable_headers = files(
35 'gegl-metadatastore.h',
36 'gegl-metadatahash.h',
37 'gegl-operations-util.h',
64 'gegl-introspection-support.c',
68 'gegl-metadatastore.c',
69 'gegl-metadatahash.c',
84 subdir('property-types')
86 gegl_headers += gegl_introspectable_headers
88 install_headers(gegl_headers,
92 gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
94 opencl_dep = declare_dependency(
95 sources : [opencl_headers],
99 if host_cpu_family == 'x86_64'
100 simd_extra = [lib_gegl_x86_64_v2, lib_gegl_x86_64_v3]
101 elif host_cpu_family == 'arm'
102 simd_extra = [lib_gegl_arm_neon]
107 gegl_lib = library(api_name,
109 include_directories: [rootInclude, geglInclude],
120 link_with: simd_extra,
121 link_args: gegl_ldflags,
128 introspection_sources = gegl_introspectable_headers + files(
129 'gegl-introspection-support.h',
130 'opencl' / 'gegl-cl-introspection-support.h',
133 if meson.version().version_compare('>=1.2')
134 gegl_gir = gnome.generate_gir(gegl_lib,
135 sources: introspection_sources,
136 nsversion: api_version,
138 identifier_prefix: 'Gegl',
139 symbol_prefix: 'gegl',
141 includes: [ 'GLib-2.0', 'GObject-2.0', 'Babl-0.1' ],
142 dependencies: [babl],
143 export_packages: 'gegl-' + api_version,
145 env: ['GEGL_BUILD=1'],
148 gegl_gir = gnome.generate_gir(gegl_lib,
149 sources: introspection_sources,
150 nsversion: api_version,
152 identifier_prefix: 'Gegl',
153 symbol_prefix: 'gegl',
155 includes: [ 'GLib-2.0', 'GObject-2.0', 'Babl-0.1' ],
156 dependencies: [babl],
157 export_packages: 'gegl-' + api_version,
164 input: 'Gegl.metadata.in',
165 output: 'Gegl-@0@.metadata'.format(api_version),
169 gnome.generate_vapi(api_name,
170 metadata_dirs: meson.current_source_dir(),
171 sources: gegl_gir[0],