Replace the remaining .kry and C application sources with Ziran modules, move vendored dependencies to their current pointers, and add Ziran tests for the ported hosts and policies.
30 lines
1.3 KiB
Makefile
30 lines
1.3 KiB
Makefile
< /$objtype/mkfile
|
|
|
|
# Native Plan 9 build of Inbe (Kryon libdraw backend). build/plan9 is
|
|
# prepared on the host by: make zi-c-plan9
|
|
#
|
|
# sqlite stays stubbed here: 8c panics the kernel compiling the
|
|
# amalgamation, so habit data is not persisted on Plan 9 yet (the VFS
|
|
# and the amalgamation rewrite remain in the tree for when the compiler
|
|
# can take them).
|
|
|
|
TARG=inbe
|
|
ROOT=/sys/src/inbe
|
|
|
|
list=$ROOT/build/plan9/generated-c-files.txt
|
|
gensrc=`{cat $list | grep -v -e 'storage/import.c' -e 'meditation/meditation_music.c' -e '/src/main.c' -e '/platform/app_host.c'}
|
|
appsrc=
|
|
hostsrc=build/plan9/app_embedded_assets.c
|
|
APPCPPFLAGS=-I$ROOT/src -I$ROOT/src/app -I$ROOT/src/core -I$ROOT/src/screens \
|
|
-I$ROOT/src/screens/settings -I$ROOT/src/practices -I$ROOT/src/practices/whm \
|
|
-I$ROOT/src/practices/meditation -I$ROOT/src/practices/sun_salutation \
|
|
-I$ROOT/src/storage -I$ROOT/src/platform -I$ROOT/src/platform/android \
|
|
-I$ROOT/src/third_party -I$ROOT/vendor-builds/sqlite \
|
|
-I$ROOT/build/plan9/generated -I$ROOT/build/plan9/generated/src \
|
|
-DANDROID_BUILD=0 -DPLATFORM_DESKTOP=1 \
|
|
-DINBE_DISABLE_KRYON_FILE_DIALOG=1 -DSQLITE_OS_OTHER=1 -DSQLITE_THREADSAFE=0 \
|
|
-DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_OMIT_WAL=1 -DSQLITE_TEMP_STORE=3
|
|
LDLIBS=-lmemlayer -lbio -lregexp -lString
|
|
|
|
< /sys/src/kryon/mk/plan9-app.mk
|