3 default_options : ['cpp_std=c++17'],
7 run_command('script/install.sh')
9 add_project_arguments('-DRIVE_FILE_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
11 thorvg_dep = dependency('thorvg', required : true)
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'
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')
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')
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')
72 'submodule/include/core/binary_reader.hpp',
73 'submodule/include/core/reader.h'
74 ], subdir: 'rive/core')
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')
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')
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')
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')
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')
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')
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')
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')
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',
257 rive_cpp_dep = declare_dependency(
258 include_directories : include_directories('submodule/include'),
259 sources : rive_cpp_src,
262 headers = [include_directories('inc'), include_directories('submodule/include'), include_directories('src/renderer')]
267 if get_option('example') == true
268 message('Enable Examples')