mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-11-24 07:25:31 +00:00
Fix building on android
This commit is contained in:
parent
f0db2ff486
commit
9e31736f56
@ -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
|
||||
)
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user