- tinyblocks-editor agora e um bundle: libraries privadas em
libraries/tinyblocks-editor-{widgets,image} (.a + .so), com library.toml
(bundle = tinyblocks-editor, private = true -> nao aparecem no libman).
- O editor carrega os modulos por dlopen via tinyblocks-api e chama tudo por
tabelas de ponteiros (tb_ed_w, tb_ed_img): da para recompilar so a parte que
mudou e o editor recarrega ao vivo (make ed-modules), sem reiniciar.
- tinyblocks-api ganhou modulos de codigo (tb_api_code_*) e watcher de
arquivos (inotify, com mtime como reserva).
- libman: entradas com bundle/private nao sao listadas como extensao.
- Aba de imagem: layout estilo Krita - ferramentas na esquerda, tela no meio,
roda de cores + paleta + camadas na coluna da direita; miniatura por camada
(como as fantasias do Scratch); rodape enxuto (Desfazer/Limpar/zoom).
- Ferramenta selecionar (mover/redimensionar/excluir pixels) e consertada a
geometria da folha (doc = area de desenho, zoom puro).
- Makefile: alvo ed-modules; AppImage empacota os .so do bundle.
- harness: testes de imagem atualizados + testes de cores na lateral.
32 lines
829 B
Makefile
32 lines
829 B
Makefile
# Makefile da library privada tinyblocks-editor-widgets
|
|
# Bundle "tinyblocks-editor": vem junto com o editor.
|
|
# Constroi build/libtinyblocks-editor-widgets.a e .so
|
|
CC := gcc
|
|
BUILD := build
|
|
|
|
CFLAGS := -std=c11 -Wall -Wextra -pedantic \
|
|
-D_POSIX_C_SOURCE=200809L \
|
|
-I../../../../include -Iinclude -I../../../tinyblocks-graphics/include
|
|
|
|
OBJS := $(BUILD)/tb_editor_widgets.o
|
|
LIB_A := $(BUILD)/libtinyblocks-editor-widgets.a
|
|
LIB_SO := $(BUILD)/libtinyblocks-editor-widgets.so
|
|
|
|
.PHONY: all static shared clean
|
|
all: static shared
|
|
static: $(LIB_A)
|
|
shared: $(LIB_SO)
|
|
|
|
$(BUILD)/tb_editor_widgets.o: src/tb_editor_widgets.c include/tb_editor_widgets.h
|
|
@mkdir -p $(BUILD)
|
|
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
|
|
|
$(LIB_A): $(OBJS)
|
|
ar rcs $@ $^
|
|
|
|
$(LIB_SO): $(OBJS)
|
|
$(CC) -shared -o $@ $^
|
|
|
|
clean:
|
|
$(RM) -r $(BUILD)
|