Skip to content
Permalink
Browse files
Android: fix CMakeLists.txt
  • Loading branch information
1bsyl committed Aug 15, 2019
1 parent 402527b commit ea59b35e4cc2e16401d2c125008f52f8d8912847
Showing 1 changed file with 6 additions and 4 deletions.
@@ -12,8 +12,8 @@ if (ANDROID)

option(TTF_WITH_HARFBUZZ "use harfbuzz to improve text shaping" OFF)

add_library(SDL_ttf SHARED)
target_sources(SDL_ttf PRIVATE SDL_ttf.c)
add_library(SDL2_ttf SHARED)
target_sources(SDL2_ttf PRIVATE SDL_ttf.c)

if (TTF_WITH_HARFBUZZ)
set(HARFBUZZ_INCLUDE_DIRS ../../external/harfbuzz-2.3.1/src)
@@ -28,15 +28,17 @@ if (ANDROID)

add_subdirectory(external/harfbuzz-2.3.1)
include_directories(external/harfbuzz-2.3.1/src)
target_link_libraries(SDL_ttf PRIVATE harfbuzz)
target_link_libraries(SDL2_ttf PRIVATE harfbuzz)

else()
set(FT_WITH_HARFBUZZ OFF CACHE BOOL "" FORCE)
endif()

add_subdirectory(external/freetype-2.9.1)
include_directories(external/freetype-2.9.1/include)
target_link_libraries(SDL_ttf PRIVATE freetype SDL2)

target_include_directories(SDL2_ttf PUBLIC .)
target_link_libraries(SDL2_ttf PRIVATE freetype SDL2)

else()

0 comments on commit ea59b35

Please sign in to comment.