mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Improve build config.
This commit is contained in:
parent
ea6af15314
commit
f287156fdf
3 changed files with 6 additions and 4 deletions
|
@ -3,4 +3,4 @@ set PATH=%PATH%;C:\Utils
|
|||
call %EMSDK_LOCAL_ROOT%\emsdk_env.bat
|
||||
mkdir build_wasm
|
||||
pushd build_wasm
|
||||
emcmake cmake ../.. -G "Ninja" -DUSE_EMSCRIPTEN=ON -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=OFF -DBUILD_PLAY=OFF -DBUILD_PSFPLAYER=ON -DUSE_QT=OFF
|
||||
emcmake cmake ../.. -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=OFF -DBUILD_PLAY=OFF -DBUILD_PSFPLAYER=ON -DUSE_QT=OFF
|
||||
|
|
|
@ -28,6 +28,10 @@ else()
|
|||
add_subdirectory(Source/ios_ui/)
|
||||
endif(TARGET_PLATFORM_IOS)
|
||||
|
||||
if(TARGET_PLATFORM_JS)
|
||||
add_subdirectory(Source/js_ui/)
|
||||
endif()
|
||||
|
||||
if(USE_QT)
|
||||
add_subdirectory(Source/unix_ui/)
|
||||
endif(USE_QT)
|
||||
|
|
|
@ -23,6 +23,4 @@ add_executable(PsfPlayer
|
|||
)
|
||||
target_link_libraries(PsfPlayer PUBLIC ${PROJECT_LIBS})
|
||||
|
||||
if(USE_EMSCRIPTEN)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s MODULARIZE=1 -s EXPORTED_FUNCTIONS=\"['_main', '_initVm', '_loadPsf', '_step', '_EmptyBlockHandler', '_MemoryUtils_GetByteProxy', '_MemoryUtils_GetHalfProxy', '_MemoryUtils_GetWordProxy', '_MemoryUtils_SetByteProxy', '_MemoryUtils_SetHalfProxy', '_MemoryUtils_SetWordProxy']\" -s EXPORTED_RUNTIME_METHODS=\"['ccall', 'FS', 'NODEFS']\" -s ASYNCIFY -s ASYNCIFY_IMPORTS=\"WasmCreateFunction\" -s ASSERTIONS=2 -s FORCE_FILESYSTEM -s ALLOW_TABLE_GROWTH -s ALLOW_MEMORY_GROWTH -lnodefs.js -fexceptions")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s MODULARIZE=1 -s EXPORTED_FUNCTIONS=\"['_main', '_initVm', '_loadPsf', '_step', '_EmptyBlockHandler', '_MemoryUtils_GetByteProxy', '_MemoryUtils_GetHalfProxy', '_MemoryUtils_GetWordProxy', '_MemoryUtils_SetByteProxy', '_MemoryUtils_SetHalfProxy', '_MemoryUtils_SetWordProxy']\" -s EXPORTED_RUNTIME_METHODS=\"['ccall', 'FS', 'NODEFS']\" -s ASYNCIFY -s ASYNCIFY_IMPORTS=\"WasmCreateFunction\" -s ASSERTIONS=2 -s FORCE_FILESYSTEM -s ALLOW_TABLE_GROWTH -s ALLOW_MEMORY_GROWTH -lnodefs.js -fexceptions")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue