mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 04:36:36 +08:00
fixing compilation for Android
This commit is contained in:
parent
e4303dc96f
commit
9eded52ce5
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user