Skip to content

Commit

Permalink
Fix android demo build error caused by dependency orders.
Browse files Browse the repository at this point in the history
  • Loading branch information
domchen committed Nov 22, 2023
1 parent a99a94b commit b572c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ if (TGFX_BUILD_TESTS)
endif ()

file(GLOB_RECURSE TGFX_TEST_FILES test/src/*.*)
list(APPEND TGFX_TEST_LIBS tgfx tgfx-drawers ${TGFX_SHARED_LIBS})
list(APPEND TGFX_TEST_LIBS tgfx-drawers tgfx ${TGFX_SHARED_LIBS})
list(APPEND TGFX_TEST_INCLUDES ${TGFX_INCLUDES} test/src third_party/json/include)

add_vendor_target(TEST STATIC_VENDORS harfbuzz googletest)
Expand Down
2 changes: 1 addition & 1 deletion android/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ file(GLOB_RECURSE HELLO_2D_FILES src/main/cpp/*.*)

add_library(hello2d SHARED ${HELLO_2D_FILES})
target_include_directories(hello2d PRIVATE ${HELLO_2D_INCLUDES})
target_link_libraries(hello2d tgfx tgfx-drawers ${HELLO_2D_SHARED_LIBS})
target_link_libraries(hello2d tgfx-drawers tgfx ${HELLO_2D_SHARED_LIBS})

0 comments on commit b572c4a

Please sign in to comment.