[FL-2052] New build system based on scons (#1269)
This commit is contained in:
13
core/SConscript
Normal file
13
core/SConscript
Normal file
@@ -0,0 +1,13 @@
|
||||
Import("env")
|
||||
|
||||
env.Append(LINT_SOURCES=["core"])
|
||||
|
||||
|
||||
libenv = env.Clone(FW_LIB_NAME="core")
|
||||
libenv.ApplyLibFlags()
|
||||
|
||||
sources = libenv.GlobRecursive("*.c")
|
||||
|
||||
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
||||
libenv.Install("${LIB_DIST_DIR}", lib)
|
||||
Return("lib")
|
@@ -1,8 +0,0 @@
|
||||
CORE_DIR = $(PROJECT_ROOT)/core
|
||||
|
||||
CFLAGS += -I$(CORE_DIR) -D_GNU_SOURCE
|
||||
ASM_SOURCES += $(wildcard $(CORE_DIR)/*.s)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/*.c)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/furi/*.c)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/furi_hal/*.c)
|
||||
CPP_SOURCES += $(wildcard $(CORE_DIR)/*.cpp)
|
Reference in New Issue
Block a user