Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
110 lines (110 loc) · 4.26 KB
/
Copy pathCMakePresets.json
File metadata and controls
110 lines (110 loc) · 4.26 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
{
"version": 8,
"configurePresets": [
{
"name": "_cc-debug-base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja",
"environment": {
"QT_VERSION": "6.10.3"
},
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
"CMAKE_BUILD_TYPE": "Debug",
"CLANG_FORMAT": "ON"
}
},
{
"name": "cc-debug-linux",
"displayName": "default system compiler (debug)",
"description": "Use C/C++ compilers in the $PATH with Ninja",
"inherits": "_cc-debug-base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"environment": {
"PKG_CONFIG_PATH": "$env{HOME}/.local/lib/pkgconfig:$env{HOME}/.local/lib64/pkgconfig:$env{HOME}/opt/lib/pkgconfig:$env{HOME}/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:$penv{PKG_CONFIG_PATH}",
"PATH": "$env{HOME}/Qt/$env{QT_VERSION}/macos/bin:$env{HOME}/opt/bin:/usr/local/bin:/opt/local/bin:$penv{PATH}"
},
"cacheVariables": {
"BUILD_MINIMAL_MEDIA_BACKEND": "ON",
"CMAKE_PREFIX_PATH": "$env{HOME}/Qt/$env{QT_VERSION}/gcc_64;$env{HOME}/Qt/$env{QT_VERSION}/macos;$env{HOME}/.local;$env{HOME}/opt;/usr/local;/opt/local",
"CMAKE_C_FLAGS": "-I/usr/local/include",
"BUILD_DOCS": "ON"
}
},
{
"name": "cc-debug-macos",
"displayName": "default system compiler (debug)",
"description": "Use C/C++ compilers in the $PATH with Ninja",
"inherits": "_cc-debug-base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"environment": {
"QT_VERSION": "6.8.3"
},
"cacheVariables": {
"CMAKE_PREFIX_PATH": "$env{HOME}/Qt/$env{QT_VERSION}/macos;$env{HOME}/.local;$env{HOME}/opt;/usr/local;/opt/local"
}
},
{
"name": "msys2-debug",
"displayName": "msys2 (debug)",
"description": "Use MinGW compilers in MSYS2 with Ninja",
"inherits": "_cc-debug-base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"environment": {
"HOME": "C:/msys64/home/$penv{USERNAME}",
"PKG_CONFIG_PATH": "$env{HOME}/build/Shotcut/lib/pkgconfig;C:/msys64/mingw64/lib/pkgconfig;C:/msys64/clangarm64/lib/pkgconfig;$penv{PKG_CONFIG_PATH}",
"Path": "C:/msys64/usr/local/bin;C:/msys64/mingw64/bin;C:/msys64/clangarm64/bin;C:/msys64/usr/bin;$penv{Path}"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_PREFIX_PATH": "C:/msys64/mingw64;C:/msys64/clangarm64",
"CMAKE_INSTALL_PREFIX": "$env{HOME}/build/Shotcut"
}
}
],
"buildPresets": [
{
"name": "format-build",
"description": "Run clang-format and then build",
"displayName": "clang-format and build",
"configurePreset": "cc-debug-linux",
"targets": [
"clang-format",
"all"
]
},
{
"name": "format-build-macos",
"description": "Run clang-format and then build",
"displayName": "clang-format and build (macOS)",
"configurePreset": "cc-debug-macos",
"targets": [
"clang-format",
"all"
]
},
{
"name": "format-build-windows",
"description": "Run clang-format and then build",
"displayName": "clang-format and build (Windows)",
"configurePreset": "msys2-debug",
"targets": [
"clang-format",
"install"
]
}
]
}