@@ -445,22 +445,22 @@ endif()
445
445
add_subdirectory (schema)
446
446
447
447
#
448
- # executorch_no_prim_ops : Minimal runtime library
448
+ # executorch_core : Minimal runtime library
449
449
#
450
450
# The bare-minimum runtime library, supporting the Program and Method
451
451
# interfaces. Does not contain any operators, including primitive ops. Does not
452
452
# contain any backends.
453
453
#
454
454
455
455
# Remove any PAL-definition files from the sources.
456
- list (FILTER _executorch_no_prim_ops__srcs EXCLUDE REGEX
456
+ list (FILTER _executorch_core__srcs EXCLUDE REGEX
457
457
"runtime/platform/default/[^/]*.cpp$"
458
458
)
459
459
460
460
# Add the source file that maps to the requested default PAL implementation.
461
461
if (EXECUTORCH_PAL_DEFAULT MATCHES "^(posix|minimal)$" )
462
462
message (STATUS "executorch: Using PAL default '${EXECUTORCH_PAL_DEFAULT} '" )
463
- list (APPEND _executorch_no_prim_ops__srcs
463
+ list (APPEND _executorch_core__srcs
464
464
"runtime/platform/default/${EXECUTORCH_PAL_DEFAULT} .cpp"
465
465
)
466
466
else ()
@@ -470,44 +470,44 @@ else()
470
470
)
471
471
endif ()
472
472
473
- add_library (executorch_no_prim_ops ${_executorch_no_prim_ops__srcs } )
474
- target_link_libraries (executorch_no_prim_ops PRIVATE program_schema)
473
+ add_library (executorch_core ${_executorch_core__srcs } )
474
+ target_link_libraries (executorch_core PRIVATE program_schema)
475
475
if (EXECUTORCH_USE_DL)
476
476
# Check if dl exists for this toolchain and only then link it.
477
477
find_library (DL_LIBRARY_EXISTS NAMES dl)
478
478
# Check if the library was found
479
479
if (DL_LIBRARY_EXISTS)
480
- target_link_libraries (executorch_no_prim_ops PRIVATE dl) # For dladdr()
480
+ target_link_libraries (executorch_core PRIVATE dl) # For dladdr()
481
481
endif ()
482
482
endif ()
483
483
target_include_directories (
484
- executorch_no_prim_ops PUBLIC ${_common_include_directories}
484
+ executorch_core PUBLIC ${_common_include_directories}
485
485
)
486
- target_compile_options (executorch_no_prim_ops PUBLIC ${_common_compile_options} )
486
+ target_compile_options (executorch_core PUBLIC ${_common_compile_options} )
487
487
if (MAX_KERNEL_NUM)
488
488
target_compile_definitions (
489
- executorch_no_prim_ops PRIVATE MAX_KERNEL_NUM=${MAX_KERNEL_NUM}
489
+ executorch_core PRIVATE MAX_KERNEL_NUM=${MAX_KERNEL_NUM}
490
490
)
491
491
endif ()
492
492
493
493
if (EXECUTORCH_BUILD_PYBIND AND APPLE )
494
494
# shared version
495
495
add_library (
496
- executorch_no_prim_ops_shared SHARED ${_executorch_no_prim_ops__srcs }
496
+ executorch_core_shared SHARED ${_executorch_core__srcs }
497
497
)
498
- target_link_libraries (executorch_no_prim_ops_shared PRIVATE program_schema)
498
+ target_link_libraries (executorch_core_shared PRIVATE program_schema)
499
499
if (DL_LIBRARY_EXISTS)
500
- target_link_libraries (executorch_no_prim_ops_shared PRIVATE dl) # For dladdr()
500
+ target_link_libraries (executorch_core_shared PRIVATE dl) # For dladdr()
501
501
endif ()
502
502
target_include_directories (
503
- executorch_no_prim_ops_shared PUBLIC ${_common_include_directories}
503
+ executorch_core_shared PUBLIC ${_common_include_directories}
504
504
)
505
505
target_compile_options (
506
- executorch_no_prim_ops_shared PUBLIC ${_common_compile_options}
506
+ executorch_core_shared PUBLIC ${_common_compile_options}
507
507
)
508
508
if (MAX_KERNEL_NUM)
509
509
target_compile_definitions (
510
- executorch_no_prim_ops_shared PRIVATE MAX_KERNEL_NUM=${MAX_KERNEL_NUM}
510
+ executorch_core_shared PRIVATE MAX_KERNEL_NUM=${MAX_KERNEL_NUM}
511
511
)
512
512
endif ()
513
513
endif ()
@@ -520,7 +520,7 @@ endif()
520
520
# any backends.
521
521
#
522
522
add_library (executorch ${_executorch__srcs} )
523
- target_link_libraries (executorch PRIVATE executorch_no_prim_ops )
523
+ target_link_libraries (executorch PRIVATE executorch_core )
524
524
target_include_directories (executorch PUBLIC ${_common_include_directories} )
525
525
target_compile_options (executorch PUBLIC ${_common_compile_options} )
526
526
target_link_options_shared_lib(executorch)
@@ -560,7 +560,7 @@ endif()
560
560
# Install `executorch` library as well as `executorch-config.cmake` under
561
561
# ${CMAKE_INSTALL_PREFIX}/
562
562
install (
563
- TARGETS executorch executorch_no_prim_ops
563
+ TARGETS executorch executorch_core
564
564
DESTINATION lib
565
565
INCLUDES
566
566
DESTINATION ${_common_include_directories}
@@ -793,16 +793,11 @@ function(executorch_runtime target_name)
793
793
794
794
cmake_parse_arguments (ETR "${options} " "" "${multi_value_args} " ${ARGN} )
795
795
796
- message (STATUS "executorch_runtime: ${target_name} " )
797
- message (STATUS "ETR_BACKEND: ${ETR_BACKEND} " )
798
-
799
796
set (runtime_deps executorch)
800
797
801
798
# Link backends.
802
799
foreach (backend IN LISTS ETR_BACKEND)
803
- message (STATUS "backend: ${backend} " )
804
800
string (TOLOWER "${backend} " backend_l)
805
- message (STATUS "backend_l: ${backend_l} " )
806
801
807
802
if (backend_l STREQUAL "coreml" )
808
803
list (APPEND runtime_deps coremldelegate)
@@ -822,7 +817,6 @@ function(executorch_runtime target_name)
822
817
# Link extensions.
823
818
foreach (extension IN LISTS ETR_EXTENSION)
824
819
string (TOLOWER "${extension} " extension_l)
825
- message (STATUS "Extension ${extension_l} " )
826
820
827
821
if (extension_l STREQUAL "apple" )
828
822
list (APPEND runtime_deps extension_apple)
0 commit comments