fixing compilation for Android

This commit is contained in:
Andrey Pavlenko 2012-04-23 07:10:58 +00:00
parent e4303dc96f
commit 9eded52ce5

View File

@ -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")