|
| 1 | +libmypaint_gegl_inc = include_directories('.') |
| 2 | + |
| 3 | +libmypaint_gegl_sources = [ |
| 4 | + '../glib/mypaint-gegl-glib.c', |
| 5 | + 'mypaint-gegl-surface.c', |
| 6 | +] |
| 7 | + |
| 8 | +libmypaint_gegl_headers = [ |
| 9 | + '../glib/mypaint-gegl-glib.h', |
| 10 | + 'mypaint-gegl-surface.h', |
| 11 | +] |
| 12 | + |
| 13 | +libmypaint_gegl = library( |
| 14 | + f'mypaint-gegl-@api_platform_version@', |
| 15 | + libmypaint_gegl_sources, |
| 16 | + include_directories: toplevel_inc, |
| 17 | + link_with: libmypaint, |
| 18 | + dependencies: [ |
| 19 | + json, |
| 20 | + gobject, |
| 21 | + gegl, |
| 22 | + ], |
| 23 | + version: abi_version_info, |
| 24 | + install: true, |
| 25 | +) |
| 26 | + |
| 27 | +install_headers( |
| 28 | + libmypaint_gegl_headers, |
| 29 | + subdir: 'libmypaint-gegl', |
| 30 | +) |
| 31 | + |
| 32 | + |
| 33 | +if get_option('introspection') |
| 34 | + gnome = import('gnome') |
| 35 | + |
| 36 | + libmypaint_gegl_gir = gnome.generate_gir( |
| 37 | + libmypaint_gegl, |
| 38 | + namespace: 'MyPaintGegl', |
| 39 | + nsversion: api_platform_version, |
| 40 | + |
| 41 | + sources: libmypaint_gegl_sources + libmypaint_gegl_headers, |
| 42 | + symbol_prefix: 'mypaint_gegl', |
| 43 | + identifier_prefix: 'MyPaintGegl', |
| 44 | + |
| 45 | + includes: [ |
| 46 | + 'GObject-2.0', |
| 47 | + gegl_gir, |
| 48 | + libmypaint_gir[0], |
| 49 | + ], |
| 50 | + install: true, |
| 51 | + ) |
| 52 | +endif |
| 53 | + |
| 54 | + |
| 55 | +pkgconfig.generate( |
| 56 | + libmypaint_gegl, |
| 57 | + name: meson.project_name() + '-gegl-' + api_platform_version, |
| 58 | + version: version_full, |
| 59 | + description: 'MyPaint brush engine library, with GEGL integration', |
| 60 | + requires: [ |
| 61 | + libmypaint, |
| 62 | + gegl, |
| 63 | + ], |
| 64 | + url: project_url, |
| 65 | + subdirs: 'libmypaint-gegl', |
| 66 | +) |
0 commit comments