Skip to content

Commit e896b8e

Browse files
committed
Fix android CMake entries
1 parent c8ecf50 commit e896b8e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native-executorch/android/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ string(APPEND CMAKE_CXX_FLAGS " -DRCT_NEW_ARCH_ENABLED")
2121
set(ANDROID_CPP_DIR "${CMAKE_SOURCE_DIR}/src/main/cpp")
2222
set(COMMON_CPP_DIR "${CMAKE_SOURCE_DIR}/../common")
2323
set(LIBS_DIR "${CMAKE_SOURCE_DIR}/../third-party/android/libs")
24+
set(TOKENIZERS_DIR "${CMAKE_SOURCE_DIR}/../third-party/include/executorch/extension/llm/tokenizers/include")
2425
set(INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../third-party/include")
2526

2627
# Treat third-party headers as system headers to suppress deprecation warnings

packages/react-native-executorch/android/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ target_include_directories(
1717
"${COMMON_CPP_DIR}"
1818
"${ANDROID_CPP_DIR}"
1919
"${INCLUDE_DIR}"
20+
"${TOKENIZERS_DIR}"
2021
"${REACT_NATIVE_DIR}/ReactCommon"
2122
"${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/react/turbomodule"
2223
"${REACT_NATIVE_DIR}/ReactCommon/callinvoker"

0 commit comments

Comments
 (0)