File tree Expand file tree Collapse file tree 36 files changed +39
-39
lines changed
exir/backend/test/demos/rpc Expand file tree Collapse file tree 36 files changed +39
-39
lines changed Original file line number Diff line number Diff line change 44
44
45
45
cmake_minimum_required (VERSION 3.24 )
46
46
project (executorch )
47
- include (build /Utils.cmake )
47
+ include (tools/cmake /Utils.cmake )
48
48
include (CMakeDependentOption )
49
49
50
50
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if(NOT EXECUTORCH_ROOT)
16
16
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
17
17
endif ()
18
18
19
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
19
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
20
20
21
21
if (NOT PYTHON_EXECUTABLE )
22
22
resolve_python_executable ()
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if(NOT EXECUTORCH_ROOT)
12
12
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
13
13
endif ()
14
14
15
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
15
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
16
16
17
17
set (_common_include_directories ${EXECUTORCH_ROOT} /.. ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10 )
18
18
add_compile_definitions (C10_USING_CUSTOM_GENERATED_MACROS )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if(NOT EXECUTORCH_ROOT)
19
19
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
20
20
endif ()
21
21
22
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
22
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
23
23
24
24
# Let files say "include <executorch/path/to/header.h>".
25
25
set (_common_include_directories ${EXECUTORCH_ROOT} /..
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if(NOT CMAKE_CXX_STANDARD)
11
11
set (CMAKE_CXX_STANDARD 17 )
12
12
endif ()
13
13
14
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
14
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
15
15
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
16
16
17
17
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if(NOT CMAKE_CXX_STANDARD)
11
11
set (CMAKE_CXX_STANDARD 17 )
12
12
endif ()
13
13
14
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
14
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
15
15
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
16
16
17
17
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if(NOT CMAKE_CXX_STANDARD)
11
11
set (CMAKE_CXX_STANDARD 17 )
12
12
endif ()
13
13
14
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
14
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
15
15
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
16
16
17
17
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ endif()
32
32
# provide access to target_link_options_shared_lib which allows libraries to be
33
33
# linked with the --whole-archive flag. This is required for libraries that
34
34
# perform dynamic registration via static initialization.
35
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
35
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
36
36
37
37
include (cmake/ShaderLibrary.cmake )
38
38
Original file line number Diff line number Diff line change 41
41
endif ()
42
42
43
43
# Required to enable linking with --whole-archive
44
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
44
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
45
45
46
46
function (gen_vulkan_shader_lib_cpp shaders_path )
47
47
set (VULKAN_SHADERGEN_ENV "" )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if(LIB_VULKAN_BACKEND)
37
37
# to provide access to target_link_options_shared_lib which allows libraries
38
38
# to be linked with the --whole-archive flag. This is required for libraries
39
39
# that perform dynamic registration via static initialization.
40
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
40
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
41
41
42
42
include (../cmake/ShaderLibrary.cmake )
43
43
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if(NOT EXECUTORCH_ROOT)
23
23
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
24
24
endif ()
25
25
26
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
26
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
27
27
28
28
if (NOT PYTHON_EXECUTABLE )
29
29
resolve_python_executable ()
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ if(NOT EXECUTORCH_ROOT)
16
16
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /.. )
17
17
endif ()
18
18
19
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
19
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
20
20
21
21
if (NOT PYTHON_EXECUTABLE )
22
22
resolve_python_executable ()
23
23
endif ()
24
24
25
25
set (_common_compile_options -Wno-deprecated-declarations )
26
26
27
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
27
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
28
28
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
29
29
30
30
if (EXECUTORCH_BUILD_KERNELS_OPTIMIZED )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if(NOT EXECUTORCH_ROOT)
32
32
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /.. )
33
33
endif ()
34
34
35
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
35
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
36
36
37
37
if (NOT PYTHON_EXECUTABLE )
38
38
resolve_python_executable ()
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ Here's an example to do it:
267
267
268
268
` ` ` cmake
269
269
# For target_link_options_shared_lib
270
- include(${EXECUTORCH_ROOT}/build /Utils.cmake)
270
+ include(${EXECUTORCH_ROOT}/tools/cmake /Utils.cmake)
271
271
272
272
# Add a custom op library
273
273
add_library(custom_op_lib SHARED ${CMAKE_CURRENT_SOURCE_DIR}/custom_op.cpp)
Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ if(NOT EXECUTORCH_ROOT)
23
23
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
24
24
endif ()
25
25
26
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
26
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
27
27
28
28
if (NOT PYTHON_EXECUTABLE )
29
29
resolve_python_executable ()
30
30
endif ()
31
31
32
32
add_compile_options ("-Wall" "-Werror" )
33
33
34
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
34
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
35
35
36
36
set (_common_compile_options -Wno-deprecated-declarations -fPIC
37
37
-DET_EVENT_TRACER_ENABLED
@@ -58,7 +58,7 @@ if(NOT CMAKE_TOOLCHAIN_FILE MATCHES ".*(iOS|ios\.toolchain)\.cmake$")
58
58
#
59
59
60
60
# portable_ops_lib
61
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
61
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
62
62
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
63
63
gen_selected_ops (LIB_NAME "mps_portable_ops_lib" INCLUDE_ALL_OPS "ON" )
64
64
generate_bindings_for_kernels (
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if(NOT EXECUTORCH_ROOT)
21
21
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
22
22
endif ()
23
23
24
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
24
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
25
25
26
26
if (NOT PYTHON_EXECUTABLE )
27
27
resolve_python_executable ()
@@ -35,7 +35,7 @@ set(_common_include_directories ${EXECUTORCH_ROOT}/..)
35
35
find_package (executorch CONFIG REQUIRED HINTS ${CMAKE_INSTALL_PREFIX} )
36
36
target_include_directories (executorch INTERFACE ${_common_include_directories} )
37
37
38
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
38
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
39
39
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
40
40
41
41
# Generate C++ bindings to register kernels into both PyTorch (for AOT) and
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if(NOT EXECUTORCH_ROOT)
19
19
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
20
20
endif ()
21
21
22
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
22
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
23
23
24
24
if (NOT PYTHON_EXECUTABLE )
25
25
resolve_python_executable ()
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ if(NOT EXECUTORCH_ROOT)
22
22
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
23
23
endif ()
24
24
25
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
25
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
26
26
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
27
27
28
28
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if(NOT EXECUTORCH_ROOT)
19
19
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
20
20
endif ()
21
21
22
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
22
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
23
23
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
24
24
25
25
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ endif()
46
46
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
47
47
set (TORCH_ROOT ${EXECUTORCH_ROOT} /third-party/pytorch )
48
48
49
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
49
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
50
50
51
51
if (NOT PYTHON_EXECUTABLE )
52
52
resolve_python_executable ()
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if(NOT EXECUTORCH_ROOT)
20
20
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../../.. )
21
21
endif ()
22
22
23
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
23
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
24
24
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
25
25
26
26
#
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ endif()
46
46
47
47
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
48
48
49
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
49
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
50
50
51
51
if (NOT PYTHON_EXECUTABLE )
52
52
resolve_python_executable ()
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if(NOT EXECUTORCH_ROOT)
20
20
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../../.. )
21
21
endif ()
22
22
23
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
23
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
24
24
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
25
25
# Let files say "include <executorch/path/to/header.h>".
26
26
set (_common_include_directories ${EXECUTORCH_ROOT} /.. )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if(NOT EXECUTORCH_ROOT)
27
27
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
28
28
endif ()
29
29
30
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
30
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
31
31
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
32
32
33
33
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if(NOT EXECUTORCH_ROOT)
15
15
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
16
16
endif ()
17
17
18
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
18
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
19
19
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
20
20
21
21
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ project(selective_build_example)
21
21
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../.. )
22
22
set (TORCH_ROOT ${EXECUTORCH_ROOT} /third-party/pytorch )
23
23
24
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
24
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
25
25
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
26
26
27
27
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if(NOT EXECUTORCH_ROOT)
21
21
endif ()
22
22
23
23
include (${EXECUTORCH_ROOT} /tools/cmake/Test.cmake )
24
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
24
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
25
25
26
26
set (_common_include_directories ${EXECUTORCH_ROOT} /.. )
27
27
set (_common_compile_options -Wno-deprecated-declarations -fPIC )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ if(NOT ANDROID)
17
17
endif ()
18
18
19
19
set (EXECUTORCH_ROOT "${CMAKE_CURRENT_SOURCE_DIR} /../.." )
20
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
20
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
21
21
set (_common_compile_options -Wno-deprecated-declarations -fPIC )
22
22
set (_common_include_directories ${EXECUTORCH_ROOT} /.. )
23
23
if (NOT ANDROID_PLATFORM )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ endif()
22
22
23
23
set (_common_compile_options -Wno-deprecated-declarations -fPIC )
24
24
25
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
25
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
26
26
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
27
27
28
28
#
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if(NOT EXECUTORCH_ROOT)
20
20
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
21
21
endif ()
22
22
23
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
23
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
24
24
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
25
25
26
26
#
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ list(APPEND _common_compile_options -DET_BUILD_WITH_BLAS)
33
33
# probably need to figure out how to detect compiler flag that suggest we are
34
34
# compiling for avx2 for now punting this to come back
35
35
36
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
36
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
37
37
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
38
38
39
39
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ endif()
23
23
24
24
set (_common_compile_options -Wno-deprecated-declarations )
25
25
26
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
26
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
27
27
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
28
28
29
29
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ endif()
26
26
27
27
set (_common_compile_options -Wno-deprecated-declarations )
28
28
29
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
29
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
30
30
include (${EXECUTORCH_ROOT} /tools/cmake/Codegen.cmake )
31
31
32
32
if (NOT PYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ set(CMAKE_CXX_STANDARD 17)
23
23
24
24
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /.. )
25
25
26
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
26
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
27
27
28
28
# Find prebuilt executorch library
29
29
find_package (executorch CONFIG REQUIRED )
Original file line number Diff line number Diff line change 9
9
10
10
# Selective build. See codegen/tools/gen_oplist.py for how to use these
11
11
# arguments.
12
- include (${EXECUTORCH_ROOT} /build /Utils.cmake )
12
+ include (${EXECUTORCH_ROOT} /tools/cmake /Utils.cmake )
13
13
14
14
function (gen_selected_ops )
15
15
set (arg_names LIB_NAME OPS_SCHEMA_YAML ROOT_OPS INCLUDE_ALL_OPS )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments