@@ -18,16 +18,22 @@ ifeq ($(os),linux)
1818 this__backend := xorg
1919 endif
2020
21- this__cfg_suffix := $(if $(ogles2 ),opengles,opengl)-$(this__backend)
22- this_libruisapp := libruisapp-$(this__cfg_suffix)
21+ this__cfg_suffix := $(if $(ogles ),opengles,opengl)-$(this__backend)
22+ this__libruisapp := libruisapp-$(this__cfg_suffix)
2323else
24- this__cfg_suffix := $(if $(ogles2 ),opengles,opengl)
25- this_libruisapp := libruisapp-opengl
24+ this__cfg_suffix := $(if $(ogles ),opengles,opengl)
25+ this__libruisapp := libruisapp-opengl
2626endif
2727
28- this_libruisapp := ../../src/out/$(c)/$(this__cfg_suffix)/$(this_libruisapp)$(dot_so )
28+ this__libruisapp := ../../src/out/$(c)/$(this__cfg_suffix)/$(this__libruisapp )
2929
30- this_ldlibs += $(this_libruisapp)
30+ ifeq ($(config), emsc)
31+ this__libruisapp := $(this__libruisapp).a
32+ else
33+ this__libruisapp := $(this__libruisapp)$(dot_so)
34+ endif
35+
36+ this_ldlibs += $(this__libruisapp)
3137
3238ifeq ($(os),windows)
3339 this_ldlibs += -lmingw32 # these should go first, otherwise linker will complain about undefined reference to WinMain
@@ -51,3 +57,12 @@ this_test_ld_path := ../../src/out/$(c)/$(this__cfg_suffix)/
5157$(eval $(prorab-run))
5258
5359$(eval $(call prorab-include, ../../src/makefile))
60+
61+ # targets for building with conan and emscripten
62+
63+ define this__rules
64+ conan_install:
65+ $(.RECIPEPREFIX)@echo install conan dependencies
66+ $(.RECIPEPREFIX)$(a)conan install $(d)../../build/emscripten --update --profile:host $(d)../../build/emscripten/conan.profile --build=missing --output-folder=$(d)out/emsc
67+ endef
68+ $(eval $(this__rules))
0 commit comments