Added batch script for generating build files
Also changed VSC launch names to be less confusing
This commit is contained in:
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
|
|
||||||
"configurations":
|
"configurations":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Debug lxc [Linux]",
|
"name": "[Linux] LXC",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceRoot}/lxc",
|
"program": "${workspaceRoot}/lxc",
|
||||||
@@ -27,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Debug lxc [Win64]",
|
"name": "[Win64] LXC",
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceRoot}/lxc",
|
"program": "${workspaceRoot}/lxc",
|
||||||
@@ -35,13 +36,13 @@
|
|||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
"externalConsole": true,
|
"console": "externalTerminal",
|
||||||
|
|
||||||
"preLaunchTask": "build"
|
"preLaunchTask": "build"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Debug LXC_Tests [Linux]",
|
"name": "[Linux] Tests",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceRoot}/LXC_Tests",
|
"program": "${workspaceRoot}/LXC_Tests",
|
||||||
@@ -65,7 +66,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Debug LXC_Tests [Win64]",
|
"name": "[Win64] Tests",
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceRoot}/LXC_Tests",
|
"program": "${workspaceRoot}/LXC_Tests",
|
||||||
|
|||||||
18
scripts/GenBuildFiles.bat
Normal file
18
scripts/GenBuildFiles.bat
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
:: Makes sure the working directory is repo-root and not scripts/ ::
|
||||||
|
|
||||||
|
for %%I in ("%~dp0.") do set "SCRIPT_DIRNAME=%%~nxI"
|
||||||
|
|
||||||
|
if /i "%SCRIPT_DIRNAME%"=="scripts" (
|
||||||
|
cd /d "%~dp0.."
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Creates and enters the build directory ::
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
:: Generates the build files (uses Ninja) ::
|
||||||
|
|
||||||
|
cmake .. -G Ninja
|
||||||
Reference in New Issue
Block a user