Lines Matching refs:dir

11 # directories (build/zephyr, zephyr base, west top dir and application source
12 # dir), to avoid leaking any information about the host system.
42 # relative_dir(<dir> <relative_out> <bindir_out>)
49 function(relative_dir dir relative_out bindir_out)
50 cmake_path(IS_PREFIX PROJECT_BINARY_DIR ${dir} NORMALIZE to_prj_bindir)
51 cmake_path(IS_PREFIX ZEPHYR_BASE ${dir} NORMALIZE to_zephyr_base)
55 cmake_path(IS_PREFIX WEST_TOPDIR ${dir} NORMALIZE to_west_topdir)
57 cmake_path(IS_PREFIX APPLICATION_SOURCE_DIR ${dir} NORMALIZE to_app_srcdir)
59 # Overall idea is to place included files in the destination dir based on the source:
61 # <install-dir>/include/zephyr/include/generated, files coming from zephyr base at
62 # <install-dir>/include/zephyr/include, files from west top dir (for instance, hal modules),
63 # at <install-dir>/include and application ones at <install-dir>/include/<application-dir>.
65 # at <install-dir>/include/<full-path-to-external-include>, so we avoid any external lib
68 cmake_path(RELATIVE_PATH dir BASE_DIRECTORY ${PROJECT_BINARY_DIR} OUTPUT_VARIABLE dir_tmp)
71 cmake_path(RELATIVE_PATH dir BASE_DIRECTORY ${ZEPHYR_BASE} OUTPUT_VARIABLE dir_tmp)
74 cmake_path(RELATIVE_PATH dir BASE_DIRECTORY ${WEST_TOPDIR} OUTPUT_VARIABLE dir_tmp)
78 … cmake_path(RELATIVE_PATH dir BASE_DIRECTORY ${APPLICATION_SOURCE_DIR} OUTPUT_VARIABLE dir_tmp)
81 set(dest ${llext_edk_inc}/${dir})
127 foreach(dir ${include_dirs})
128 if (NOT EXISTS ${dir})
132 relative_dir(${dir} dest bindir)
137 file(COPY ${dir} DESTINATION ${dest_p} FILES_MATCHING PATTERN "*.h")