Skip to content

Commit e87c1af

Browse files
authored
Merge pull request #224 from rainyl/support-android-ndk-home
support ANDROID_NDK_HOME in conanfile
2 parents 2936756 + ddbf1dd commit e87c1af

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)