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

View file

@ -1,25 +1,8 @@
#!/bin/bash #!/bin/bash
# directory names should be uppercase for launch config to work
stratagus_folder="$1" stratagus_folder="$1"
if [ ! -d "${stratagus_folder}/../Wargus" ]; then if [ ! -d "${stratagus_folder}/../wargus" ]; then
if [ -d "${stratagus_folder}/../wargus" ]; then git clone https://github.com/Wargus/wargus "${stratagus_folder}/../wargus"
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
fi fi
if [ ! -d "$stratagus_folder/../War1gus" ]; then if [ ! -d "$stratagus_folder/../war1gus" ]; then
if [ -d "${stratagus_folder}/../war1gus" ]; then git clone https://github.com/Wargus/wargus "${stratagus_folder}/../war1gus"
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
fi fi

View file

@ -1,11 +1,11 @@
{ {
"cmake.configureEnvironment": {
"WIN32_CMAKE_PREFIX_PATH": "${workspaceFolder}\\..\\dependencies",
},
"cmake.preferredGenerators": ["Visual Studio 16 2019", "Unix Makefiles"], "cmake.preferredGenerators": ["Visual Studio 16 2019", "Unix Makefiles"],
"cmake.toolset": "v141_xp", "cmake.toolset": "v141_xp",
"cmake.platform": "win32", "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", "cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json",
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
} }