Fixed issue where only the last line was aligned in the case of a multiline input...
[platform/core/uifw/dali-toolkit.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.11)\r
2 \r
3 PROJECT (dali-toolkit)\r
4 \r
5 ADD_DEFINITIONS(\r
6 -DDALI_ENV="../../dali-env"\r
7 -DDALI_DATA_READ_ONLY_DIR=DALI_ENV"/opt/share/dali"\r
8 -DDALI_IMAGE_DIR=DALI_ENV"/opt/share/dali/toolkit/images/"\r
9 -DDALI_STYLE_DIR=DALI_ENV"/opt/share/dali/toolkit/styles/"\r
10 -DDALI_SOUND_DIR=DALI_ENV"/opt/share/dali/toolkit/sounds/"\r
11 -DDALI_STYLE_IMAGE_DIR=DALI_ENV"/opt/share/dali/toolkit/styles/images/"\r
12 -DCURL_STATICLIB=0\r
13 /DBUILDING_DALI_TOOLKIT\r
14 /vmg\r
15 /NODEFAULTLIB:"libcmt.lib"\r
16 /FI"../windows-dependencies/ExInclude/PreprocessorDefinitions.h"\r
17 /FI"../windows-dependencies/ExInclude/ToolKitPreDefine.h"\r
18 /MP\r
19 /Gz\r
20 )\r
21 \r
22 #head file path\r
23 INCLUDE_DIRECTORIES(\r
24 ./\r
25 ../dali-core\r
26 ../dali-adaptor\r
27 ../windows-dependencies/ExInclude\r
28 ../dali-env/opt/include\r
29 )\r
30 \r
31 #devel-api\r
32 SET( devel_api_src_dir dali-toolkit/devel-api )\r
33 \r
34 SET ( SOURCES ${SOURCES}\r
35   ${devel_api_src_dir}/builder/builder.cpp\r
36   ${devel_api_src_dir}/builder/json-parser.cpp\r
37   ${devel_api_src_dir}/builder/tree-node.cpp\r
38   ${devel_api_src_dir}/controls/control-devel.cpp\r
39   ${devel_api_src_dir}/controls/control-wrapper.cpp\r
40   ${devel_api_src_dir}/controls/control-wrapper-impl.cpp\r
41   ${devel_api_src_dir}/controls/bloom-view/bloom-view.cpp\r
42   ${devel_api_src_dir}/controls/bubble-effect/bubble-emitter.cpp\r
43   ${devel_api_src_dir}/controls/buttons/toggle-button.cpp\r
44   ${devel_api_src_dir}/controls/effects-view/effects-view.cpp\r
45   ${devel_api_src_dir}/controls/magnifier/magnifier.cpp\r
46   ${devel_api_src_dir}/controls/navigation-view/navigation-view.cpp\r
47   ${devel_api_src_dir}/controls/page-turn-view/page-turn-landscape-view.cpp\r
48   ${devel_api_src_dir}/controls/page-turn-view/page-turn-portrait-view.cpp\r
49   ${devel_api_src_dir}/controls/page-turn-view/page-turn-view.cpp\r
50   ${devel_api_src_dir}/controls/popup/confirmation-popup.cpp\r
51   ${devel_api_src_dir}/controls/popup/popup.cpp\r
52   ${devel_api_src_dir}/controls/shadow-view/shadow-view.cpp\r
53   ${devel_api_src_dir}/controls/super-blur-view/super-blur-view.cpp\r
54   ${devel_api_src_dir}/controls/text-controls/text-editor-devel.cpp\r
55   ${devel_api_src_dir}/controls/text-controls/text-field-devel.cpp\r
56   ${devel_api_src_dir}/controls/text-controls/text-selection-popup.cpp\r
57   ${devel_api_src_dir}/controls/text-controls/text-selection-toolbar.cpp\r
58   ${devel_api_src_dir}/controls/tool-bar/tool-bar.cpp\r
59   ${devel_api_src_dir}/focus-manager/keyinput-focus-manager.cpp\r
60   ${devel_api_src_dir}/focus-manager/keyboard-focus-manager-devel.cpp\r
61   ${devel_api_src_dir}/image-loader/async-image-loader-devel.cpp\r
62   ${devel_api_src_dir}/image-loader/atlas-upload-observer.cpp\r
63   ${devel_api_src_dir}/image-loader/image-atlas.cpp\r
64   ${devel_api_src_dir}/image-loader/texture-manager.cpp\r
65   ${devel_api_src_dir}/styling/style-manager-devel.cpp\r
66   ${devel_api_src_dir}/transition-effects/cube-transition-cross-effect.cpp\r
67   ${devel_api_src_dir}/transition-effects/cube-transition-effect.cpp\r
68   ${devel_api_src_dir}/transition-effects/cube-transition-fold-effect.cpp\r
69   ${devel_api_src_dir}/transition-effects/cube-transition-wave-effect.cpp\r
70   ${devel_api_src_dir}/visual-factory/transition-data.cpp\r
71   ${devel_api_src_dir}/visual-factory/visual-factory.cpp\r
72   ${devel_api_src_dir}/visual-factory/visual-base.cpp\r
73   ${devel_api_src_dir}/controls/gaussian-blur-view/gaussian-blur-view.cpp\r
74 )\r
75 \r
76 #internal\r
77 SET(internal_src_dir dali-toolkit/internal )\r
78 \r
79 SET( SOURCES ${SOURCES}\r
80    ${internal_src_dir}/builder/builder-animations.cpp\r
81    ${internal_src_dir}/builder/builder-impl.cpp\r
82    ${internal_src_dir}/builder/builder-impl-debug.cpp\r
83    ${internal_src_dir}/builder/builder-set-property.cpp\r
84    ${internal_src_dir}/builder/builder-signals.cpp\r
85    ${internal_src_dir}/builder/json-parser-state.cpp\r
86    ${internal_src_dir}/builder/json-parser-impl.cpp\r
87    ${internal_src_dir}/builder/style.cpp\r
88    ${internal_src_dir}/builder/tree-node-manipulator.cpp\r
89    ${internal_src_dir}/builder/replacement.cpp\r
90    ${internal_src_dir}/visuals/animated-image/animated-image-visual.cpp\r
91    ${internal_src_dir}/visuals/animated-image/image-cache.cpp\r
92    ${internal_src_dir}/visuals/animated-image/fixed-image-cache.cpp\r
93    ${internal_src_dir}/visuals/animated-image/rolling-image-cache.cpp\r
94    ${internal_src_dir}/visuals/animated-image/rolling-gif-image-cache.cpp\r
95    ${internal_src_dir}/visuals/border/border-visual.cpp\r
96    ${internal_src_dir}/visuals/color/color-visual.cpp\r
97    ${internal_src_dir}/visuals/gradient/gradient-visual.cpp\r
98    ${internal_src_dir}/visuals/gradient/gradient.cpp\r
99    ${internal_src_dir}/visuals/gradient/linear-gradient.cpp\r
100    ${internal_src_dir}/visuals/gradient/radial-gradient.cpp\r
101    ${internal_src_dir}/visuals/animated-gradient/animated-gradient-visual.cpp\r
102    ${internal_src_dir}/visuals/image-atlas-manager.cpp\r
103    ${internal_src_dir}/visuals/image/image-visual.cpp\r
104    ${internal_src_dir}/visuals/mesh/mesh-visual.cpp\r
105    ${internal_src_dir}/visuals/npatch-loader.cpp\r
106    ${internal_src_dir}/visuals/npatch/npatch-visual.cpp\r
107    ${internal_src_dir}/visuals/primitive/primitive-visual.cpp\r
108    ${internal_src_dir}/visuals/svg/svg-rasterize-thread.cpp\r
109    ${internal_src_dir}/visuals/svg/svg-visual.cpp\r
110    ${internal_src_dir}/visuals/text/text-visual.cpp\r
111    ${internal_src_dir}/visuals/transition-data-impl.cpp\r
112    ${internal_src_dir}/visuals/texture-manager-impl.cpp\r
113    ${internal_src_dir}/visuals/texture-upload-observer.cpp\r
114    ${internal_src_dir}/visuals/image-visual-shader-factory.cpp\r
115    ${internal_src_dir}/visuals/visual-base-data-impl.cpp\r
116    ${internal_src_dir}/visuals/visual-base-impl.cpp\r
117    ${internal_src_dir}/visuals/visual-factory-cache.cpp\r
118    ${internal_src_dir}/visuals/visual-factory-impl.cpp\r
119    ${internal_src_dir}/visuals/visual-string-constants.cpp\r
120    ${internal_src_dir}/visuals/visual-url.cpp\r
121    ${internal_src_dir}/visuals/wireframe/wireframe-visual.cpp\r
122    ${internal_src_dir}/controls/alignment/alignment-impl.cpp\r
123    ${internal_src_dir}/controls/bloom-view/bloom-view-impl.cpp\r
124    ${internal_src_dir}/controls/bubble-effect/bubble-emitter-impl.cpp\r
125    ${internal_src_dir}/controls/bubble-effect/bubble-renderer.cpp\r
126    ${internal_src_dir}/controls/buttons/button-impl.cpp\r
127    ${internal_src_dir}/controls/buttons/check-box-button-impl.cpp\r
128    ${internal_src_dir}/controls/buttons/push-button-impl.cpp\r
129    ${internal_src_dir}/controls/buttons/radio-button-impl.cpp\r
130    ${internal_src_dir}/controls/buttons/toggle-button-impl.cpp\r
131    ${internal_src_dir}/controls/control/control-data-impl.cpp\r
132    ${internal_src_dir}/controls/control/control-debug.cpp\r
133    ${internal_src_dir}/controls/effects-view/effects-view-impl.cpp\r
134    ${internal_src_dir}/controls/flex-container/flex-container-impl.cpp\r
135    ${internal_src_dir}/controls/gaussian-blur-view/gaussian-blur-view-impl.cpp\r
136    ${internal_src_dir}/controls/image-view/image-view-impl.cpp\r
137    ${internal_src_dir}/controls/magnifier/magnifier-impl.cpp\r
138    ${internal_src_dir}/controls/navigation-view/navigation-view-impl.cpp\r
139    ${internal_src_dir}/controls/popup/confirmation-popup-impl.cpp\r
140    ${internal_src_dir}/controls/model3d-view/model3d-view-impl.cpp\r
141    ${internal_src_dir}/controls/model3d-view/obj-loader.cpp\r
142    ${internal_src_dir}/controls/popup/popup-impl.cpp\r
143    ${internal_src_dir}/controls/page-turn-view/page-turn-portrait-view-impl.cpp\r
144    ${internal_src_dir}/controls/page-turn-view/page-turn-effect.cpp\r
145    ${internal_src_dir}/controls/page-turn-view/page-turn-landscape-view-impl.cpp\r
146    ${internal_src_dir}/controls/page-turn-view/page-turn-view-impl.cpp\r
147    ${internal_src_dir}/controls/progress-bar/progress-bar-impl.cpp\r
148    ${internal_src_dir}/controls/scroll-bar/scroll-bar-impl.cpp\r
149    ${internal_src_dir}/controls/scrollable/bouncing-effect-actor.cpp\r
150    ${internal_src_dir}/controls/scrollable/item-view/depth-layout.cpp\r
151    ${internal_src_dir}/controls/scrollable/item-view/grid-layout.cpp\r
152    ${internal_src_dir}/controls/scrollable/item-view/item-view-impl.cpp\r
153    ${internal_src_dir}/controls/scrollable/item-view/spiral-layout.cpp\r
154    ${internal_src_dir}/controls/scrollable/scrollable-impl.cpp\r
155    ${internal_src_dir}/controls/scrollable/scroll-view/scroll-base-impl.cpp\r
156    ${internal_src_dir}/controls/scrollable/scroll-view/scroll-overshoot-indicator-impl.cpp\r
157    ${internal_src_dir}/controls/scrollable/scroll-view/scroll-view-effect-impl.cpp\r
158    ${internal_src_dir}/controls/scrollable/scroll-view/scroll-view-impl.cpp\r
159    ${internal_src_dir}/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp\r
160    ${internal_src_dir}/controls/shadow-view/shadow-view-impl.cpp\r
161    ${internal_src_dir}/controls/slider/slider-impl.cpp\r
162    ${internal_src_dir}/controls/super-blur-view/super-blur-view-impl.cpp\r
163    ${internal_src_dir}/controls/table-view/table-view-impl.cpp\r
164    ${internal_src_dir}/controls/text-controls/text-editor-impl.cpp\r
165    ${internal_src_dir}/controls/text-controls/text-field-impl.cpp\r
166    ${internal_src_dir}/controls/text-controls/text-label-impl.cpp\r
167    ${internal_src_dir}/controls/text-controls/text-selection-popup-impl.cpp\r
168    ${internal_src_dir}/controls/text-controls/text-selection-toolbar-impl.cpp\r
169    ${internal_src_dir}/controls/tool-bar/tool-bar-impl.cpp\r
170    ${internal_src_dir}/controls/tooltip/tooltip.cpp\r
171    ${internal_src_dir}/controls/video-view/video-view-impl.cpp\r
172    ${internal_src_dir}/accessibility-manager/accessibility-manager-impl.cpp\r
173    ${internal_src_dir}/feedback/feedback-style.cpp\r
174    ${internal_src_dir}/focus-manager/keyboard-focus-manager-impl.cpp\r
175    ${internal_src_dir}/focus-manager/keyinput-focus-manager-impl.cpp\r
176    ${internal_src_dir}/helpers/color-conversion.cpp\r
177    ${internal_src_dir}/helpers/property-helper.cpp\r
178    ${internal_src_dir}/filters/blur-two-pass-filter.cpp\r
179    ${internal_src_dir}/filters/emboss-filter.cpp\r
180    ${internal_src_dir}/filters/image-filter.cpp\r
181    ${internal_src_dir}/filters/spread-filter.cpp\r
182    ${internal_src_dir}/image-loader/async-image-loader-impl.cpp\r
183    ${internal_src_dir}/image-loader/atlas-packer.cpp\r
184    ${internal_src_dir}/image-loader/image-atlas-impl.cpp\r
185    ${internal_src_dir}/image-loader/image-load-thread.cpp\r
186    ${internal_src_dir}/styling/style-manager-impl.cpp\r
187    ${internal_src_dir}/text/bidirectional-support.cpp\r
188    ${internal_src_dir}/text/character-set-conversion.cpp\r
189    ${internal_src_dir}/text/color-segmentation.cpp\r
190    ${internal_src_dir}/text/cursor-helper-functions.cpp\r
191    ${internal_src_dir}/text/glyph-metrics-helper.cpp\r
192    ${internal_src_dir}/text/logical-model-impl.cpp\r
193    ${internal_src_dir}/text/markup-processor.cpp\r
194    ${internal_src_dir}/text/markup-processor-color.cpp\r
195    ${internal_src_dir}/text/markup-processor-font.cpp\r
196    ${internal_src_dir}/text/markup-processor-helper-functions.cpp\r
197    ${internal_src_dir}/text/multi-language-support.cpp\r
198    ${internal_src_dir}/text/hidden-text.cpp\r
199    ${internal_src_dir}/text/property-string-parser.cpp\r
200    ${internal_src_dir}/text/segmentation.cpp\r
201    ${internal_src_dir}/text/shaper.cpp\r
202    ${internal_src_dir}/text/text-enumerations-impl.cpp\r
203    ${internal_src_dir}/text/text-controller.cpp\r
204    ${internal_src_dir}/text/text-controller-impl.cpp\r
205    ${internal_src_dir}/text/text-effects-style.cpp\r
206    ${internal_src_dir}/text/text-font-style.cpp\r
207    ${internal_src_dir}/text/text-io.cpp\r
208    ${internal_src_dir}/text/text-model.cpp\r
209    ${internal_src_dir}/text/text-scroller.cpp\r
210    ${internal_src_dir}/text/text-vertical-scroller.cpp\r
211    ${internal_src_dir}/text/text-view.cpp\r
212    ${internal_src_dir}/text/text-view-interface.cpp\r
213    ${internal_src_dir}/text/visual-model-impl.cpp\r
214    ${internal_src_dir}/text/decorator/text-decorator.cpp\r
215    ${internal_src_dir}/text/layouts/layout-engine.cpp\r
216    ${internal_src_dir}/text/multi-language-helper-functions.cpp\r
217    ${internal_src_dir}/text/multi-language-support-impl.cpp\r
218    ${internal_src_dir}/text/rendering/text-backend.cpp\r
219    ${internal_src_dir}/text/rendering/text-renderer.cpp\r
220    ${internal_src_dir}/text/rendering/atlas/text-atlas-renderer.cpp\r
221    ${internal_src_dir}/text/rendering/atlas/atlas-glyph-manager.cpp\r
222    ${internal_src_dir}/text/rendering/atlas/atlas-glyph-manager-impl.cpp\r
223    ${internal_src_dir}/text/rendering/atlas/atlas-manager.cpp\r
224    ${internal_src_dir}/text/rendering/atlas/atlas-manager-impl.cpp\r
225    ${internal_src_dir}/text/rendering/atlas/atlas-mesh-factory.cpp\r
226    ${internal_src_dir}/text/rendering/text-backend-impl.cpp\r
227    ${internal_src_dir}/text/rendering/text-typesetter.cpp\r
228    ${internal_src_dir}/text/rendering/view-model.cpp\r
229    ${internal_src_dir}/transition-effects/cube-transition-effect-impl.cpp\r
230    ${internal_src_dir}/transition-effects/cube-transition-cross-effect-impl.cpp\r
231    ${internal_src_dir}/transition-effects/cube-transition-fold-effect-impl.cpp\r
232    ${internal_src_dir}/transition-effects/cube-transition-wave-effect-impl.cpp\r
233    ${internal_src_dir}/text/xhtml-entities.cpp\r
234 )\r
235 \r
236 #public-api\r
237 SET( public_api_src_dir dali-toolkit/public-api )\r
238 \r
239 SET( SOURCES ${SOURCES}\r
240   ${public_api_src_dir}/controls/control-impl.cpp\r
241   ${public_api_src_dir}/controls/control.cpp\r
242   ${public_api_src_dir}/controls/alignment/alignment.cpp\r
243   ${public_api_src_dir}/controls/buttons/button.cpp\r
244   ${public_api_src_dir}/controls/buttons/check-box-button.cpp\r
245   ${public_api_src_dir}/controls/buttons/push-button.cpp\r
246   ${public_api_src_dir}/controls/buttons/radio-button.cpp\r
247   ${public_api_src_dir}/controls/flex-container/flex-container.cpp\r
248   ${public_api_src_dir}/controls/image-view/image-view.cpp\r
249   ${public_api_src_dir}/controls/model3d-view/model3d-view.cpp\r
250   ${public_api_src_dir}/controls/progress-bar/progress-bar.cpp\r
251   ${public_api_src_dir}/controls/scroll-bar/scroll-bar.cpp\r
252   ${public_api_src_dir}/controls/scrollable/item-view/default-item-layout.cpp\r
253   ${public_api_src_dir}/controls/scrollable/item-view/item-layout.cpp\r
254   ${public_api_src_dir}/controls/scrollable/item-view/item-view.cpp\r
255   ${public_api_src_dir}/controls/scrollable/scroll-view/scroll-view-constraints.cpp\r
256   ${public_api_src_dir}/controls/scrollable/scroll-view/scroll-view-effect.cpp\r
257   ${public_api_src_dir}/controls/scrollable/scroll-view/scroll-view-page-path-effect.cpp\r
258   ${public_api_src_dir}/controls/scrollable/scroll-view/scroll-view.cpp\r
259   ${public_api_src_dir}/controls/scrollable/scrollable.cpp\r
260   ${public_api_src_dir}/controls/slider/slider.cpp\r
261   ${public_api_src_dir}/controls/table-view/table-view.cpp\r
262   ${public_api_src_dir}/controls/text-controls/text-editor.cpp\r
263   ${public_api_src_dir}/controls/text-controls/text-label.cpp\r
264   ${public_api_src_dir}/controls/text-controls/text-field.cpp\r
265   ${public_api_src_dir}/controls/video-view/video-view.cpp\r
266   ${public_api_src_dir}/image-loader/async-image-loader.cpp\r
267   ${public_api_src_dir}/image-loader/sync-image-loader.cpp\r
268   ${public_api_src_dir}/styling/style-manager.cpp\r
269   ${public_api_src_dir}/accessibility-manager/accessibility-manager.cpp\r
270   ${public_api_src_dir}/focus-manager/keyboard-focus-manager.cpp\r
271   ${public_api_src_dir}/dali-toolkit-version.cpp\r
272   ${public_api_src_dir}/enums.cpp\r
273 )\r
274 \r
275 link_directories(\r
276 ../windows-dependencies/ExLib\r
277 ../bin\r
278 )\r
279 \r
280 SET( SOURCES ${SOURCES}\r
281   dali-toolkit/third-party/nanosvg/nanosvg.cc\r
282   dali-toolkit/third-party/nanosvg/nanosvgrast.cc\r
283   dali-toolkit/third-party/yoga/Yoga.cpp\r
284   dali-toolkit/third-party/yoga/YGStyle.cpp\r
285   dali-toolkit/third-party/yoga/YGNodePrint.cpp\r
286   dali-toolkit/third-party/yoga/YGNode.cpp\r
287   dali-toolkit/third-party/yoga/YGLayout.cpp\r
288   dali-toolkit/third-party/yoga/YGFloatOptional.cpp\r
289   dali-toolkit/third-party/yoga/YGEnums.cpp\r
290   dali-toolkit/third-party/yoga/YGConfig.cpp\r
291   dali-toolkit/third-party/yoga/Utils.cpp\r
292 )\r
293 set(LIBRARY_OUTPUT_PATH ../../../bin)\r
294 \r
295 ADD_LIBRARY(dali-toolkit SHARED ${SOURCES})\r
296 \r
297 target_link_libraries(dali-toolkit dali-core.lib)\r
298 target_link_libraries(dali-toolkit dali-adaptor.lib)\r
299 target_link_libraries(dali-toolkit dlfcn.lib)\r
300 target_link_libraries(dali-toolkit WindowsPlatform.lib)\r
301 \r
302 add_dependencies(dali-toolkit dali-core)\r
303 add_dependencies(dali-toolkit dali-adaptor)\r
304 \r
305 #add link library\r
306 #TARGET_LINK_LIBRARIES(${FS_BUILD_BINARY_PREFIX}sqrt ${LIBRARIES})\r