29 lines
792 B
Markdown
29 lines
792 B
Markdown
unitprint/slint-app
|
|
=
|
|
|
|
``` sh *** build ***
|
|
cmake -DCMAKE_INSTALL_PREFIX="$pkgpath" \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DSLINT_STYLE=cosmic \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DCMAKE_CXX_FLAGS="-fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti" \
|
|
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--gc-sections -Wl,--strip-all -Wl,-z,norelro" \
|
|
-G Ninja ..
|
|
ninja
|
|
ninja install
|
|
```
|
|
|
|
``` sh *** test_xz ***
|
|
xz -9e -k --check=crc32 slint_test && du -sh slint_test.xz
|
|
```
|
|
|
|
``` sh *** test_symbols ***
|
|
strings slint_test | grep -c '<svg'
|
|
readelf -S slint_test | grep -c COMDAT
|
|
nm -C --defined-only slint_test
|
|
|
|
strings slint_test | grep -c 'PNG'
|
|
objdump -s -j .rodata slint_test | head -100
|
|
size -A slint_test | grep -E 'eh_frame|gcc_except'
|
|
```
|