File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,26 @@ if(EXECUTORCH_BUILD_LLAMA_JNI)
158158 ${EXECUTORCH_ROOT} /examples/models/llama/runner
159159 ${CMAKE_CURRENT_BINARY_DIR} /../../examples/models/llama/runner
160160 )
161+
162+ target_sources (
163+ executorch_jni PRIVATE
164+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/mtk_llama_runner.cpp
165+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/LlamaModelChunk.cpp
166+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/LlamaRuntime.cpp
167+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/ModelChunk.cpp
168+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/MultiModelLoader.cpp
169+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/llm_helper/mask_builder.cpp
170+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/llm_helper/rotary_embedding.cpp
171+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner/llm_helper/token_embedding.cpp
172+ )
173+ target_include_directories (
174+ executorch_jni PRIVATE
175+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/
176+ ${EXECUTORCH_ROOT} /examples/mediatek/executor_runner/llama_runner
177+ )
178+ ADD_LIBRARY (libneuron_buffer_allocator SHARED IMPORTED )
179+ SET_PROPERTY (TARGET libneuron_buffer_allocator PROPERTY IMPORTED_LOCATION ${NEURON_BUFFER_ALLOCATOR_LIB} /libneuron_buffer_allocator.so)
180+ list (APPEND link_libraries neuron_backend libneuron_buffer_allocator)
161181endif ()
162182
163183target_include_directories (
You can’t perform that action at this time.
0 commit comments