Skip to content

Commit bfd6ce4

Browse files
Merge pull request #2 from hwjfordev/main
android build error on windows platform
2 parents cb5728c + 04cbbba commit bfd6ce4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

android/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ project(FastOpencv)
44
set (CMAKE_VERBOSE_MAKEFILE ON)
55
set (CMAKE_CXX_STANDARD 20)
66

7+
file(TO_CMAKE_PATH "${NODE_MODULES_DIR}" NODE_MODULES_DIR)
8+
79
find_package(ReactAndroid REQUIRED CONFIG)
810
find_package(fbjni REQUIRED CONFIG)
911
find_package(OpenCV REQUIRED COMPONENTS OpenCV::opencv_java4)
1012

1113
add_library(react-native-fast-opencv
1214
SHARED
13-
../node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp
15+
"${NODE_MODULES_DIR}/react-native/ReactCommon/jsi/jsi/jsi.cpp"
1416
../cpp/react-native-fast-opencv.cpp
1517
../cpp/react-native-fast-opencv.h
1618
cpp-adapter.cpp

src/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ export type * from './objects/Objects';
6666
export * from './constants/ColorConversionsCodes';
6767
export * from './constants/DataTypes';
6868
export * from './constants/ImageProcessing';
69+
export * from './constants/Core';

0 commit comments

Comments
 (0)