已合并
refactor:修改cmakelist编译脚本存在的潜在风险 #66
jiang_kui创建于 3月19日
refactor:修改cmakelist编译脚本存在的潜在风险 #66
已合并
jiang_kui创建于 3月19日
共 1 个文件变更+2-2
@@ -10,12 +10,12 @@ set(USE_COMMON_INTERFACE_FROM_RNSVG OFF)
10 10 
11# 用工程级的node_modules目录判断是否安装了svg11# 用工程级的node_modules目录判断是否安装了svg
12set(rnsvg_oh_node_module_dir_candidate12set(rnsvg_oh_node_module_dir_candidate
13- "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../../node_modules/@react-native-ohos/react-native-svg"13+ "${NODE_MODULES}/@react-native-ohos/react-native-svg"
14)14)
15 15 
16# svg的cpp目录用安装后har目录,这个目录已经是oh_module里面了,无论将来依赖har包是在鸿蒙根目录还是应用模块里,都能找的到16# svg的cpp目录用安装后har目录,这个目录已经是oh_module里面了,无论将来依赖har包是在鸿蒙根目录还是应用模块里,都能找的到
17set(rnsvg_cpp_include_dir_candidate17set(rnsvg_cpp_include_dir_candidate
18- "${CMAKE_CURRENT_SOURCE_DIR}/../../../../react-native-svg/src/main/cpp"18+ "${OH_MODULES}/@react-native-ohos/react-native-svg/src/main/cpp"
19)19)
20set(rnsvg_oh_node_module_dir "")20set(rnsvg_oh_node_module_dir "")
21set(rnsvg_oh_node_package_json "")21set(rnsvg_oh_node_package_json "")