@@ -4,96 +4,194 @@ project(tangram-core)
4
4
add_subdirectory (deps)
5
5
6
6
add_library (tangram-core
7
+ include /tangram/log .h
8
+ include /tangram/map.h
9
+ include /tangram/platform.h
10
+ include /tangram/tangram.h
11
+ include /tangram/data/clientGeoJsonSource.h
12
+ include /tangram/data/properties.h
13
+ include /tangram/data/propertyItem.h
14
+ include /tangram/data/tileSource.h
15
+ include /tangram/tile/tileID.h
16
+ include /tangram/tile/tileTask.h
17
+ include /tangram/util/types.h
18
+ include /tangram/util/url.h
19
+ include /tangram/util/variant.h
7
20
src/map.cpp
8
21
src/platform.cpp
9
22
src/data/clientGeoJsonSource.cpp
23
+ src/data/memoryCacheDataSource.h
10
24
src/data/memoryCacheDataSource.cpp
25
+ src/data/networkDataSource.h
11
26
src/data/networkDataSource.cpp
12
27
src/data/properties.cpp
28
+ src/data/rasterSource.h
13
29
src/data/rasterSource.cpp
14
30
src/data/tileSource.cpp
31
+ src/data/formats/geoJson.h
15
32
src/data/formats/geoJson.cpp
33
+ src/data/formats/mvt.h
16
34
src/data/formats/mvt.cpp
35
+ src/data/formats/topoJson.h
17
36
src/data/formats/topoJson.cpp
37
+ src/debug/frameInfo.h
18
38
src/debug/frameInfo.cpp
39
+ src/debug/textDisplay.h
19
40
src/debug/textDisplay.cpp
41
+ src/gl/framebuffer.h
20
42
src/gl/framebuffer.cpp
43
+ src/gl/glError.h
21
44
src/gl/glError.cpp
45
+ src/gl/glyphTexture.h
22
46
src/gl/glyphTexture.cpp
47
+ src/gl/hardware.h
23
48
src/gl/hardware.cpp
49
+ src/gl/mesh.h
24
50
src/gl/mesh.cpp
51
+ src/gl/primitives.h
25
52
src/gl/primitives.cpp
53
+ src/gl/renderState.h
26
54
src/gl/renderState.cpp
55
+ src/gl/shaderProgram.h
27
56
src/gl/shaderProgram.cpp
57
+ src/gl/shaderSource.h
28
58
src/gl/shaderSource.cpp
59
+ src/gl/texture.h
29
60
src/gl/texture.cpp
61
+ src/gl/vao.h
30
62
src/gl/vao.cpp
63
+ src/gl/vertexLayout.h
31
64
src/gl/vertexLayout.cpp
65
+ src/js/JavaScript.h
66
+ src/js/JavaScriptFwd.h
67
+ src/labels /curvedLabel.h
32
68
src/labels /curvedLabel.cpp
69
+ src/labels /label.h
33
70
src/labels /label.cpp
71
+ src/labels /labelCollider.h
34
72
src/labels /labelCollider.cpp
73
+ src/labels /labelProperty.h
35
74
src/labels /labelProperty.cpp
75
+ src/labels /labelSet.h
36
76
src/labels /labelSet.cpp
77
+ src/labels /labels .h
37
78
src/labels /labels .cpp
79
+ src/labels /spriteLabel.h
38
80
src/labels /spriteLabel.cpp
81
+ src/labels /textLabel.h
39
82
src/labels /textLabel.cpp
83
+ src/marker/marker.h
40
84
src/marker/marker.cpp
85
+ src/marker/markerManager.h
41
86
src/marker/markerManager.cpp
87
+ src/scene/ambientLight.h
42
88
src/scene/ambientLight.cpp
89
+ src/scene/dataLayer.h
43
90
src/scene/dataLayer.cpp
91
+ src/scene/directionalLight.h
44
92
src/scene/directionalLight.cpp
93
+ src/scene/drawRule.h
45
94
src/scene/drawRule.cpp
95
+ src/scene/filters.h
46
96
src/scene/filters.cpp
97
+ src/scene/importer.h
47
98
src/scene/importer.cpp
99
+ src/scene/light.h
48
100
src/scene/light.cpp
101
+ src/scene/pointLight.h
49
102
src/scene/pointLight.cpp
103
+ src/scene/scene.h
50
104
src/scene/scene.cpp
105
+ src/scene/sceneLayer.h
51
106
src/scene/sceneLayer.cpp
107
+ src/scene/sceneLoader.h
52
108
src/scene/sceneLoader.cpp
109
+ src/scene/spotLight.h
53
110
src/scene/spotLight.cpp
111
+ src/scene/spriteAtlas.h
54
112
src/scene/spriteAtlas.cpp
113
+ src/scene/stops.h
55
114
src/scene/stops.cpp
115
+ src/scene/styleContext.h
56
116
src/scene/styleContext.cpp
117
+ src/scene/styleMixer.h
57
118
src/scene/styleMixer.cpp
119
+ src/scene/styleParam.h
58
120
src/scene/styleParam.cpp
121
+ src/selection/featureSelection.h
59
122
src/selection/featureSelection.cpp
123
+ src/selection/selectionQuery.h
60
124
src/selection/selectionQuery.cpp
125
+ src/style/debugStyle.h
61
126
src/style/debugStyle.cpp
127
+ src/style/debugTextStyle.h
62
128
src/style/debugTextStyle.cpp
129
+ src/style/material.h
63
130
src/style/material.cpp
131
+ src/style/pointStyle.h
64
132
src/style/pointStyle.cpp
133
+ src/style/pointStyleBuilder.h
65
134
src/style/pointStyleBuilder.cpp
135
+ src/style/polygonStyle.h
66
136
src/style/polygonStyle.cpp
137
+ src/style/polylineStyle.h
67
138
src/style/polylineStyle.cpp
139
+ src/style/rasterStyle.h
68
140
src/style/rasterStyle.cpp
141
+ src/style/style.h
69
142
src/style/style.cpp
143
+ src/style/textStyle.h
70
144
src/style/textStyle.cpp
145
+ src/style/textStyleBuilder.h
71
146
src/style/textStyleBuilder.cpp
147
+ src/text/fontContext.h
72
148
src/text/fontContext.cpp
149
+ src/text/textUtil.h
73
150
src/text/textUtil.cpp
151
+ src/tile/tile.h
74
152
src/tile/tile.cpp
153
+ src/tile/tileBuilder.h
75
154
src/tile/tileBuilder.cpp
155
+ src/tile/tileManager.h
76
156
src/tile/tileManager.cpp
77
157
src/tile/tileTask.cpp
158
+ src/tile/tileWorker.h
78
159
src/tile/tileWorker.cpp
160
+ src/util/builders.h
79
161
src/util/builders.cpp
162
+ src/util/dashArray.h
80
163
src/util/dashArray.cpp
164
+ src/util/extrude.h
81
165
src/util/extrude.cpp
166
+ src/util/floatFormatter.h
82
167
src/util/floatFormatter.cpp
168
+ src/util/geom.h
83
169
src/util/geom.cpp
170
+ src/util/inputHandler.h
84
171
src/util/inputHandler.cpp
172
+ src/util/jobQueue.h
85
173
src/util/jobQueue.cpp
174
+ src/util/json.h
86
175
src/util/json.cpp
176
+ src/util/mapProjection.h
87
177
src/util/mapProjection.cpp
178
+ src/util/rasterize.h
88
179
src/util/rasterize.cpp
89
180
src/util/stbImage.cpp
90
181
src/util/url.cpp
182
+ src/util/yamlPath.h
91
183
src/util/yamlPath.cpp
184
+ src/util/yamlUtil.h
92
185
src/util/yamlUtil.cpp
186
+ src/util/zipArchive.h
93
187
src/util/zipArchive.cpp
188
+ src/util/zlibHelper.h
94
189
src/util/zlibHelper.cpp
190
+ src/view/flyTo.h
95
191
src/view/flyTo.cpp
192
+ src/view/view.h
96
193
src/view/view.cpp
194
+ src/view/viewConstraint.h
97
195
src/view/viewConstraint.cpp
98
196
)
99
197
@@ -138,15 +236,15 @@ target_link_libraries(tangram-core
138
236
139
237
# Add JavaScript implementation.
140
238
if (TANGRAM_JSCORE_ENABLED)
141
- target_sources (tangram-core PRIVATE src/js/JSCoreContext.cpp)
239
+ target_sources (tangram-core PRIVATE src/js/JSCoreContext.cpp src/js/JSCoreContext.h )
142
240
if (TANGRAM_USE_JSCORE_STATIC)
143
241
target_link_libraries (tangram-core PRIVATE jscore-static )
144
242
else ()
145
243
target_link_libraries (tangram-core PRIVATE "-framework JavaScriptCore" )
146
244
endif ()
147
245
target_compile_definitions (tangram-core PRIVATE TANGRAM_USE_JSCORE=1)
148
246
else ()
149
- target_sources (tangram-core PRIVATE src/js/DuktapeContext.cpp)
247
+ target_sources (tangram-core PRIVATE src/js/DuktapeContext.cpp src/js/DuktapeContext.h )
150
248
target_link_libraries (tangram-core PRIVATE duktape)
151
249
endif ()
152
250
@@ -184,9 +282,6 @@ target_compile_options(tangram-core
184
282
PUBLIC -std=c++14
185
283
)
186
284
187
- # make groups for xcode
188
- group_recursive_sources(src "src" )
189
-
190
285
# We include GLSL shader sources into the library by generating header files with the source text
191
286
# printed into a string constant. A CMake script generates one of these headers for each shader source
192
287
# file and they each become a custom target that the core library depends on.
@@ -231,3 +326,9 @@ foreach(_shader ${SHADER_FILES})
231
326
endforeach ()
232
327
add_custom_target (shader-headers DEPENDS ${SHADER_OUTPUT_FILES} )
233
328
add_dependencies (tangram-core shader-headers)
329
+
330
+ if (CMAKE_VERSION VERSION_GREATER "3.8" )
331
+ # Create source groups for Xcode - this source_group syntax requires version >=3.8
332
+ get_target_property (TANGRAM_CORE_SOURCES tangram-core SOURCES )
333
+ source_group (TREE ${PROJECT_SOURCE_DIR} FILES ${TANGRAM_CORE_SOURCES} )
334
+ endif ()
0 commit comments