-
Notifications
You must be signed in to change notification settings - Fork 46
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
1 parent
75ecb4b
commit 9024761
Showing
11 changed files
with
295 additions
and
277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
function(plat_initialize) | ||
message( STATUS "Targeting Android ARM64" ) | ||
|
||
set(BIN_NAME "openjkdf2-armv8a") | ||
|
||
add_definitions(-DTARGET_ANDROID) | ||
add_definitions(-DLINUX) | ||
add_definitions(-DSTDSOUND_NULL) | ||
|
||
include(cmake_modules/plat_feat_full_sdl2.cmake) | ||
set(TARGET_USE_PHYSFS FALSE) | ||
set(TARGET_USE_OPENAL FALSE) | ||
set(TARGET_CAN_JKGM FALSE) | ||
set(TARGET_USE_CURL FALSE) | ||
set(TARGET_BUILD_TESTS FALSE) | ||
set(TARGET_FIND_OPENAL FALSE) | ||
|
||
set(TARGET_ANDROID TRUE) | ||
set(TARGET_ANDROID_ARM64 TRUE) | ||
|
||
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/lib/glew") | ||
include_directories(${PROJECT_SOURCE_DIR}/lib/freeglut/include) | ||
include_directories(${PROJECT_SOURCE_DIR}/lib/glew/include) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c11 -fshort-wchar -Werror=implicit-function-declaration -Wno-unused-variable -Wno-parentheses") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fshort-wchar") | ||
add_link_options(-fshort-wchar) | ||
endfunction() | ||
|
||
macro(plat_specific_deps) | ||
plat_sdl2_deps() | ||
endmacro() |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# These are the standard features for full game support | ||
set(TARGET_USE_PHYSFS TRUE) | ||
#set(TARGET_USE_BASICSOCKETS TRUE) | ||
set(TARGET_USE_GAMENETWORKINGSOCKETS TRUE) | ||
set(TARGET_USE_LIBSMACKER TRUE) | ||
set(TARGET_USE_LIBSMUSHER TRUE) | ||
set(TARGET_USE_SDL2 TRUE) | ||
set(TARGET_USE_OPENGL TRUE) | ||
set(TARGET_USE_OPENAL TRUE) | ||
set(TARGET_POSIX TRUE) | ||
set(TARGET_NO_BLOBS TRUE) | ||
set(TARGET_CAN_JKGM TRUE) | ||
set(OPENJKDF2_NO_ASAN TRUE) | ||
set(TARGET_USE_CURL TRUE) | ||
set(TARGET_FIND_OPENAL TRUE) | ||
|
||
if(OPENJKDF2_USE_BLOBS) | ||
set(TARGET_NO_BLOBS FALSE) | ||
endif() | ||
|
||
macro(plat_sdl2_deps) | ||
set(SDL2_COMMON_LIBS SDL2main SDL::SDL ${SDL_MIXER_DEPS} SDL::Mixer) | ||
endmacro() |
Oops, something went wrong.