Update Chinese (China) translation
[gegl.git] / operations / common-cxx / meson.build
blob146967faeea809e0f04a884c7e8862519d4e8a99
2 gegl_common_cxx_sources = files(
3   'denoise-dct.cc',
4   'distance-transform.cc',
5   'focus-blur.c',
6   'lens-blur.cc',
7   'piecewise-blend.cc',
8   'variable-blur.c',
9   'warp.cc',
12 gegl_common_cxx_sources += custom_target('module_common_gpl3.c',
13   input : [ gegl_common_cxx_sources ],
14   output: [ 'module_common_gpl3.c' ],
15   command: [
16     gen_loader,
17     '@INPUT@',
18   ],
19   capture: true
22 gegl_common_cxx = shared_library('gegl-common-cxx',
23   [ gegl_common_cxx_sources, opencl_headers, ],
24   include_directories: [ rootInclude, geglInclude, ],
25   dependencies: [
26     babl,
27     glib,
28     json_glib,
29     math,
30   ],
31   link_with: [
32     gegl_lib,
33   ],
34   c_args: [   '-DGEGL_OP_BUNDLE', ],
35   cpp_args: [ '-DGEGL_OP_BUNDLE', ],
36   name_prefix: '',
37   install: true,
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, ],
48     dependencies: [
49       babl,
50       glib,
51       json_glib,
52       math,
53     ],
54     link_with: [
55       gegl_lib,
56     ],
57     c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
58     cpp_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
59     name_prefix: '',
60     install: true,
61     install_dir: get_option('libdir') / api_name,
62   )
63   gegl_operations += gegl_common_cxx_x86_64_v2
64   
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, ],
68     dependencies: [
69       babl,
70       glib,
71       json_glib,
72       math,
73     ],
74     link_with: [
75       gegl_lib,
76     ],
77     c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
78     cpp_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
79     name_prefix: '',
80     install: true,
81     install_dir: get_option('libdir') / api_name,
82   )
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, ],
90     dependencies: [
91       babl,
92       glib,
93       json_glib,
94       math,
95     ],
96     link_with: [
97       gegl_lib,
98     ],
99     c_args: [ '-DGEGL_OP_BUNDLE' ] + arm_neon_flags,
100     cpp_args: [ '-DGEGL_OP_BUNDLE' ] + arm_neon_flags,
101     name_prefix: '',
102     install: true,
103     install_dir: get_option('libdir') / api_name,
104   )
105   gegl_operations += gegl_common_cxx_arm_neon
107 endif