-
Notifications
You must be signed in to change notification settings - Fork 47
/
CMakePresets.json
153 lines (153 loc) · 3.79 KB
/
CMakePresets.json
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"version": 6,
"configurePresets": [
{
"name": "default",
"displayName": "Default config",
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}"
},
{
"name": "base",
"displayName": "macOS base build config",
"hidden": true,
"inherits": "default",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"environment": {
"DEST": "/Library/libdigidocpp$env{DEST_SUFFIX}"
},
"installDir": "$env{DEST}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_FIND_ROOT_PATH": "$env{DEST};/usr/local;/opt/homebrew"
}
},
{
"name": "macos",
"inherits": "base",
"description": "This macos build is only available on macOS",
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0"
}
},
{
"name": "mobile",
"hidden": true,
"inherits": "base",
"environment": {
"DEST_SUFFIX": ".${presetName}"
},
"cacheVariables": {
"CMAKE_DISABLE_FIND_PACKAGE_Boost": "YES",
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen": "YES",
"BUILD_TOOLS": "NO"
}
},
{
"name": "ios",
"hidden": true,
"inherits": "mobile",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "iOS",
"CMAKE_OSX_SYSROOT": "${presetName}",
"CMAKE_OSX_DEPLOYMENT_TARGET": "15.0",
"CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
"CMAKE_DISABLE_FIND_PACKAGE_SWIG": "YES",
"FRAMEWORK_DESTINATION": "$env{DEST}/lib"
}
},
{
"name": "iphoneos",
"inherits": "ios",
"description": "This iphoneos build is only available on macOS",
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "arm64"
}
},
{
"name": "iphonesimulator",
"inherits": "ios",
"description": "This iphonesimulator build is only available on macOS"
},
{
"name": "iphonecatalyst",
"inherits": "ios",
"description": "This iphonecatalyst build is only available on macOS",
"cacheVariables": {
"CMAKE_OSX_SYSROOT": "macosx"
}
},
{
"name": "android",
"hidden": true,
"inherits": "mobile",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Android",
"CMAKE_SYSTEM_VERSION": "30",
"CMAKE_DISABLE_FIND_PACKAGE_Python3": "YES",
"BUILD_SHARED_LIBS": "NO"
}
},
{
"name": "androidarm",
"inherits": "android",
"description": "androidarm build is only available on macOS",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "armeabi-v7a"
}
},
{
"name": "androidarm64",
"inherits": "android",
"description": "androidarm64 build is only available on macOS",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a"
}
},
{
"name": "androidx86_64",
"inherits": "android",
"description": "androidx86_64 build is only available on macOS",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "x86_64"
}
}
],
"buildPresets":
[
{
"name": "macos",
"configurePreset": "macos"
},
{
"name": "iphoneos",
"configurePreset": "iphoneos"
},
{
"name": "iphonesimulator",
"configurePreset": "iphonesimulator"
},
{
"name": "iphonecatalyst",
"configurePreset": "iphonecatalyst"
},
{
"name": "androidarm",
"configurePreset": "androidarm"
},
{
"name": "androidarm64",
"configurePreset": "androidarm64"
},
{
"name": "androidx86_64",
"configurePreset": "androidx86_64"
}
]
}