Fix building on android

This commit is contained in:
CharlesThobe 2022-01-05 08:02:54 +02:00
parent f0db2ff486
commit 9e31736f56
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ add_compile_definitions(
)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
add_compile_definitions(
HAVE_DLFCN_H
HAVE_FCNTL_H
@ -54,4 +54,4 @@ add_library(expat STATIC
${expat_dir}/lib/xmlparse.c
${expat_dir}/lib/xmlrole.c
${expat_dir}/lib/xmltok.c
)
)

View File

@ -21,7 +21,7 @@ ${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osd_getenv.cpp #instead of osdlib_${targ
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib.h
)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
target_sources(ocore_sdl PRIVATE
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixdir.cpp
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixfile.cpp