e8d73ca6eb1e1757adbc64e18e1366d8854c0f51
[platform/core/uifw/dali-core.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.11)\r
2 \r
3 PROJECT (dali-core)\r
4 \r
5 add_subdirectory(dali/devel-api)\r
6 add_subdirectory(dali/integration-api)\r
7 #add_subdirectory(dali/internal)\r
8 add_subdirectory(dali/public-api)\r
9 \r
10 SET(INTERNAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dali/internal)\r
11 \r
12 SET(SOURCES ${SOURCES}\r
13   ${CMAKE_CURRENT_SOURCE_DIR}/dali/integration-api/trace.cpp\r
14   ${INTERNAL_DIR}/common/blending-options.cpp\r
15   ${INTERNAL_DIR}/common/core-impl.cpp\r
16   ${INTERNAL_DIR}/common/internal-constants.cpp\r
17   ${INTERNAL_DIR}/common/math.cpp\r
18   ${INTERNAL_DIR}/common/message-buffer.cpp\r
19   ${INTERNAL_DIR}/common/mutex-trace.cpp\r
20   ${INTERNAL_DIR}/common/image-sampler.cpp\r
21   ${INTERNAL_DIR}/common/image-attributes.cpp\r
22   ${INTERNAL_DIR}/common/fixed-size-memory-pool.cpp\r
23 \r
24   ${INTERNAL_DIR}/event/actors/actor-impl.cpp\r
25   ${INTERNAL_DIR}/event/actors/custom-actor-internal.cpp\r
26   ${INTERNAL_DIR}/event/actors/layer-impl.cpp\r
27   ${INTERNAL_DIR}/event/actors/layer-list.cpp\r
28   ${INTERNAL_DIR}/event/actors/camera-actor-impl.cpp\r
29   ${INTERNAL_DIR}/event/animation/animation-impl.cpp\r
30   ${INTERNAL_DIR}/event/animation/animation-playlist.cpp\r
31   ${INTERNAL_DIR}/event/animation/constrainer.cpp\r
32   ${INTERNAL_DIR}/event/animation/constraint-base.cpp\r
33   ${INTERNAL_DIR}/event/animation/key-frames-impl.cpp\r
34   ${INTERNAL_DIR}/event/animation/linear-constrainer-impl.cpp\r
35   ${INTERNAL_DIR}/event/animation/path-impl.cpp\r
36   ${INTERNAL_DIR}/event/animation/path-constrainer-impl.cpp\r
37   ${INTERNAL_DIR}/event/common/event-thread-services.cpp\r
38   ${INTERNAL_DIR}/event/common/notification-manager.cpp\r
39   ${INTERNAL_DIR}/event/common/object-impl.cpp\r
40   ${INTERNAL_DIR}/event/common/object-registry-impl.cpp\r
41   ${INTERNAL_DIR}/event/common/projection.cpp\r
42   ${INTERNAL_DIR}/event/common/property-buffer-impl.cpp\r
43   ${INTERNAL_DIR}/event/common/property-conditions-impl.cpp\r
44   ${INTERNAL_DIR}/event/common/property-metadata.cpp\r
45   ${INTERNAL_DIR}/event/common/property-notification-impl.cpp\r
46   ${INTERNAL_DIR}/event/common/property-notification-manager.cpp\r
47   ${INTERNAL_DIR}/event/common/property-helper.cpp\r
48   ${INTERNAL_DIR}/event/common/stage-impl.cpp\r
49   ${INTERNAL_DIR}/event/common/system-overlay-impl.cpp\r
50   ${INTERNAL_DIR}/event/common/thread-local-storage.cpp\r
51   ${INTERNAL_DIR}/event/common/type-info-impl.cpp\r
52   ${INTERNAL_DIR}/event/common/type-registry-impl.cpp\r
53   ${INTERNAL_DIR}/event/effects/shader-factory.cpp\r
54   ${INTERNAL_DIR}/event/events/actor-gesture-data.cpp\r
55   ${INTERNAL_DIR}/event/events/actor-observer.cpp\r
56   ${INTERNAL_DIR}/event/events/event-processor.cpp\r
57   ${INTERNAL_DIR}/event/events/key-event-impl.cpp\r
58   ${INTERNAL_DIR}/event/events/key-event-processor.cpp\r
59   ${INTERNAL_DIR}/event/events/gesture-detector-impl.cpp\r
60   ${INTERNAL_DIR}/event/events/gesture-event-processor.cpp\r
61   ${INTERNAL_DIR}/event/events/gesture-processor.cpp\r
62   ${INTERNAL_DIR}/event/events/hit-test-algorithm-impl.cpp\r
63   ${INTERNAL_DIR}/event/events/hover-event-processor.cpp\r
64   ${INTERNAL_DIR}/event/events/long-press-gesture-detector-impl.cpp\r
65   ${INTERNAL_DIR}/event/events/long-press-gesture-processor.cpp\r
66   ${INTERNAL_DIR}/event/events/wheel-event-processor.cpp\r
67   ${INTERNAL_DIR}/event/events/multi-point-event-util.cpp\r
68   ${INTERNAL_DIR}/event/events/pan-gesture-detector-impl.cpp\r
69   ${INTERNAL_DIR}/event/events/pan-gesture-processor.cpp\r
70   ${INTERNAL_DIR}/event/events/pinch-gesture-detector-impl.cpp\r
71   ${INTERNAL_DIR}/event/events/pinch-gesture-processor.cpp\r
72   ${INTERNAL_DIR}/event/events/tap-gesture-detector-impl.cpp\r
73   ${INTERNAL_DIR}/event/events/tap-gesture-processor.cpp\r
74   ${INTERNAL_DIR}/event/events/touch-data-impl.cpp\r
75   ${INTERNAL_DIR}/event/events/touch-event-processor.cpp\r
76   ${INTERNAL_DIR}/event/images/bitmap-packed-pixel.cpp\r
77   ${INTERNAL_DIR}/event/images/bitmap-compressed.cpp\r
78   ${INTERNAL_DIR}/event/images/image-impl.cpp\r
79   ${INTERNAL_DIR}/event/images/buffer-image-impl.cpp\r
80   ${INTERNAL_DIR}/event/images/frame-buffer-image-impl.cpp\r
81   ${INTERNAL_DIR}/event/images/encoded-buffer-image-impl.cpp\r
82   ${INTERNAL_DIR}/event/images/nine-patch-image-impl.cpp\r
83   ${INTERNAL_DIR}/event/images/resource-image-impl.cpp\r
84   ${INTERNAL_DIR}/event/images/native-image-impl.cpp\r
85   ${INTERNAL_DIR}/event/images/pixel-data-impl.cpp\r
86   ${INTERNAL_DIR}/event/object/custom-object-internal.cpp\r
87   ${INTERNAL_DIR}/event/render-tasks/render-task-impl.cpp\r
88   ${INTERNAL_DIR}/event/render-tasks/render-task-list-impl.cpp\r
89   ${INTERNAL_DIR}/event/rendering/frame-buffer-impl.cpp\r
90   ${INTERNAL_DIR}/event/rendering/geometry-impl.cpp\r
91   ${INTERNAL_DIR}/event/rendering/texture-impl.cpp\r
92   ${INTERNAL_DIR}/event/rendering/texture-set-impl.cpp\r
93   ${INTERNAL_DIR}/event/rendering/renderer-impl.cpp\r
94   ${INTERNAL_DIR}/event/rendering/sampler-impl.cpp\r
95   ${INTERNAL_DIR}/event/rendering/shader-impl.cpp\r
96   ${INTERNAL_DIR}/event/size-negotiation/memory-pool-relayout-container.cpp\r
97   ${INTERNAL_DIR}/event/size-negotiation/relayout-controller-impl.cpp\r
98 \r
99   ${INTERNAL_DIR}/render/common/render-algorithms.cpp\r
100   ${INTERNAL_DIR}/render/common/render-debug.cpp\r
101   ${INTERNAL_DIR}/render/common/render-instruction.cpp\r
102   ${INTERNAL_DIR}/render/common/render-instruction-container.cpp\r
103   ${INTERNAL_DIR}/render/common/render-item.cpp\r
104   ${INTERNAL_DIR}/render/common/render-tracker.cpp\r
105   ${INTERNAL_DIR}/render/common/render-manager.cpp\r
106   ${INTERNAL_DIR}/render/data-providers/render-data-provider.cpp\r
107   ${INTERNAL_DIR}/render/gl-resources/context.cpp\r
108   ${INTERNAL_DIR}/render/gl-resources/frame-buffer-state-cache.cpp\r
109   ${INTERNAL_DIR}/render/gl-resources/gl-call-debug.cpp\r
110   ${INTERNAL_DIR}/render/gl-resources/gpu-buffer.cpp\r
111   ${INTERNAL_DIR}/render/queue/render-queue.cpp\r
112   ${INTERNAL_DIR}/render/renderers/render-frame-buffer.cpp\r
113   ${INTERNAL_DIR}/render/renderers/render-geometry.cpp\r
114   ${INTERNAL_DIR}/render/renderers/render-property-buffer.cpp\r
115   ${INTERNAL_DIR}/render/renderers/render-renderer.cpp\r
116   ${INTERNAL_DIR}/render/renderers/render-texture.cpp\r
117   ${INTERNAL_DIR}/render/shaders/program.cpp\r
118   ${INTERNAL_DIR}/render/shaders/program-controller.cpp\r
119   ${INTERNAL_DIR}/render/shaders/scene-graph-shader.cpp\r
120 \r
121   ${INTERNAL_DIR}/update/animation/scene-graph-animation.cpp\r
122   ${INTERNAL_DIR}/update/animation/scene-graph-constraint-base.cpp\r
123   ${INTERNAL_DIR}/update/common/discard-queue.cpp\r
124   ${INTERNAL_DIR}/update/common/property-base.cpp\r
125   ${INTERNAL_DIR}/update/common/property-owner-messages.cpp\r
126   ${INTERNAL_DIR}/update/common/property-condition-functions.cpp\r
127   ${INTERNAL_DIR}/update/common/property-condition-step-functions.cpp\r
128   ${INTERNAL_DIR}/update/common/property-condition-variable-step-functions.cpp\r
129   ${INTERNAL_DIR}/update/common/property-owner.cpp\r
130   ${INTERNAL_DIR}/update/common/scene-graph-buffers.cpp\r
131   ${INTERNAL_DIR}/update/common/scene-graph-connection-change-propagator.cpp\r
132   ${INTERNAL_DIR}/update/common/scene-graph-property-notification.cpp\r
133   ${INTERNAL_DIR}/update/common/uniform-map.cpp\r
134   ${INTERNAL_DIR}/update/controllers/render-message-dispatcher.cpp\r
135   ${INTERNAL_DIR}/update/controllers/scene-controller-impl.cpp\r
136   ${INTERNAL_DIR}/update/gestures/pan-gesture-profiling.cpp\r
137   ${INTERNAL_DIR}/update/gestures/scene-graph-pan-gesture.cpp\r
138   ${INTERNAL_DIR}/update/queue/update-message-queue.cpp\r
139   ${INTERNAL_DIR}/update/manager/render-instruction-processor.cpp\r
140   ${INTERNAL_DIR}/update/manager/render-task-processor.cpp\r
141   ${INTERNAL_DIR}/update/manager/transform-manager.cpp\r
142   ${INTERNAL_DIR}/update/manager/update-algorithms.cpp\r
143   ${INTERNAL_DIR}/update/manager/update-manager.cpp\r
144   ${INTERNAL_DIR}/update/manager/update-manager-debug.cpp\r
145   ${INTERNAL_DIR}/update/render-tasks/scene-graph-camera.cpp\r
146   ${INTERNAL_DIR}/update/nodes/node.cpp\r
147   ${INTERNAL_DIR}/update/nodes/node-messages.cpp\r
148   ${INTERNAL_DIR}/update/nodes/scene-graph-layer.cpp\r
149   ${INTERNAL_DIR}/update/render-tasks/scene-graph-render-task.cpp\r
150   ${INTERNAL_DIR}/update/render-tasks/scene-graph-render-task-list.cpp\r
151   ${INTERNAL_DIR}/update/rendering/scene-graph-texture-set.cpp\r
152   ${INTERNAL_DIR}/update/rendering/scene-graph-renderer.cpp\r
153   )\r
154 \r
155 link_directories(\r
156 ../windows-dependencies/ExLib\r
157 )\r
158 \r
159 ADD_DEFINITIONS(\r
160 /vmg\r
161 /NODEFAULTLIB:"libcmt.lib"\r
162 /FI"../windows-dependencies/ExInclude/PreprocessorDefinitions.h"\r
163 /DBUILDING_DALI_CORE\r
164 /MP\r
165 /Gz\r
166 )\r
167 #head file path  \r
168 INCLUDE_DIRECTORIES(  \r
169 ./\r
170 ../windows-dependencies/ExInclude\r
171 )\r
172 \r
173 set(LIBRARY_OUTPUT_PATH ../../../bin)\r
174 \r
175 ADD_LIBRARY(dali-core SHARED ${SOURCES})\r
176 \r
177 target_link_libraries(dali-core WindowsPlatform.lib)\r
178 \r
179 #add link library  \r
180 #TARGET_LINK_LIBRARIES(${FS_BUILD_BINARY_PREFIX}sqrt ${LIBRARIES})