Setup build enviorment

This commit is contained in:
Jaby
2022-08-21 16:25:37 +02:00
parent 90eac84874
commit 0c52689ebe
9 changed files with 185 additions and 4 deletions

View File

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

@@ -0,0 +1,3 @@
int wuff() {
return 0;
}