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
@@ -11,8 +11,10 @@ dark = [255, 51, 85, 255]
|
||||
bundle_members = ["tinyblocks-editor-widgets", "tinyblocks-editor-image", "tinyblocks-editor-files"]
|
||||
|
||||
[build]
|
||||
sources = ["src/tb_editor.c", "src/tb_stage_widget.c"]
|
||||
sources = ["src/tb_editor.c", "src/tb_stage_widget.c", "src/tb_editor_modules.c"]
|
||||
includes = ["include"]
|
||||
# tb_editor_internal.h, tb_editor_modules.h e tb_stage_widget.h sao API privada
|
||||
defines = ["TB_EDITOR_PRIVATE_API"]
|
||||
shared = "build/libtinyblocks-editor.so"
|
||||
static = "build/libtinyblocks-editor.a"
|
||||
depends = ["tinyblocks-editor-widgets", "tinyblocks-editor-image", "tinyblocks-editor-files"]
|
||||
Reference in new issue
Block a user