9bdab1e1329b19c6d8c7bb44f44d417308b9289f
[platform/core/uifw/rive-tizen.git] / meson.build
1 project('rive_tizen',
2         'cpp',
3         default_options : ['cpp_std=c++17'],
4         version : '0.1.0',
5         license : 'MIT')
6
7 run_command('script/install.sh')
8
9 add_project_arguments('-DRIVE_FILE_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
10
11 thorvg_dep = dependency('thorvg', required : true)
12
13 install_headers([
14    'submodule/include/artboard.hpp',
15    'submodule/include/backboard.hpp',
16    'submodule/include/command_path.hpp',
17    'submodule/include/component.hpp',
18    'submodule/include/component_dirt.hpp',
19    'submodule/include/container_component.hpp',
20    'submodule/include/core.hpp',
21    'submodule/include/core_context.hpp',
22    'submodule/include/dependency_sorter.hpp',
23    'submodule/include/draw_rules.hpp',
24    'submodule/include/draw_target.hpp',
25    'submodule/include/draw_target_placement.hpp',
26    'submodule/include/drawable.hpp',
27    'submodule/include/file.hpp',
28    'submodule/include/layout.hpp',
29    'submodule/include/node.hpp',
30    'submodule/include/renderer.hpp',
31    'submodule/include/runtime_header.hpp',
32    'submodule/include/status_code.hpp',
33    'submodule/include/transform_component.hpp',
34    'src/renderer/tvg_renderer.hpp'
35 ], subdir: 'rive')
36
37 install_headers([
38    'submodule/include/animation/animation.hpp',
39    'submodule/include/animation/cubic_interpolator.hpp',
40    'submodule/include/animation/keyed_object.hpp',
41    'submodule/include/animation/keyed_property.hpp',
42    'submodule/include/animation/keyframe.hpp',
43    'submodule/include/animation/keyframe_color.hpp',
44    'submodule/include/animation/keyframe_double.hpp',
45    'submodule/include/animation/keyframe_id.hpp',
46    'submodule/include/animation/linear_animation.hpp',
47    'submodule/include/animation/linear_animation_instance.hpp',
48    'submodule/include/animation/loop.hpp'
49 ], subdir: 'rive/animation')
50
51 install_headers([
52    'submodule/include/bones/bone.hpp',
53    'submodule/include/bones/cubic_weight.hpp',
54    'submodule/include/bones/root_bone.hpp',
55    'submodule/include/bones/skeletal_component.hpp',
56    'submodule/include/bones/skin.hpp',
57    'submodule/include/bones/skinnable.hpp',
58    'submodule/include/bones/tendon.hpp',
59    'submodule/include/bones/weight.hpp'
60 ], subdir: 'rive/bones')
61
62 install_headers([
63    'submodule/include/math/aabb.hpp',
64    'submodule/include/math/circle_constant.hpp',
65    'submodule/include/math/color.hpp',
66    'submodule/include/math/mat2d.hpp',
67    'submodule/include/math/transform_components.hpp',
68    'submodule/include/math/vec2d.hpp'
69 ], subdir: 'rive/math')
70
71 install_headers([
72    'submodule/include/core/binary_reader.hpp',
73    'submodule/include/core/reader.h'
74 ], subdir: 'rive/core')
75
76 install_headers([
77    'submodule/include/core/field_types/core_bool_type.hpp',
78    'submodule/include/core/field_types/core_color_type.hpp',
79    'submodule/include/core/field_types/core_double_type.hpp',
80    'submodule/include/core/field_types/core_string_type.hpp',
81    'submodule/include/core/field_types/core_uint_type.hpp'
82 ], subdir: 'rive/core/field_types')
83
84 install_headers([
85    'submodule/include/generated/artboard_base.hpp',
86    'submodule/include/generated/backboard_base.hpp',
87    'submodule/include/generated/component_base.hpp',
88    'submodule/include/generated/container_component_base.hpp',
89    'submodule/include/generated/core_registry.hpp',
90    'submodule/include/generated/draw_rules_base.hpp',
91    'submodule/include/generated/draw_target_base.hpp',
92    'submodule/include/generated/drawable_base.hpp',
93    'submodule/include/generated/node_base.hpp',
94    'submodule/include/generated/transform_component_base.hpp'
95 ], subdir: 'rive/generated')
96
97 install_headers([
98    'submodule/include/generated/animation/animation_base.hpp',
99    'submodule/include/generated/animation/cubic_interpolator_base.hpp',
100    'submodule/include/generated/animation/keyed_object_base.hpp',
101    'submodule/include/generated/animation/keyed_property_base.hpp',
102    'submodule/include/generated/animation/keyframe_base.hpp',
103    'submodule/include/generated/animation/keyframe_color_base.hpp',
104    'submodule/include/generated/animation/keyframe_double_base.hpp',
105    'submodule/include/generated/animation/keyframe_id_base.hpp',
106    'submodule/include/generated/animation/linear_animation_base.hpp'
107 ], subdir: 'rive/generated/animation')
108
109 install_headers([
110    'submodule/include/generated/bones/bone_base.hpp',
111    'submodule/include/generated/bones/cubic_weight_base.hpp',
112    'submodule/include/generated/bones/root_bone_base.hpp',
113    'submodule/include/generated/bones/skeletal_component_base.hpp',
114    'submodule/include/generated/bones/skin_base.hpp',
115    'submodule/include/generated/bones/tendon_base.hpp',
116    'submodule/include/generated/bones/weight_base.hpp'
117 ], subdir: 'rive/generated/bones')
118
119 install_headers([
120    'submodule/include/generated/shapes/clipping_shape_base.hpp',
121    'submodule/include/generated/shapes/cubic_asymmetric_vertex_base.hpp',
122    'submodule/include/generated/shapes/cubic_detached_vertex_base.hpp',
123    'submodule/include/generated/shapes/cubic_mirrored_vertex_base.hpp',
124    'submodule/include/generated/shapes/cubic_vertex_base.hpp',
125    'submodule/include/generated/shapes/ellipse_base.hpp',
126    'submodule/include/generated/shapes/parametric_path_base.hpp',
127    'submodule/include/generated/shapes/path_base.hpp',
128    'submodule/include/generated/shapes/path_composer_base.hpp',
129    'submodule/include/generated/shapes/path_vertex_base.hpp',
130    'submodule/include/generated/shapes/points_path_base.hpp',
131    'submodule/include/generated/shapes/polygon_base.hpp',
132    'submodule/include/generated/shapes/rectangle_base.hpp',
133    'submodule/include/generated/shapes/shape_base.hpp',
134    'submodule/include/generated/shapes/star_base.hpp',
135    'submodule/include/generated/shapes/straight_vertex_base.hpp',
136    'submodule/include/generated/shapes/triangle_base.hpp'
137 ], subdir: 'rive/generated/shapes')
138
139 install_headers([
140    'submodule/include/generated/shapes/paint/fill_base.hpp',
141    'submodule/include/generated/shapes/paint/gradient_stop_base.hpp',
142    'submodule/include/generated/shapes/paint/linear_gradient_base.hpp',
143    'submodule/include/generated/shapes/paint/radial_gradient_base.hpp',
144    'submodule/include/generated/shapes/paint/shape_paint_base.hpp',
145    'submodule/include/generated/shapes/paint/solid_color_base.hpp',
146    'submodule/include/generated/shapes/paint/stroke_base.hpp',
147    'submodule/include/generated/shapes/paint/trim_path_base.hpp',
148 ], subdir: 'rive/generated/shapes/paint')
149
150 install_headers([
151    'submodule/include/shapes/clipping_shape.hpp',
152    'submodule/include/shapes/cubic_asymmetric_vertex.hpp',
153    'submodule/include/shapes/cubic_detached_vertex.hpp',
154    'submodule/include/shapes/cubic_mirrored_vertex.hpp',
155    'submodule/include/shapes/cubic_vertex.hpp',
156    'submodule/include/shapes/ellipse.hpp',
157    'submodule/include/shapes/metrics_path.hpp',
158    'submodule/include/shapes/parametric_path.hpp',
159    'submodule/include/shapes/path.hpp',
160    'submodule/include/shapes/path_composer.hpp',
161    'submodule/include/shapes/path_space.hpp',
162    'submodule/include/shapes/path_vertex.hpp',
163    'submodule/include/shapes/points_path.hpp',
164    'submodule/include/shapes/polygon.hpp',
165    'submodule/include/shapes/rectangle.hpp',
166    'submodule/include/shapes/shape.hpp',
167    'submodule/include/shapes/shape_paint_container.hpp',
168    'submodule/include/shapes/star.hpp',
169    'submodule/include/shapes/straight_vertex.hpp',
170    'submodule/include/shapes/triangle.hpp'
171 ], subdir: 'rive/shapes')
172
173 install_headers([
174    'submodule/include/shapes/paint/blend_mode.hpp',
175    'submodule/include/shapes/paint/color.hpp',
176    'submodule/include/shapes/paint/fill.hpp',
177    'submodule/include/shapes/paint/gradient_stop.hpp',
178    'submodule/include/shapes/paint/linear_gradient.hpp',
179    'submodule/include/shapes/paint/radial_gradient.hpp',
180    'submodule/include/shapes/paint/shape_paint.hpp',
181    'submodule/include/shapes/paint/shape_paint_mutator.hpp',
182    'submodule/include/shapes/paint/solid_color.hpp',
183    'submodule/include/shapes/paint/stroke.hpp',
184    'submodule/include/shapes/paint/stroke_cap.hpp',
185    'submodule/include/shapes/paint/stroke_effect.hpp',
186    'submodule/include/shapes/paint/stroke_join.hpp',
187    'submodule/include/shapes/paint/trim_path.hpp'
188 ], subdir: 'rive/shapes/paint')
189
190
191 rive_cpp_src = [
192    'submodule/src/math/aabb.cpp',
193    'submodule/src/math/vec2d.cpp',
194    'submodule/src/math/mat2d.cpp',
195    'submodule/src/animation/cubic_interpolator.cpp',
196    'submodule/src/animation/keyed_object.cpp',
197    'submodule/src/animation/keyed_property.cpp',
198    'submodule/src/animation/keyframe.cpp',
199    'submodule/src/animation/keyframe_color.cpp',
200    'submodule/src/animation/keyframe_double.cpp',
201    'submodule/src/animation/keyframe_id.cpp',
202    'submodule/src/animation/linear_animation.cpp',
203    'submodule/src/animation/linear_animation_instance.cpp',
204    'submodule/src/core/binary_reader.cpp',
205    'submodule/src/core/field_types/core_bool_type.cpp',
206    'submodule/src/core/field_types/core_color_type.cpp',
207    'submodule/src/core/field_types/core_double_type.cpp',
208    'submodule/src/core/field_types/core_string_type.cpp',
209    'submodule/src/core/field_types/core_uint_type.cpp',
210    'submodule/src/shapes/clipping_shape.cpp',
211    'submodule/src/shapes/cubic_mirrored_vertex.cpp',
212    'submodule/src/shapes/metrics_path.cpp',
213    'submodule/src/shapes/path.cpp',
214    'submodule/src/shapes/points_path.cpp',
215    'submodule/src/shapes/shape.cpp',
216    'submodule/src/shapes/straight_vertex.cpp',
217    'submodule/src/shapes/cubic_asymmetric_vertex.cpp',
218    'submodule/src/shapes/cubic_vertex.cpp',
219    'submodule/src/shapes/path_composer.cpp',
220    'submodule/src/shapes/polygon.cpp',
221    'submodule/src/shapes/shape_paint_container.cpp',
222    'submodule/src/shapes/triangle.cpp',
223    'submodule/src/shapes/cubic_detached_vertex.cpp',
224    'submodule/src/shapes/ellipse.cpp',
225    'submodule/src/shapes/parametric_path.cpp',
226    'submodule/src/shapes/path_vertex.cpp',
227    'submodule/src/shapes/rectangle.cpp',
228    'submodule/src/shapes/star.cpp',
229    'submodule/src/shapes/paint/color.cpp',
230    'submodule/src/shapes/paint/fill.cpp',
231    'submodule/src/shapes/paint/gradient_stop.cpp',
232    'submodule/src/shapes/paint/linear_gradient.cpp',
233    'submodule/src/shapes/paint/radial_gradient.cpp',
234    'submodule/src/shapes/paint/shape_paint.cpp',
235    'submodule/src/shapes/paint/shape_paint_mutator.cpp',
236    'submodule/src/shapes/paint/solid_color.cpp',
237    'submodule/src/shapes/paint/stroke.cpp',
238    'submodule/src/shapes/paint/trim_path.cpp',
239    'submodule/src/bones/bone.cpp',
240    'submodule/src/bones/root_bone.cpp',
241    'submodule/src/bones/skin.cpp',
242    'submodule/src/bones/skinnable.cpp',
243    'submodule/src/bones/tendon.cpp',
244    'submodule/src/bones/weight.cpp',
245    'submodule/src/artboard.cpp',
246    'submodule/src/component.cpp',
247    'submodule/src/dependency_sorter.cpp',
248    'submodule/src/draw_rules.cpp',
249    'submodule/src/draw_target.cpp',
250    'submodule/src/drawable.cpp',
251    'submodule/src/file.cpp',
252    'submodule/src/layout.cpp',
253    'submodule/src/node.cpp',
254    'submodule/src/transform_component.cpp',
255 ]
256
257 rive_cpp_dep = declare_dependency(
258    include_directories : include_directories('submodule/include'),
259    sources : rive_cpp_src,
260 )
261
262 headers = [include_directories('inc'), include_directories('submodule/include'), include_directories('src/renderer')]
263
264 subdir('inc')
265 subdir('src')
266
267 if get_option('example') == true
268         message('Enable Examples')
269         subdir('example')
270 endif