Create FontWriter Support Lib project

This commit is contained in:
Jaby 2023-11-23 21:27:04 -05:00 committed by Jaby
parent 0f8e814b34
commit 03f4fe2d66
6 changed files with 188 additions and 65 deletions

View File

@ -0,0 +1,3 @@
#pragma once
void test();

View File

@ -0,0 +1,36 @@
JABY_ENGINE_DIR = ../../..
include $(JABY_ENGINE_DIR)/mkfile/RebuildTarget.mk
ARTIFACT = libFontWriter
BUILD_DIR = bin
CCFLAGS += -I../../include -I$(JABY_ENGINE_DIR)/include
CCFLAGS += -save-temps=obj
include $(JABY_ENGINE_DIR)/mkfile/Wildcard.mk
SRCS = $(call rwildcard, src, c cpp s)
include $(JABY_ENGINE_DIR)/mkfile/Makefile
LIB_DIR = ../../lib/$(CONFIG_NAME)
LIB_OBJS = $(filter-out $(MAIN_BOOT_OBJ) $(OVERLAY_BOOT_OBJ),$(OBJS))
#$(info $$var is [${MAIN_BOOT_OBJ}])
#$(info $$var2 is [${LIB_OBJS}])
#Linking rule
$(TARGET).a: $(LIB_OBJS)
@mkdir -p $(dir $@)
$(AR) rcs $(TARGET).a $(LIB_OBJS)
#Copy rules
$(LIB_DIR)/$(ARTIFACT).a: $(TARGET).a
@mkdir -p $(LIB_DIR)
cp $(TARGET).a $(LIB_DIR)/$(ARTIFACT).a
#Rules section for default compilation and linking
all: $(LIB_DIR)/$(ARTIFACT).a
clean:
rm -fr $(OUTPUT_DIR)
rm -fr $(LIB_DIR)/$(ARTIFACT).a

View File

@ -0,0 +1,6 @@
#include <FontWriter/FontWriter.hpp>
#include <stdio.h>
void test() {
printf("Hello Planschi c:\n");
}

6
Support/src/Makefile Normal file
View File

@ -0,0 +1,6 @@
FontWriter: always
$(MAKE) -C FontWriter
all: FontWriter
always: ;

View File

@ -0,0 +1,72 @@
{
"folders": [
{
"name": "Support",
"path": "."
},
{
"name": "Support Include",
"path": "../include"
},
{
"name": "Support Library",
"path": "../lib"
},
],
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"windows": {
"command": "wsl make ${input:target} BUILD_PROFILE=${input:build cfg}",
},
"linux": {
"command": "make ${input:target} BUILD_PROFILE=${input:build cfg}",
},
"group": "build"
}
],
"inputs": [
{
"id": "build cfg",
"type": "pickString",
"options": ["debug", "release"],
"default": "release",
"description": "build configuration"
},
{
"id": "target",
"type": "pickString",
"options": ["all", "clean", "rebuild"],
"default": "all",
"description": "build target",
}
]
},
"settings": {
"cmake.configureOnOpen": false,
"C_Cpp.default.includePath": [
"../include",
"../../include"
],
"C_Cpp.default.compilerPath": "",
"C_Cpp.default.cStandard": "c17",
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.intelliSenseMode": "linux-gcc-x86",
"C_Cpp.default.compilerArgs": [
],
"C_Cpp.default.defines": [
"JABYENGINE_PAL",
"__friends=public"
],
"files.exclude": {
"**/*.o": true,
"**/*.dep": true
},
"files.associations": {
"stdio.h": "c"
}
}
}

View File

@ -1,72 +1,72 @@
{ {
"folders": [ "folders": [
{ {
"name": "JabyEngine", "name": "JabyEngine",
"path": ".", "path": ".",
}, },
{ {
"name": "Include", "name": "Include",
"path": "..\\..\\include" "path": "..\\..\\include"
}, },
{ {
"name": "Root", "name": "Root",
"path": "..\\.." "path": "..\\.."
} }
], ],
"tasks": { "tasks": {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "make", "label": "make",
"type": "shell", "type": "shell",
"windows": { "windows": {
"command": "wsl make ${input:target} BUILD_PROFILE=${input:build cfg}", "command": "wsl make ${input:target} BUILD_PROFILE=${input:build cfg}",
}, },
"linux": { "linux": {
"command": "make ${input:target} BUILD_PROFILE=${input:build cfg}", "command": "make ${input:target} BUILD_PROFILE=${input:build cfg}",
}, },
"group": "build" "group": "build"
} }
], ],
"inputs": [ "inputs": [
{ {
"id": "build cfg", "id": "build cfg",
"type": "pickString", "type": "pickString",
"options": ["debug", "release"], "options": ["debug", "release"],
"default": "release", "default": "release",
"description": "build configuration" "description": "build configuration"
}, },
{ {
"id": "target", "id": "target",
"type": "pickString", "type": "pickString",
"options": ["all", "clean", "rebuild"], "options": ["all", "clean", "rebuild"],
"default": "all", "default": "all",
"description": "build target", "description": "build target",
} }
] ]
}, },
"settings": { "settings": {
"cmake.configureOnOpen": false, "cmake.configureOnOpen": false,
"C_Cpp.default.includePath": [ "C_Cpp.default.includePath": [
"include", "include",
"../../include" "../../include"
], ],
"C_Cpp.default.compilerPath": "", "C_Cpp.default.compilerPath": "",
"C_Cpp.default.cStandard": "c17", "C_Cpp.default.cStandard": "c17",
"C_Cpp.default.cppStandard": "c++20", "C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.intelliSenseMode": "linux-gcc-x86", "C_Cpp.default.intelliSenseMode": "linux-gcc-x86",
"C_Cpp.default.compilerArgs": [ "C_Cpp.default.compilerArgs": [
], ],
"C_Cpp.default.defines": [ "C_Cpp.default.defines": [
"JABYENGINE_PAL", "JABYENGINE_PAL",
"__friends=public" "__friends=public"
], ],
"files.exclude": { "files.exclude": {
"**/*.o": true, "**/*.o": true,
"**/*.dep": true "**/*.dep": true
}, },
"files.associations": { "files.associations": {
"stdio.h": "c" "stdio.h": "c"
} }
} }
} }