Setup build enviorment
This commit is contained in:
@@ -1,13 +1,58 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"name": "JabyEngine",
|
||||
"path": ".",
|
||||
},
|
||||
{
|
||||
"name": "Include",
|
||||
"path": "..\\..\\include"
|
||||
},
|
||||
{
|
||||
"name": "JabyEngine",
|
||||
"path": "."
|
||||
"name": "Root",
|
||||
"path": "..\\.."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
"tasks": {
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "make",
|
||||
"type": "shell",
|
||||
"command": "./run_make.bat ${input:target} ${input:build cfg}",
|
||||
"group": {
|
||||
"kind": "build"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "all",
|
||||
"type": "shell",
|
||||
"command": "./build_all.bat ${input:target}",
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"options": {
|
||||
"cwd": "../.."
|
||||
}
|
||||
},
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "build cfg",
|
||||
"type": "pickString",
|
||||
"options": ["debug", "release"],
|
||||
"default": "release",
|
||||
"description": "build configuration"
|
||||
},
|
||||
{
|
||||
"id": "target",
|
||||
"type": "pickString",
|
||||
"options": ["build", "clean", "rebuild"],
|
||||
"default": "build",
|
||||
"description": "build target",
|
||||
}
|
||||
]
|
||||
},
|
||||
"settings": {},
|
||||
|
||||
}
|
10
src/Library/Makefile
Normal file
10
src/Library/Makefile
Normal file
@@ -0,0 +1,10 @@
|
||||
ARTIFACT = libJabyEngine
|
||||
BUILD_DIR = ../../lib
|
||||
|
||||
include ../../Makefile
|
||||
|
||||
#Rules section for default compilation and linking
|
||||
all: $(TARGET).a
|
||||
|
||||
clean:
|
||||
rm -fr $(OUTPUT_DIR)
|
11
src/Library/run_make.bat
Normal file
11
src/Library/run_make.bat
Normal file
@@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
rem run_make.bat build|clean|rebuild debug|release
|
||||
|
||||
IF %1 == build (
|
||||
set make_target=all
|
||||
) else (
|
||||
set make_target=%1
|
||||
)
|
||||
|
||||
@echo make %make_target% BUILD_PROFILE=%2
|
||||
wsl make %make_target% BUILD_PROFILE=%2
|
3
src/Library/src/test.cpp
Normal file
3
src/Library/src/test.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
int wuff() {
|
||||
return 0;
|
||||
}
|
@@ -18,6 +18,6 @@ IF NOT "%~1" == "" (
|
||||
)
|
||||
|
||||
for %%a in (%projects%) do (
|
||||
call run_cargo %%a %build_type% release
|
||||
call .\run_cargo %%a %build_type% release
|
||||
cd %cur_dir%
|
||||
)
|
||||
|
@@ -24,6 +24,7 @@ IF %2 == check (
|
||||
IF %2 == clean (
|
||||
echo cargo clean %1
|
||||
cargo clean
|
||||
@del %org_dir%\..\..\bin\%1.exe
|
||||
|
||||
exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
Reference in New Issue
Block a user