let settings.json be local, just seed with an initial version
This commit is contained in:
parent
d71498b5aa
commit
d9c6339d74
5 changed files with 35 additions and 14 deletions
0
.vscode/extensions.json
vendored
0
.vscode/extensions.json
vendored
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
|
@ -10,7 +10,7 @@
|
|||
},
|
||||
"windows": {
|
||||
"type": "cppvsdbg",
|
||||
"program": "${workspaceFolder}/build/Debug/stratagus-dbg.exe",
|
||||
"program": "${workspaceFolder}/build/Debug/stratagus.exe",
|
||||
"args": ["-W", "-a", "-d", "${workspaceFolder}\\..\\data.${input:game}"],
|
||||
"environment": [{"name": "PATH", "value": "${workspaceFolder}\\..\\dependencies\\bin;${env:PATH}"}],
|
||||
"externalConsole": true,
|
||||
|
|
18
.vscode/scripts/download.ps1
vendored
18
.vscode/scripts/download.ps1
vendored
|
@ -9,9 +9,27 @@ if (-not (Test-Path "$stratagus_folder\\..\\dependencies")) {
|
|||
if (-not (Test-Path "$stratagus_folder\\..\\dependencies\\bin\\ffmpeg.exe")) {
|
||||
Invoke-WebRequest https://github.com/Wargus/stratagus/releases/download/2015-30-11/ffmpeg.exe -OutFile "$stratagus_folder\\..\\dependencies\\bin\\ffmpeg.exe"
|
||||
}
|
||||
|
||||
if (-not (Test-Path "$stratagus_folder\\.vscode\\settings.json")) {
|
||||
Copy-Item "$stratagus_folder\\.vscode\\settings.windows.json" "$stratagus_folder\\.vscode\\settings.json"
|
||||
}
|
||||
|
||||
if (-not (Test-Path "$stratagus_folder\\..\\wargus")) {
|
||||
git clone https://github.com/Wargus/wargus "$stratagus_folder\\..\\wargus"
|
||||
}
|
||||
if (-not (Test-Path "$stratagus_folder\\..\\wargus\\.vscode\\settings.json")) {
|
||||
Copy-Item "$stratagus_folder\\.vscode\\settings.windows.wargus.json" "$stratagus_folder\\..\\wargus\\.vscode\\settings.json"
|
||||
}
|
||||
if (-not (Test-Path "$stratagus_folder\\..\\wargus\\.vscode\\launch.json")) {
|
||||
Copy-Item "$stratagus_folder\\.vscode\\launch.wargus.json" "$stratagus_folder\\..\\wargus\\.vscode\\launch.json"
|
||||
}
|
||||
|
||||
if (-not (Test-Path "$stratagus_folder\\..\\war1gus")) {
|
||||
git clone https://github.com/Wargus/war1gus "$stratagus_folder\\..\\war1gus"
|
||||
}
|
||||
if (-not (Test-Path "$stratagus_folder\\..\\war1gus\\.vscode\\settings.json")) {
|
||||
Copy-Item "$stratagus_folder\\.vscode\\settings.windows.war1gus.json" "$stratagus_folder\\..\\war1gus\\.vscode\\settings.json"
|
||||
}
|
||||
if (-not (Test-Path "$stratagus_folder\\..\\war1gus\\.vscode\\launch.json")) {
|
||||
Copy-Item "$stratagus_folder\\.vscode\\launch.war1gus.json" "$stratagus_folder\\..\\war1gus\\.vscode\\launch.json"
|
||||
}
|
||||
|
|
18
.vscode/scripts/download.sh
vendored
18
.vscode/scripts/download.sh
vendored
|
@ -1,8 +1,22 @@
|
|||
#!/bin/bash
|
||||
stratagus_folder="$1"
|
||||
|
||||
if [ ! -d "${stratagus_folder}/../wargus" ]; then
|
||||
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../wargus"
|
||||
fi
|
||||
if [ ! -d "$stratagus_folder/../war1gus" ]; then
|
||||
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../war1gus"
|
||||
if [ ! -e "${stratagus_folder}/../wargus/.vscode/settings.json" ]; then
|
||||
cp "${stratagus_folder}/.vscode/settings.linux.wargus.json" "${stratagus_folder}/../wargus/.vscode/settings.json"
|
||||
fi
|
||||
if [ ! -e "${stratagus_folder}/../wargus/.vscode/launch.json" ]; then
|
||||
cp "${stratagus_folder}/.vscode/launch.wargus.json" "${stratagus_folder}/../wargus/.vscode/launch.json"
|
||||
fi
|
||||
|
||||
if [ ! -d "${stratagus_folder}/../war1gus" ]; then
|
||||
git clone https://github.com/Wargus/war1gus "${stratagus_folder}/../war1gus"
|
||||
fi
|
||||
if [ ! -e "${stratagus_folder}/../war1gus/.vscode/settings.json" ]; then
|
||||
cp "${stratagus_folder}/.vscode/settings.linux.war1gus.json" "${stratagus_folder}/../war1gus/.vscode/settings.json"
|
||||
fi
|
||||
if [ ! -e "${stratagus_folder}/../war1gus/.vscode/launch.json" ]; then
|
||||
cp "${stratagus_folder}/.vscode/launch.war1gus.json" "${stratagus_folder}/../war1gus/.vscode/launch.json"
|
||||
fi
|
||||
|
|
11
.vscode/settings.json
vendored
11
.vscode/settings.json
vendored
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"cmake.preferredGenerators": ["Visual Studio 16 2019", "Unix Makefiles"],
|
||||
"cmake.toolset": "v141_xp",
|
||||
"cmake.platform": "win32",
|
||||
"cmake.configureSettings": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"WIN32_CMAKE_PREFIX_PATH": "${workspaceFolder}\\..\\dependencies",
|
||||
},
|
||||
"cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json",
|
||||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
|
||||
}
|
Loading…
Reference in a new issue