Skip to content

Commit

Permalink
ios fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kfprimm committed Dec 4, 2023
1 parent 863835b commit 2f30999
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ ENDIF()
IF(BB_EMSCRIPTEN)
set (BB_WEB true)
add_definitions(-DBB_WEB)
set(CMAKE_SYSTEM_PROCESSOR wasm) # defaults to x86? not sure that makes sense.
ENDIF()

IF(NOT BB_ENV)
Expand Down
6 changes: 1 addition & 5 deletions deps/ode/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if(NOT BB_DESKTOP AND NOT BB_NX)
return()
endif()

# patch to make it more friendly
file(READ tree/CMakeLists.txt FILE_CONTENTS)
string(REPLACE "add_custom_target(uninstall" "# add_custom_target(uninstall" FILE_CONTENTS "${FILE_CONTENTS}")
Expand Down Expand Up @@ -40,6 +36,6 @@ if(WIN32)
)
endif()

if(BB_NX)
if(BB_EMSCRIPTEN OR BB_NX)
target_compile_definitions(ODE PRIVATE __linux__)
endif()
2 changes: 1 addition & 1 deletion src/modules/bb/graphics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bb_start_module(graphics)
set(DEPENDS_ON bb.blitz bb.runtime bb.system bb.input bb.pixmap)
set(SOURCES graphics.h graphics.cpp canvas.h canvas.cpp driver.cpp font.h font.cpp movie.h movie.cpp)
set(LIBS freetype)
set(LIBS freetype ${ZLIB})
bb_end_module()

target_link_libraries(bb.graphics utf8.h)

0 comments on commit 2f30999

Please sign in to comment.