Skip to content

Commit

Permalink
Merge pull request #327 from carlopi/fix_wasm
Browse files Browse the repository at this point in the history
Fix wasm build: disable OPENFILEGDB
  • Loading branch information
Maxxen authored Jun 5, 2024
2 parents 0143384 + deaa2ef commit 011524f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ endif()

set(CMAKE_FLAGS_POINTER_SIZE )
set(CMAKE_PROJ_FLAGS )
set(OGR_ENABLE_DRIVER_OPENFILEGDB ON)
set(CMAKE_GDAL_FLAGS )
set(PATCH_NAME_ENDING )
if (EMSCRIPTEN)
set(CMAKE_FLAGS_POINTER_SIZE -DCMAKE_SIZEOF_VOID_P=4 -DCMAKE_SIZEOF_VOIDP=4 -DCMAKE_C_FLAGS=-pthread -DCMAKE_CXX_FLAGS=-pthread)
set(CMAKE_FLAGS_POINTER_SIZE -DCMAKE_SIZEOF_VOID_P=4 -DCMAKE_SIZEOF_VOIDP=4)
set(CMAKE_PROJ_FLAGS -DCMAKE_MODULE_PATH=${LOCAL_INSTALL_DIR}/lib/cmake -DSQLITE3_INCLUDE_DIR=${LOCAL_INSTALL_DIR}/include -DSQLITE3_LIBRARY=${LOCAL_INSTALL_DIR}/lib/libsqlite3.a)
set(CMAKE_GDAL_FLAGS -DACCEPT_MISSING_LINUX_FS_HEADER=ON -DSIZEOF_INT=4 -DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_OFF_T=4 -DGEOS_DIR=${LOCAL_INSTALL_DIR}/lib/cmake/geos -DGeographicLib_DIR=${LOCAL_INSTALL_DIR}/lib/cmake/GeographicLib -DSQLITE3_LIBRARY=${LOCAL_INSTALL_DIR}/lib/libsqlite3.a)
set(PATCH_NAME_ENDING _wasm)
set(OGR_ENABLE_DRIVER_OPENFILEGDB OFF)
endif()

# ZLIB
Expand Down Expand Up @@ -307,7 +309,7 @@ ExternalProject_Add(
-DOGR_ENABLE_DRIVER_GPSBABEL=ON
-DOGR_ENABLE_DRIVER_EDIGEO=ON
-DOGR_ENABLE_DRIVER_SXF=ON
-DOGR_ENABLE_DRIVER_OPENFILEGDB=ON
-DOGR_ENABLE_DRIVER_OPENFILEGDB=${OGR_ENABLE_DRIVER_OPENFILEGDB}
-DOGR_ENABLE_DRIVER_WASP=ON
-DOGR_ENABLE_DRIVER_SELAFIN=ON
-DOGR_ENABLE_DRIVER_JML=ON
Expand Down

0 comments on commit 011524f

Please sign in to comment.