pkg download command and patches
This commit is contained in:
28
assets/var/gnu/unitprint/slint-app.md
Normal file
28
assets/var/gnu/unitprint/slint-app.md
Normal file
@ -0,0 +1,28 @@
|
||||
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'
|
||||
```
|
||||
Reference in New Issue
Block a user