mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Added KleidiCV check for Android SDK release builds.
This commit is contained in:
parent
325e59bd4c
commit
9241e0a9f6
|
|
@ -139,6 +139,8 @@ class ABI:
|
|||
return "%s (%s)" % (self.name, self.toolchain)
|
||||
def haveIPP(self):
|
||||
return self.name == "x86" or self.name == "x86_64"
|
||||
def haveKleidiCV(self):
|
||||
return self.name == "arm64-v8a"
|
||||
|
||||
#===================================================================================================
|
||||
|
||||
|
|
@ -396,7 +398,7 @@ def check_cmake_flag_enabled(cmake_file, flag_name, strict=True):
|
|||
for line in file:
|
||||
if line.strip().startswith(f"{flag_name}="):
|
||||
value = line.strip().split('=')[1]
|
||||
if value == '1':
|
||||
if value == '1' or value == 'ON':
|
||||
print(f"{flag_name}=1 found. Support is enabled.")
|
||||
return
|
||||
else:
|
||||
|
|
@ -525,8 +527,12 @@ if __name__ == "__main__":
|
|||
log.info("Checking HAVE_IPP for ABI: %s", abi.name)
|
||||
check_cmake_flag_enabled(os.path.join(builder.libdest,"CMakeVars.txt"), "HAVE_IPP", strict=args.strict_dependencies)
|
||||
|
||||
builder.gather_results()
|
||||
#Check HAVE_KLEIDICV for armv8
|
||||
if abi.haveKleidiCV():
|
||||
log.info("Checking HAVE_KLEIDICV for ABI: %s", abi.name)
|
||||
check_cmake_flag_enabled(os.path.join(builder.libdest,"CMakeVars.txt"), "HAVE_KLEIDICV", strict=args.strict_dependencies)
|
||||
|
||||
builder.gather_results()
|
||||
|
||||
if args.build_doc:
|
||||
builder.build_javadoc()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user