forked from open-eid/libdigidocpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
152 lines (152 loc) · 3.83 KB
/
CMakePresets.json
File metadata and controls
152 lines (152 loc) · 3.83 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
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
{
"version": 6,
"configurePresets": [
{
"name": "default",
"displayName": "Default config",
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "macos",
"description": "This macos build is only available on macOS",
"inherits": "default",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"installDir": "$env{DEST}",
"environment": {
"DEST": "/Library/libdigidocpp$env{DEST_SUFFIX}"
},
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
"CMAKE_OSX_DEPLOYMENT_TARGET": "13.0",
"CMAKE_FIND_ROOT_PATH": "$env{DEST}"
}
},
{
"name": "mobile",
"hidden": true,
"inherits": "default",
"installDir": "$env{DEST}",
"environment": {
"DEST": "libdigidocpp$env{DEST_SUFFIX}",
"DEST_SUFFIX": ".${presetName}"
},
"cacheVariables": {
"CMAKE_DISABLE_FIND_PACKAGE_Boost": "YES",
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen": "YES",
"BUILD_TOOLS": "NO"
}
},
{
"name": "ios",
"hidden": true,
"inherits": ["macos", "mobile"],
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "iOS",
"CMAKE_OSX_SYSROOT": "${presetName}",
"CMAKE_OSX_DEPLOYMENT_TARGET": "15.0",
"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",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "androidarm",
"inherits": "android",
"description": "androidarm build",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "armeabi-v7a",
"VCPKG_TARGET_TRIPLET": "arm-neon-android"
}
},
{
"name": "androidarm64",
"inherits": "android",
"description": "androidarm64 build",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"VCPKG_TARGET_TRIPLET": "arm64-android"
}
},
{
"name": "androidx86_64",
"inherits": "android",
"description": "androidx86_64 build",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "x86_64",
"VCPKG_TARGET_TRIPLET": "x64-android"
}
}
],
"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"
}
]
}