Skip to content

Commit

Permalink
Update emsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 14, 2023
1 parent d4b3762 commit 636ae9a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ jobs:
-s build_type=Release
.
# - name: Build & Test
# run: conan build -bf build .
- name: Build & Test
run: conan build -bf build .
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include(MociCompilerOptions)
include(MociCompilerWarnings)

if(EMSCRIPTEN)
add_subdirectory(playground/sdl_emscripten)
add_subdirectory(src/app/playground/sdl_emscripten)
else()
include(MociConan)

Expand Down
3 changes: 2 additions & 1 deletion profiles/emscripten.profile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ arch=wasm

compiler=clang
compiler.version=16
compiler.cppstd=20
compiler.libcxx=libc++

[options]

[tool_requires]
emsdk/3.1.23
emsdk/3.1.44

[env]

Expand Down
1 change: 1 addition & 0 deletions src/app/playground/sdl_emscripten/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_executable(sdl_emscripten
${CMAKE_BINARY_DIR}/bindings/imgui_impl_opengl3.cpp
)

set_target_properties(sdl_emscripten PROPERTIES SUFFIX ".html")
target_include_directories(sdl_emscripten PRIVATE ${CMAKE_BINARY_DIR})
target_compile_definitions(sdl_emscripten PRIVATE IMGUI_DISABLE_OBSOLETE_FUNCTIONS)
target_link_libraries(sdl_emscripten PRIVATE imgui::imgui)
Expand Down

0 comments on commit 636ae9a

Please sign in to comment.