Skip to content

Commit ddbf1dd

Browse files
committed
support ANDROID_NDK_HOME in conanfile
1 parent 2936756 commit ddbf1dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conanfile.py

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def build_requirements(self):
104104
ndk_path = ndk_path or os.environ.get("ANDROID_NDK_ROOT", None)
105105
if ndk_path is None:
106106
self.tool_requires("android-ndk/r26d")
107+
else:
108+
self.conf.define("tools.android:ndk_path", ndk_path)
107109

108110
def layout(self):
109111
# self.build_folder: build/{os}/{arch}/opencv

0 commit comments

Comments
 (0)