Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions extension/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,27 +168,8 @@ endif()

if(EXECUTORCH_BUILD_LLAMA_JNI)
target_sources(executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/log.cpp)
list(APPEND link_libraries llama_runner llava_runner)
list(APPEND link_libraries extension_llm_runner)
target_compile_definitions(executorch_jni PUBLIC EXECUTORCH_BUILD_LLAMA_JNI=1)
add_subdirectory(
${EXECUTORCH_ROOT}/examples/models/llava/runner
${CMAKE_CURRENT_BINARY_DIR}/../../examples/models/llava/runner
)

add_subdirectory(
${EXECUTORCH_ROOT}/examples/models/llama/runner
${CMAKE_CURRENT_BINARY_DIR}/../../examples/models/llama/runner
)

target_sources(
executorch_jni
PRIVATE ${EXECUTORCH_ROOT}/extension/llm/runner/llm_runner_helper.cpp
)

target_include_directories(
executorch_jni PRIVATE ${EXECUTORCH_ROOT}/extension/llm/runner
)

if(QNN_SDK_ROOT)
target_sources(
executorch_jni
Expand Down
Loading