forked from maplibre/maplibre-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
118 lines (118 loc) · 2.81 KB
/
CMakePresets.json
File metadata and controls
118 lines (118 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "ios",
"displayName": "iOS",
"generator": "Xcode",
"description": "Create Xcode project for iOS",
"binaryDir": "${sourceDir}/build-ios",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "iOS",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"MLN_WITH_METAL": "ON",
"MLN_WITH_OPENGL": "OFF"
}
},
{
"name": "macos",
"displayName": "macOS",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-macos",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Darwin",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"MLN_WITH_METAL": "ON",
"MLN_WITH_OPENGL": "OFF"
}
},
{
"name": "macos-vulkan",
"displayName": "macOS",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-macos-vulkan",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Darwin",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"MLN_WITH_VULKAN": "ON",
"MLN_WITH_OPENGL": "OFF"
}
},
{
"name": "macos-node",
"inherits": "macos",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"MLN_WITH_NODE": "ON",
"MLN_WITH_WERROR": "OFF"
}
},
{
"name": "macos-core",
"inherits": "macos",
"cacheVariables": {
"MLN_CORE_INCLUDE_DEPS": "ON",
"MLN_WITH_GLFW": "OFF"
}
},
{
"name": "linux-opengl",
"binaryDir": "${sourceDir}/build-linux-opengl",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Linux",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"MLN_WITH_METAL": "OFF",
"MLN_WITH_OPENGL": "ON",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "linux-opengl-core",
"inherits": "linux-opengl",
"cacheVariables": {
"MLN_CORE_INCLUDE_DEPS": "ON"
}
},
{
"name": "linux-vulkan",
"binaryDir": "${sourceDir}/build-linux-vulkan",
"generator": "Ninja",
"inherits": "linux-opengl",
"cacheVariables": {
"MLN_WITH_OPENGL": "OFF",
"MLN_WITH_VULKAN": "ON"
}
},
{
"name": "linux-vulkan-core",
"inherits": "linux-vulkan",
"cacheVariables": {
"MLN_CORE_INCLUDE_DEPS": "ON"
}
}
],
"buildPresets": [
{
"name": "macos-core",
"configurePreset": "macos-core",
"targets": ["mbgl-core"]
},
{
"name": "linux-opengl-core",
"configurePreset": "linux-opengl",
"targets": ["mbgl-core"]
},
{
"name": "linux-vulkan-core",
"configurePreset": "linux-vulkan",
"targets": ["mbgl-core"]
}
]
}