Build para Windows: make exe (MinGW + pacotes do MSYS2)
make exe gera build/win-x86_64/TinyBlocks/TinyBlocks.exe com as DLLs e o zip; make run-exe abre no Wine. As dependencias (SDL2, SDL2_ttf, libpng, freetype, openssl, zlib, regex) vem dos pacotes MinGW do MSYS2, com as dependencias resolvidas pelo indice do repositorio (packaging/windows/msys2_deps.py). O POSIX que falta fica em packaging/windows/compat (dlfcn, pwd, uname, mkdir, sysconf, setenv, readlink de /proc/self/exe, strndup, getline, open_memstream). No Windows uma DLL nao ve os simbolos do .exe, entao o editor, os modulos dele (TB_ED_STATIC_MODULES) e as libraries de extensao (TB_STATIC_EXTRAS) entram no executavel; TB_STATIC_BUILD deixa o TB_API vazio. Socket e servidor MCP ganham uma camada sobre o Winsock; o kernel do GEMM so usa target_clones no ELF. O pacote leva a fonte DejaVu (procurada ao lado do executavel pelo SDL2 e pela opentype) e os certificados raiz (certs/ca-bundle.crt, carregados pela ssl). Testado no Wine 9: interface, HTTPS com verificacao, tensor, informacoes do sistema e grafico em PNG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
829bc67142
commit
7538d48a13
21 files changed
+820
-61
No files matched your search
@@ -43,6 +43,21 @@
|
||||
#include <tb_ai.h>
|
||||
#include <tb_plot.h>
|
||||
#include <tb_api.h>
|
||||
#ifdef TB_STATIC_EXTRAS
|
||||
/* Build sem dlopen das libraries (Windows): as que no Linux vem como .so
|
||||
entram no executavel e sao registradas aqui */
|
||||
# include <tb_base64.h>
|
||||
# include <tb_curves.h>
|
||||
# include <tb_ppm.h>
|
||||
# include <tb_bmp.h>
|
||||
# include <tb_png.h>
|
||||
# include <tb_imglib.h>
|
||||
# include <tb_vg.h>
|
||||
# include <tb_svg.h>
|
||||
# include <tb_regex.h>
|
||||
# include <tb_markdown.h>
|
||||
# include <tb_opentype.h>
|
||||
#endif
|
||||
|
||||
/* Registra uma library de categoria: se existir o .so dela no disco, carrega
|
||||
* por ali (assim "make libs" + hot reload recarrega a lista de blocos na
|
||||
@@ -92,6 +107,15 @@ int main(int argc, char** argv) {
|
||||
reg_core(rt, "tinyblocks-tensor", tb_tensor_get_library);
|
||||
reg_core(rt, "tinyblocks-ai", tb_ai_get_library);
|
||||
reg_core(rt, "tinyblocks-plot", tb_plot_get_library);
|
||||
#ifdef TB_STATIC_EXTRAS
|
||||
{
|
||||
const TinyBlocks_LibraryDescriptor* (*extras[])(void) = {
|
||||
tb_ppm_get_library, tb_bmp_get_library, tb_png_get_library, tb_imglib_get_library,
|
||||
tb_base64_get_library, tb_curves_get_library, tb_vg_get_library, tb_svg_get_library,
|
||||
tb_regex_get_library, tb_markdown_get_library, tb_opentype_get_library };
|
||||
for (size_t i = 0; i < sizeof(extras) / sizeof(extras[0]); i++) tb_library_register(rt, extras[i]());
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Interface gráfica: o editor mede texto e cria o palco ao nascer */
|
||||
tb_library_register(rt, tb_graphics_get_library());
|
||||
|
||||
Reference in new issue
Block a user