Commit 9eded52c authored by Andrey Pavlenko's avatar Andrey Pavlenko

fixing compilation for Android

parent e4303dc9
......@@ -761,6 +761,8 @@ public class %(jc)s {
print "Skipped property: [%s]" % name, p
self.add_class_code_stream(name, classinfo.base)
if classinfo.base:
self.get_imports(name, classinfo.base)
def add_const(self, decl): # [ "const cname", val, [], [] ]
......@@ -932,7 +934,9 @@ extern "C" {
j_type = ''
if ctype in type_dict:
j_type = type_dict[ctype]['j_type']
if j_type in ( "CvType", "Mat", "Point", "Point3", "Range", "Rect", "RotatedRect", "Scalar", "Size", "TermCriteria" ):
elif ctype in ("Algorithm"):
j_type = ctype
if j_type in ( "CvType", "Mat", "Point", "Point3", "Range", "Rect", "RotatedRect", "Scalar", "Size", "TermCriteria", "Algorithm" ):
imports.add("org.opencv.core." + j_type)
if j_type == 'String':
imports.add("java.lang.String")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment