summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStan <[email protected]>2022-09-02 09:13:35 +0200
committerGitHub <[email protected]>2022-09-02 09:13:35 +0200
commit234576da71757e1f02911993175e22762923749b (patch)
tree212da85d8276c0031ac4939fe3e9dce515cc194e
parentfb1037a2417e516d4be02d962b113e5d55cd5855 (diff)
downloadraylib-234576da71757e1f02911993175e22762923749b.tar.gz
raylib-234576da71757e1f02911993175e22762923749b.zip
Removed raylib_opengl_interop.c from PLATFORM=Web build (#2682)
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 416f76e9..3bcdc19f 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -85,7 +85,7 @@ if (${PLATFORM} MATCHES "Android")
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/models/models_obj_viewer.c)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/models/models_animation.c)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/models/models_first_person_maze.c)
- list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/models/models_magicavoxel_loading.c)
+ list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/models/models_magicavoxel_loading.c)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/shaders/shaders_custom_uniform.c)
@@ -102,6 +102,8 @@ elseif (${PLATFORM} MATCHES "Web")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --shell-file ${CMAKE_SOURCE_DIR}/src/shell.html")
set(CMAKE_EXECUTABLE_SUFFIX ".html")
+ list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c)
+
# Remove the -rdynamic flag because otherwise emscripten
# does not generate HTML+JS+WASM files, only a non-working
# and fat HTML