2022-02-08 16:19:36 +01:00
|
|
|
subdir('include/vips')
|
|
|
|
|
|
|
|
libvips_cpp_lib = library('vips-cpp',
|
|
|
|
'VImage.cpp',
|
|
|
|
'VInterpolate.cpp',
|
2022-02-24 17:34:25 +01:00
|
|
|
'VRegion.cpp',
|
2022-02-08 16:19:36 +01:00
|
|
|
'VConnection.cpp',
|
|
|
|
'VError.cpp',
|
|
|
|
dependencies: libvips_dep,
|
|
|
|
include_directories: libvips_cpp_includedir,
|
|
|
|
version: library_version,
|
2022-06-11 23:54:43 +02:00
|
|
|
darwin_versions: darwin_versions,
|
2022-04-16 11:58:55 +02:00
|
|
|
gnu_symbol_visibility: 'hidden',
|
2022-02-08 16:19:36 +01:00
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
|
|
|
|
libvips_cpp_dep = declare_dependency(
|
|
|
|
link_with: libvips_cpp_lib,
|
|
|
|
dependencies: libvips_dep,
|
|
|
|
include_directories: libvips_cpp_includedir,
|
|
|
|
)
|
|
|
|
|
|
|
|
pkg.generate(
|
|
|
|
libvips_cpp_lib,
|
|
|
|
requires: [ libvips_lib, glib_dep, gobject_dep ],
|
|
|
|
name: 'vips-cpp',
|
|
|
|
description: 'C++ API for vips8 image processing library',
|
|
|
|
)
|
|
|
|
|
|
|
|
custom_target('vips-operators-header',
|
|
|
|
command: [ 'gen-operators.py', '-g', 'h'],
|
|
|
|
capture: true,
|
|
|
|
output: 'vips-operators.h'
|
|
|
|
)
|
|
|
|
|
|
|
|
custom_target('vips-operators-source',
|
|
|
|
command: [ 'gen-operators.py', '-g', 'cpp'],
|
|
|
|
capture: true,
|
2022-06-10 15:43:44 +02:00
|
|
|
output: 'vips-operators.cpp'
|
2022-02-08 16:19:36 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if get_option('doxygen')
|
|
|
|
doxygen = find_program('doxygen')
|
|
|
|
doxygen_data = configuration_data()
|
|
|
|
doxygen_data.set('VIPS_MAJOR_VERSION', version_major)
|
|
|
|
doxygen_data.set('VIPS_MINOR_VERSION', version_minor)
|
2022-06-26 19:57:41 +02:00
|
|
|
doxygen_data.set('DOXY_INPUT_DIRECTORY', meson.current_source_dir())
|
2022-02-25 14:44:30 +01:00
|
|
|
doxygen_data.set('DOXY_OUTPUT_DIRECTORY', 'cplusplus')
|
2022-02-08 16:19:36 +01:00
|
|
|
|
|
|
|
doxyfile = configure_file(
|
|
|
|
input: 'Doxyfile.in',
|
|
|
|
output: 'Doxyfile',
|
|
|
|
configuration: doxygen_data,
|
|
|
|
install: false
|
|
|
|
)
|
|
|
|
|
|
|
|
html_target = custom_target('vips-cpp-docs',
|
|
|
|
input: doxyfile,
|
|
|
|
output: 'html',
|
|
|
|
command: [doxygen, doxyfile],
|
|
|
|
install: true,
|
2022-05-26 09:48:31 +02:00
|
|
|
install_dir: get_option('prefix') / get_option('datadir') / 'doc' / 'vips-doc'
|
2022-02-08 16:19:36 +01:00
|
|
|
)
|
|
|
|
endif
|