Build and integrate Splash Image
This commit is contained in:
parent
7baeb4d1e2
commit
8917932bc7
|
@ -0,0 +1 @@
|
|||
src/BootLoader/splash_image_boot.cpp
|
|
@ -47,7 +47,7 @@
|
|||
{
|
||||
"id": "target",
|
||||
"type": "pickString",
|
||||
"options": ["build", "clean", "rebuild", "splash"],
|
||||
"options": ["build", "clean", "rebuild"],
|
||||
"default": "build",
|
||||
"description": "build target",
|
||||
}
|
||||
|
|
|
@ -3,18 +3,21 @@ JABY_ENGINE_DIR = ../../
|
|||
ARTIFACT = libJabyEngine
|
||||
BUILD_DIR = bin
|
||||
|
||||
SPLASH_IMAGE = src/BootLoader/splash_image_boot.cpp
|
||||
|
||||
CCFLAGS += -Iinclude -I../../include
|
||||
CCFLAGS += -save-temps=obj
|
||||
|
||||
include ../../lib/Wildcard.mk
|
||||
SRCS = $(call rwildcard, src, c cpp)
|
||||
SRCS += src/syscall_printf.asm
|
||||
SRCS += $(SPLASH_IMAGE)
|
||||
|
||||
include ../../lib/Makefile
|
||||
LIB_DIR = ../../lib/$(CONFIG_NAME)
|
||||
|
||||
#Linking rule
|
||||
$(TARGET).a: $(OBJS)
|
||||
$(TARGET).a: $(OBJS) $(SPLASH_IMAGE)
|
||||
@mkdir -p $(dir $@)
|
||||
$(AR) rcs $(TARGET).a $(OBJS)
|
||||
|
||||
|
@ -22,14 +25,13 @@ $(LIB_DIR)/$(ARTIFACT).a: $(TARGET).a
|
|||
@mkdir -p $(LIB_DIR)
|
||||
cp $(TARGET).a $(LIB_DIR)/$(ARTIFACT).a
|
||||
|
||||
ressources/Splash.cpp: ressources/Splash.png
|
||||
$(SPLASH_IMAGE): ressources/Splash.png
|
||||
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
||||
|
||||
#Rules section for default compilation and linking
|
||||
splash: ressources/Splash.cpp
|
||||
|
||||
all: $(LIB_DIR)/$(ARTIFACT).a
|
||||
|
||||
clean:
|
||||
rm -fr $(SPLASH_IMAGE)
|
||||
rm -fr $(OUTPUT_DIR)
|
||||
rm -fr $(LIB_DIR)/$(ARTIFACT).a
|
Loading…
Reference in New Issue