Skip to content

Commit 1f250a9

Browse files
committed
emsc: test app
1 parent ab7adc1 commit 1f250a9

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

tests/app/makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
include prorab.mk
22
include prorab-test.mk
33

4+
$(eval $(call prorab-config, ../../config))
5+
46
this_name := ruisapp-test
57

6-
$(eval $(call prorab-config, ../../config))
8+
ifeq ($(config), emsc)
9+
this_name := $(this_name).html
10+
endif
711

812
this_srcs += $(call prorab-src-dir, src)
913

@@ -46,7 +50,16 @@ else ifeq ($(os),linux)
4650
this_ldflags += -rdynamic
4751
endif
4852

49-
this_ldlibs += -ltml -lruis -lutki -lpapki -lm
53+
this_ldlibs += -l tml
54+
this_ldlibs += -l ruis
55+
this_ldlibs += -l utki
56+
this_ldlibs += -l papki
57+
this_ldlibs += -l m
58+
59+
ifeq ($(config), emsc)
60+
this_ldflags += -sWASM=1
61+
this_ldflags += -sSINGLE_FILE
62+
endif
5063

5164
$(eval $(prorab-build-app))
5265

0 commit comments

Comments
 (0)