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
@@ -7,7 +7,7 @@ CFLAGS := -std=c11 -Wall -Wextra -pedantic \
|
||||
-DTB_EDITOR_FILES_BUILD \
|
||||
-D_POSIX_C_SOURCE=200809L \
|
||||
-I../../../../include -Iinclude \
|
||||
-I../../internal \
|
||||
-I../../include -DTB_EDITOR_PRIVATE_API \
|
||||
-I../tinyblocks-editor-widgets/include \
|
||||
-I../tinyblocks-editor-image/include \
|
||||
-I../../../tinyblocks-graphics/include \
|
||||
@@ -28,7 +28,7 @@ static: $(LIB_A)
|
||||
shared: $(LIB_SO)
|
||||
|
||||
$(BUILD)/tb_editor_files.o: src/tb_editor_files.c include/tb_editor_files.h \
|
||||
../../internal/tb_editor_internal.h \
|
||||
../../include/tb_editor_internal.h \
|
||||
../tinyblocks-editor-widgets/include/tb_editor_widgets.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../../../internal/tb_editor_internal.h"
|
||||
#include <tb_editor_internal.h>
|
||||
#include "tb_editor_files.h"
|
||||
|
||||
/* -- Geometria ------------------------------------------------------------ */
|
||||
|
||||
@@ -7,7 +7,7 @@ CFLAGS := -std=c11 -Wall -Wextra -pedantic \
|
||||
-DTB_EDITOR_IMAGE_BUILD \
|
||||
-D_POSIX_C_SOURCE=200809L \
|
||||
-I../../../../include -Iinclude \
|
||||
-I../../internal \
|
||||
-I../../include -DTB_EDITOR_PRIVATE_API \
|
||||
-I../tinyblocks-editor-widgets/include \
|
||||
-I../tinyblocks-editor-files/include \
|
||||
-I../../../tinyblocks-graphics/include \
|
||||
@@ -28,7 +28,7 @@ static: $(LIB_A)
|
||||
shared: $(LIB_SO)
|
||||
|
||||
$(BUILD)/tb_editor_image.o: src/tb_editor_image.c include/tb_editor_image.h \
|
||||
../../internal/tb_editor_internal.h \
|
||||
../../include/tb_editor_internal.h \
|
||||
../tinyblocks-editor-widgets/include/tb_editor_widgets.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* Como as demais, pode ser usada como .so independente: os simbolos do
|
||||
* editor ficam pendentes e sao resolvidos na carga.
|
||||
*/
|
||||
#include "../../../internal/tb_editor_internal.h"
|
||||
#include <tb_editor_internal.h>
|
||||
#include "tb_editor_image.h"
|
||||
|
||||
/* Helpers internos desta library (definidos mais abaixo) */
|
||||
|
||||
Reference in new issue
Block a user