let settings.json be local, just seed with an initial version

This commit is contained in:
Tim Felgentreff 2020-12-04 12:06:19 +01:00
parent d71498b5aa
commit d9c6339d74
5 changed files with 35 additions and 14 deletions

View file

2
.vscode/launch.json vendored
View file

@ -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,

View file

@ -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"
}

View file

@ -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
View file

@ -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",
}