Skip to content

Commit d562557

Browse files
committed
Update
[ghstack-poisoned]
1 parent 7c0481e commit d562557

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

CMakeLists.txt

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ target_link_libraries(executorch_backends INTERFACE ${_executorch_backends})
713713

714714
if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
715715
# Baseline libraries that executor_runner will link against.
716-
set(_executor_runner_libs executorch gflags executorch_backends)
716+
set(_executor_runner_libs executorch gflags)
717717

718718
if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
719719
list(APPEND _executor_runner_libs optimized_native_cpu_ops_lib)
@@ -732,27 +732,30 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
732732
list(APPEND _executor_runner_libs $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
733733
endif()
734734

735+
if(EXECUTORCH_BUILD_XNNPACK)
736+
list(APPEND _executor_runner_libs xnnpack_backend)
737+
endif()
738+
735739
if(EXECUTORCH_ENABLE_EVENT_TRACER)
736740
list(APPEND _executor_runner_libs etdump flatccrt)
737741
endif()
738742

743+
if(EXECUTORCH_BUILD_COREML AND APPLE)
744+
list(APPEND _executor_runner_libs coremldelegate)
745+
endif()
746+
739747
add_executable(executor_runner ${_executor_runner__srcs})
740748
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
741749
target_link_options_gc_sections(executor_runner)
742750
endif()
743-
target_link_libraries(executor_runner ${_executor_runner_libs})
744-
target_compile_options(executor_runner PUBLIC ${_common_compile_options})
745-
746-
# Automatically set when using `emcmake cmake` for Wasm build.
747-
if(EMSCRIPTEN)
748-
# Directory of model pte files to embed in the wasm binary.
749-
if(NOT DEFINED WASM_MODEL_DIR)
750-
set(WASM_MODEL_DIR "${CMAKE_SOURCE_DIR}/models/")
751-
endif()
752-
753-
set(CMAKE_EXECUTABLE_SUFFIX ".html")
754-
target_link_options(executor_runner PUBLIC -sALLOW_MEMORY_GROWTH --embed-file "${WASM_MODEL_DIR}@/")
755-
endif()
751+
endif()
752+
753+
if(EXECUTORCH_BUILD_VULKAN)
754+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/vulkan)
755+
endif()
756+
757+
if(EXECUTORCH_BUILD_ANDROID_JNI)
758+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/android)
756759
endif()
757760

758761
if(EXECUTORCH_BUILD_ANDROID_JNI)

0 commit comments

Comments
 (0)