Adiciona tipo imagem (core) + tinyblocks-ppm e previa de imagem no balao
This commit is contained in:
1 parent
f794d8b8c7
commit
959a4027c3
16 files changed
+721
-10
No files matched your search
@@ -26,6 +26,7 @@ CSV_DIR := $(LIBDIR)/tinyblocks-csv
|
||||
BP_DIR := $(LIBDIR)/tinyblocks-blueprint
|
||||
B64_DIR := $(LIBDIR)/tinyblocks-base64
|
||||
CV_DIR := $(LIBDIR)/tinyblocks-curves
|
||||
PPM_DIR := $(LIBDIR)/tinyblocks-ppm
|
||||
API_DIR := $(LIBDIR)/tinyblocks-api
|
||||
LIBM_DIR := $(LIBDIR)/tinyblocks-libman
|
||||
ED_DIR := $(LIBDIR)/tinyblocks-editor
|
||||
@@ -55,7 +56,8 @@ SRCS := src/tinyblocks.c \
|
||||
src/tb_vector_block.c \
|
||||
src/tb_renderable_block.c \
|
||||
src/tb_stage.c \
|
||||
src/tb_json_block.c
|
||||
src/tb_json_block.c \
|
||||
src/tb_image.c
|
||||
|
||||
OBJS := $(patsubst src/%.c,$(BUILD)/%.o,$(SRCS))
|
||||
OBJS_DBG := $(patsubst src/%.c,$(BUILD)/%-dbg.o,$(SRCS))
|
||||
@@ -80,12 +82,12 @@ LIB_LDFLAGS := -L$(ED_DIR)/build -L$(GX_DIR)/build -L$(SD_DIR)/build \
|
||||
.PHONY: all help debug release static shared example sdl2 clean run python-lib mcp-lib json \
|
||||
editor run-editor run-sdl2 mylib vector customappearance graphics sdl2-backend test-editor \
|
||||
appdir appimage run-appimage icon \
|
||||
test-toml test-plugin test-blueprint test-base64 test-curves \
|
||||
test-toml test-plugin test-blueprint test-base64 test-curves test-ppm \
|
||||
category-libs category-sos libs \
|
||||
lib-events lib-control lib-operators lib-variables lib-appearance lib-pen lib-fs \
|
||||
lib-environ \
|
||||
lib-editor lib-graphics lib-sdl2 lib-python lib-mcp lib-toml \
|
||||
lib-json lib-xml lib-csv lib-blueprint lib-base64 lib-curves lib-api lib-libman \
|
||||
lib-json lib-xml lib-csv lib-blueprint lib-base64 lib-curves lib-ppm lib-api lib-libman \
|
||||
test-libman test-environ
|
||||
|
||||
all: static example ## Compila a biblioteca estática e o exemplo hello (padrão)
|
||||
@@ -167,6 +169,9 @@ lib-base64:
|
||||
lib-curves:
|
||||
$(MAKE) -C $(CV_DIR)
|
||||
|
||||
lib-ppm:
|
||||
$(MAKE) -C $(PPM_DIR)
|
||||
|
||||
lib-api:
|
||||
$(MAKE) -C $(API_DIR)
|
||||
|
||||
@@ -187,8 +192,8 @@ lib-mcp:
|
||||
|
||||
libs: static lib-events lib-control lib-operators lib-variables \
|
||||
lib-appearance lib-pen lib-fs lib-environ lib-graphics lib-sdl2 lib-toml \
|
||||
lib-json lib-xml lib-csv lib-blueprint lib-base64 lib-curves lib-api lib-libman lib-editor
|
||||
@echo "Libraries OK: category + graphics + sdl2 + toml + json + xml + csv + blueprint + base64 + curves + api + libman + editor"
|
||||
lib-json lib-xml lib-csv lib-blueprint lib-base64 lib-curves lib-ppm lib-api lib-libman lib-editor
|
||||
@echo "Libraries OK: category + graphics + sdl2 + toml + json + xml + csv + blueprint + base64 + curves + ppm + api + libman + editor"
|
||||
|
||||
category-libs: static $(foreach l,$(CAT_LIBS),lib-$(l)) ## Compila as libraries de categoria (.a/.so)
|
||||
@echo "Build category libs OK"
|
||||
@@ -239,7 +244,7 @@ run-editor: editor ## Compila e abre o editor visual
|
||||
|
||||
# ── Empacotamento AppImage ──────────────────────────────────────────────
|
||||
# Libraries com blocos (categoria) que vao empacotadas como extensoes.
|
||||
APPIMAGE_LIBS := $(CAT_LIBS) toml json xml csv blueprint base64 curves
|
||||
APPIMAGE_LIBS := $(CAT_LIBS) toml json xml csv blueprint base64 curves ppm
|
||||
|
||||
APP_NAME := TinyBlocks
|
||||
APP_VER := 0.1.0
|
||||
@@ -371,7 +376,7 @@ $(BUILD)/editor_harness: tests/editor_harness.c $(SRCS) \
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS_DBG) \
|
||||
-I$(ED_DIR)/include -I$(EDITOR_SRC) -I$(GFX_INC) $(CAT_INCS) -I$(BP_DIR)/include \
|
||||
-I$(API_DIR)/include -I$(LIBM_DIR)/include -I$(EN_DIR)/include -I$(TOML_DIR)/include -I$(CV_DIR)/include -I$(B64_DIR)/include \
|
||||
-I$(API_DIR)/include -I$(LIBM_DIR)/include -I$(EN_DIR)/include -I$(TOML_DIR)/include -I$(CV_DIR)/include -I$(B64_DIR)/include -I$(PPM_DIR)/include \
|
||||
$(SRCS) \
|
||||
$(EDITOR_SRC)/tb_editor.c $(EDITOR_SRC)/tb_stage_widget.c \
|
||||
$(GX_DIR)/src/tb_graphics.c \
|
||||
@@ -379,7 +384,7 @@ $(BUILD)/editor_harness: tests/editor_harness.c $(SRCS) \
|
||||
$(API_DIR)/src/tb_api.c $(LIBM_DIR)/src/tb_libman.c \
|
||||
$(TOML_LIB_SRCS) $(TOML_DIR)/src/tb_toml.c \
|
||||
$(foreach l,$(CAT_LIBS),$(LIBDIR)/tinyblocks-$(l)/src/tb_$(l).c) \
|
||||
$(CV_DIR)/src/tb_curves.c $(B64_DIR)/src/tb_base64.c tests/editor_harness.c -o $@ -ldl -lm -rdynamic
|
||||
$(CV_DIR)/src/tb_curves.c $(B64_DIR)/src/tb_base64.c $(PPM_DIR)/src/tb_ppm.c tests/editor_harness.c -o $@ -ldl -lm -rdynamic
|
||||
|
||||
test-editor: $(BUILD)/editor_harness ## Roda o harness headless do editor (ASan/UBSan)
|
||||
./$(BUILD)/editor_harness
|
||||
@@ -452,6 +457,16 @@ $(BUILD)/curves_test: tests/curves_test.c $(CV_DIR)/src/tb_curves.c static
|
||||
test-curves: $(BUILD)/curves_test ## Roda o teste da curves (ASan/UBSan)
|
||||
./$(BUILD)/curves_test
|
||||
|
||||
# -- Teste da library ppm (usa o tipo imagem do core) ---
|
||||
$(BUILD)/ppm_test: tests/ppm_test.c $(PPM_DIR)/src/tb_ppm.c static
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS_DBG) -I$(PPM_DIR)/include $(PPM_DIR)/src/tb_ppm.c \
|
||||
tests/ppm_test.c -o $@ \
|
||||
-Wl,--start-group $(LIB_A) -Wl,--end-group
|
||||
|
||||
test-ppm: $(BUILD)/ppm_test ## Roda o teste da ppm (ASan/UBSan)
|
||||
./$(BUILD)/ppm_test
|
||||
|
||||
# -- Teste de plugin .so standalone ---
|
||||
FS_SO := $(FS_DIR)/build/libtinyblocks-fs.so
|
||||
|
||||
@@ -468,7 +483,7 @@ clean: ## Remove os diretórios build/ (raiz e libraries)
|
||||
$(RM) -r $(BUILD)
|
||||
@for d in $(EV_DIR) $(CT_DIR) $(OP_DIR) $(VR_DIR) $(AP_DIR) $(PN_DIR) $(FS_DIR) \
|
||||
$(TOML_DIR) $(JSON_DIR) $(XML_DIR) $(CSV_DIR) $(BP_DIR) \
|
||||
$(B64_DIR) $(CV_DIR) \
|
||||
$(B64_DIR) $(CV_DIR) $(PPM_DIR) \
|
||||
$(API_DIR) $(LIBM_DIR) \
|
||||
$(ED_DIR) $(GX_DIR) $(SD_DIR) $(PY_DIR) $(MC_DIR); do \
|
||||
$(MAKE) -C $$d clean >/dev/null 2>&1 || true; \
|
||||
|
||||
Reference in new issue
Block a user