sfw/build_scripts/compile_js.sh

12 lines
415 B
Bash
Executable File

#source ~/SDKs/emsdk/emsdk_env.sh
#saját fodítás
#em++ main.cpp libs/SDL2-js/lib/libSDL2.a -o game.html \
# -Ilibs/SDL2-js/include \
# -Ilibs/SDL2-js/lib
em++ main.cpp shader.cpp material.cpp mesh.cpp mesh_instance.cpp mesh_utils.cpp texture.cpp camera.cpp application.cpp scene.cpp game_scene.cpp object_2d.cpp tile_map.cpp sprite.cpp \
--embed-file download.bmp -o bin/game_js.html -s USE_SDL=2