From 9e31736f56e4c879741c29544f4041d6326c06d1 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Wed, 5 Jan 2022 08:02:54 +0200 Subject: [PATCH] Fix building on android --- cmake_subdirs/expat/CMakeLists.txt | 4 ++-- cmake_subdirs/ocore_sdl/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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