Headers do editor em include/, com a API privada atrás de um guard
- tb_editor_internal.h e tb_editor_modules.h (antes em internal/) e tb_stage_widget.h (antes em src/) foram para libraries/tinyblocks-editor/include/. - Os três são API privada: só compilam com TB_EDITOR_PRIVATE_API (o editor, os módulos do bundle e o harness definem); fora disso um #error manda incluir tb_editor.h. - Includes viraram <tb_editor_internal.h> etc.; Makefiles sem -Isrc / -Iinternal; library.toml descreve os fontes e o define. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b610a05904
commit
81f198f189
13 files changed
+44
-21
No files matched your search
@@ -6,8 +6,8 @@ BUILD := build
|
||||
CORE := ../../build
|
||||
|
||||
CFLAGS := -std=c11 -Wall -Wextra -pedantic -fvisibility=hidden \
|
||||
-D_POSIX_C_SOURCE=200809L \
|
||||
-I../../include -Iinclude -Isrc \
|
||||
-D_POSIX_C_SOURCE=200809L -DTB_EDITOR_PRIVATE_API \
|
||||
-I../../include -Iinclude \
|
||||
-I../tinyblocks-graphics/include \
|
||||
-I../tinyblocks-variables/include \
|
||||
-I../tinyblocks-blueprint/include \
|
||||
@@ -36,8 +36,8 @@ all: static shared
|
||||
static: $(LIB_A)
|
||||
shared: $(LIB_SO)
|
||||
|
||||
$(BUILD)/tb_editor.o: src/tb_editor.c include/tb_editor.h internal/tb_editor_internal.h \
|
||||
src/tb_stage_widget.h \
|
||||
$(BUILD)/tb_editor.o: src/tb_editor.c include/tb_editor.h include/tb_editor_internal.h \
|
||||
include/tb_stage_widget.h \
|
||||
$(WIDGETS_DIR)/include/tb_editor_widgets.h \
|
||||
$(IMG_DIR)/include/tb_editor_image.h \
|
||||
$(FILES_DIR)/include/tb_editor_files.h \
|
||||
@@ -52,13 +52,13 @@ $(BUILD)/tb_editor.o: src/tb_editor.c include/tb_editor.h internal/tb_editor_int
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
$(BUILD)/tb_stage_widget.o: src/tb_stage_widget.c src/tb_stage_widget.h \
|
||||
$(BUILD)/tb_stage_widget.o: src/tb_stage_widget.c include/tb_stage_widget.h \
|
||||
../tinyblocks-graphics/include/tb_graphics.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
$(BUILD)/tb_editor_modules.o: src/tb_editor_modules.c internal/tb_editor_modules.h \
|
||||
internal/tb_editor_internal.h
|
||||
$(BUILD)/tb_editor_modules.o: src/tb_editor_modules.c include/tb_editor_modules.h \
|
||||
include/tb_editor_internal.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
|
||||
Reference in new issue
Block a user