diff --git a/cmake_subdirs/expat/CMakeLists.txt b/cmake_subdirs/expat/CMakeLists.txt index 384ea2c..5eb6c27 100644 --- a/cmake_subdirs/expat/CMakeLists.txt +++ b/cmake_subdirs/expat/CMakeLists.txt @@ -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 -) \ No newline at end of file +) diff --git a/cmake_subdirs/ocore_sdl/CMakeLists.txt b/cmake_subdirs/ocore_sdl/CMakeLists.txt index 1ee47ae..47707bf 100644 --- a/cmake_subdirs/ocore_sdl/CMakeLists.txt +++ b/cmake_subdirs/ocore_sdl/CMakeLists.txt @@ -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