-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
231 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
add_executable(${PROJECT_NAME} src/main.c) | ||
|
||
if(NOT EMSCRIPTEN) | ||
add_library(vmlib ${WAMR_RUNTIME_LIB_SOURCE}) | ||
target_link_libraries(${PROJECT_NAME} null0_api vmlib) | ||
if (NULL0_HOST_TYPE_RETRO) | ||
add_library(${PROJECT_NAME}_libretro src/main.c) | ||
target_link_libraries(${PROJECT_NAME}_libretro null0_api vmlib) | ||
else() | ||
if (NULL0_HOST_TYPE_SDL OR NULL0_HOST_TYPE_RAYLIB OR NULL0_HOST_TYPE_WEB) | ||
add_executable(${PROJECT_NAME} src/main.c) | ||
if(NULL0_HOST_TYPE_WEB) | ||
set(CMAKE_EXECUTABLE_SUFFIX ".mjs") | ||
target_link_options(${PROJECT_NAME} PRIVATE -sFORCE_FILESYSTEM -sEXPORTED_RUNTIME_METHODS=FS,stringToUTF8 -sEXPORTED_FUNCTIONS=@${CMAKE_CURRENT_SOURCE_DIR}/functions.txt) | ||
target_link_libraries(${PROJECT_NAME} null0_api) | ||
else() | ||
target_link_libraries(${PROJECT_NAME} null0_api vmlib) | ||
endif() | ||
endif() | ||
endif() | ||
|
||
if(EMSCRIPTEN) | ||
set(CMAKE_EXECUTABLE_SUFFIX ".mjs") | ||
target_link_options(${PROJECT_NAME} PRIVATE -sFORCE_FILESYSTEM -sEXPORTED_RUNTIME_METHODS=FS,stringToUTF8 -sEXPORTED_FUNCTIONS=@${CMAKE_CURRENT_SOURCE_DIR}/functions.txt) | ||
endif() | ||
|
||
target_link_libraries(${PROJECT_NAME} null0_api) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
add_library(null0_api src/main.c src/sfx_gen.c) | ||
|
||
# TODO: check for emscripten | ||
|
||
if (RAYLIB) | ||
if (NULL0_HOST_TYPE_RAYLIB) | ||
target_link_libraries(null0_api raylib pntr pntr_app physfs-static) | ||
endif() | ||
|
||
if (SDL) | ||
message("SDL libs: ${SDL2_LIBRARIES} ${SDL2_MIXER_LIBRARIES} ${SDL2_IMAGE_LIBRARIES}") | ||
if (NULL0_HOST_TYPE_SDL) | ||
target_link_libraries(null0_api ${SDL2_LIBRARIES} pntr pntr_app physfs-static) | ||
endif() | ||
|
||
if (EMSCRIPTEN) | ||
if (NULL0_HOST_TYPE_WEB) | ||
target_link_libraries(null0_api pntr pntr_app physfs-static) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.