keep data extracted for development local

This commit is contained in:
Tim Felgentreff 2020-12-03 11:57:28 +01:00
parent 6059b1be67
commit 4a790f98e8
3 changed files with 14 additions and 32 deletions

13
.vscode/launch.json vendored
View file

@ -6,13 +6,12 @@
"type": "cppdbg",
"linux": {
"program": "${workspaceFolder}/build/stratagus-dbg",
"args": ["-W", "-a", "-d", "${env:HOME}/.stratagus/data.${input:game}"],
"preLaunchTask": "Download games and dependencies",
"args": ["-W", "-a", "-d", "${workspaceFolder}/../data.${input:game}"],
},
"windows": {
"type": "cppvsdbg",
"program": "${workspaceFolder}/build/Debug/stratagus.exe",
"args": ["-W", "-a", "-d", "${env:APPDATA}/Stratagus/data.${input:game}"],
"args": ["-W", "-a", "-d", "${workspaceFolder}\\..\\data.${input:game}"],
"environment": [{"name": "PATH", "value": "${workspaceFolder}\\..\\dependencies\\bin;${env:PATH}"}],
"externalConsole": true,
},
@ -26,11 +25,11 @@
"id": "game",
"description": "Which game to launch?",
"options": [
"Wargus",
"War1gus",
"Stargus",
"wargus",
"war1gus",
"stargus",
],
"default": "Wargus"
"default": "wargus"
},
]
}

View file

@ -1,25 +1,8 @@
#!/bin/bash
# directory names should be uppercase for launch config to work
stratagus_folder="$1"
if [ ! -d "${stratagus_folder}/../Wargus" ]; then
if [ -d "${stratagus_folder}/../wargus" ]; then
pushd "${stratagus_folder}/../wargus"
target="$(pwd)"
popd
ln -s "${target}" "${stratagus_folder}/../Wargus"
else
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../Wargus"
fi
if [ ! -d "${stratagus_folder}/../wargus" ]; then
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../wargus"
fi
if [ ! -d "$stratagus_folder/../War1gus" ]; then
if [ -d "${stratagus_folder}/../war1gus" ]; then
pushd "${stratagus_folder}/../war1gus"
target="$(pwd)"
popd
ln -s "${target}" "${stratagus_folder}/../War1gus"
else
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../War1gus"
fi
if [ ! -d "$stratagus_folder/../war1gus" ]; then
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../war1gus"
fi

View file

@ -1,11 +1,11 @@
{
"cmake.configureEnvironment": {
"WIN32_CMAKE_PREFIX_PATH": "${workspaceFolder}\\..\\dependencies",
},
"cmake.preferredGenerators": ["Visual Studio 16 2019", "Unix Makefiles"],
"cmake.toolset": "v141_xp",
"cmake.platform": "win32",
"cmake.configureSettings": {"CMAKE_BUILD_TYPE": "Debug"},
"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",
}