2 gegl_common_cxx_sources = files(
4 'distance-transform.cc',
12 gegl_common_cxx_sources += custom_target('module_common_gpl3.c',
13 input : [ gegl_common_cxx_sources ],
14 output: [ 'module_common_gpl3.c' ],
22 gegl_common_cxx = shared_library('gegl-common-cxx',
23 [ gegl_common_cxx_sources, opencl_headers, ],
24 include_directories: [ rootInclude, geglInclude, ],
34 c_args: [ '-DGEGL_OP_BUNDLE', ],
35 cpp_args: [ '-DGEGL_OP_BUNDLE', ],
38 install_dir: get_option('libdir') / api_name,
41 gegl_operations += gegl_common_cxx
43 if host_cpu_family == 'x86_64'
45 gegl_common_cxx_x86_64_v2 = shared_library('gegl-common-cxx-x86_64-v2',
46 gegl_common_cxx_sources, opencl_headers,
47 include_directories: [ rootInclude, geglInclude, ],
57 c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
58 cpp_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
61 install_dir: get_option('libdir') / api_name,
63 gegl_operations += gegl_common_cxx_x86_64_v2
65 gegl_common_cxx_x86_64_v3 = shared_library('gegl-common-cxx-x86_64-v3',
66 gegl_common_cxx_sources, opencl_headers,
67 include_directories: [ rootInclude, geglInclude, ],
77 c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
78 cpp_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
81 install_dir: get_option('libdir') / api_name,
83 gegl_operations += gegl_common_cxx_x86_64_v3
85 elif host_cpu_family == 'arm'
87 gegl_common_cxx_arm_neon = shared_library('gegl-common-cxx-arm-neon',
88 gegl_common_cxx_sources, opencl_headers,
89 include_directories: [ rootInclude, geglInclude, ],
99 c_args: [ '-DGEGL_OP_BUNDLE' ] + arm_neon_flags,
100 cpp_args: [ '-DGEGL_OP_BUNDLE' ] + arm_neon_flags,
103 install_dir: get_option('libdir') / api_name,
105 gegl_operations += gegl_common_cxx_arm_neon