mirror of https://github.com/axmolengine/axmol.git
tolua mutli search paths support
This commit is contained in:
parent
a7e03fa49f
commit
858d600a16
|
@ -1268,7 +1268,8 @@ class Generator(object):
|
||||||
def __init__(self, opts):
|
def __init__(self, opts):
|
||||||
self.index = cindex.Index.create()
|
self.index = cindex.Index.create()
|
||||||
self.outdir = opts['outdir']
|
self.outdir = opts['outdir']
|
||||||
self.search_path = opts['search_path']
|
print('search_paths=' + opts['search_paths'])
|
||||||
|
self.search_paths = opts['search_paths'].split(';')
|
||||||
self.prefix = opts['prefix']
|
self.prefix = opts['prefix']
|
||||||
self.headers = opts['headers'].split(' ')
|
self.headers = opts['headers'].split(' ')
|
||||||
self.classes = opts['classes']
|
self.classes = opts['classes']
|
||||||
|
@ -1855,7 +1856,7 @@ def main():
|
||||||
'clang_args': (config.get(s, 'extra_arguments', 0, dict(userconfig.items('DEFAULT'))) or "").split(" "),
|
'clang_args': (config.get(s, 'extra_arguments', 0, dict(userconfig.items('DEFAULT'))) or "").split(" "),
|
||||||
'target': os.path.join(workingdir, "targets", t),
|
'target': os.path.join(workingdir, "targets", t),
|
||||||
'outdir': outdir,
|
'outdir': outdir,
|
||||||
'search_path': os.path.abspath(os.path.join(userconfig.get('DEFAULT', 'cocosdir'), 'cocos')),
|
'search_paths': os.path.abspath(os.path.join(userconfig.get('DEFAULT', 'cocosdir'), 'cocos')) + ";" + os.path.abspath(os.path.join(userconfig.get('DEFAULT', 'cocosdir'), 'extensions')),
|
||||||
'remove_prefix': config.get(s, 'remove_prefix'),
|
'remove_prefix': config.get(s, 'remove_prefix'),
|
||||||
'target_ns': config.get(s, 'target_namespace'),
|
'target_ns': config.get(s, 'target_namespace'),
|
||||||
'cpp_ns': config.get(s, 'cpp_namespace').split(' ') if config.has_option(s, 'cpp_namespace') else None,
|
'cpp_ns': config.get(s, 'cpp_namespace').split(' ') if config.has_option(s, 'cpp_namespace') else None,
|
||||||
|
|
|
@ -23,7 +23,7 @@ cxxgenerator_headers =
|
||||||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s %(extra_flags)s
|
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s %(extra_flags)s
|
||||||
|
|
||||||
# what headers to parse
|
# what headers to parse
|
||||||
headers = %(cocosdir)s/cocos/cocos2d.h %(cocosdir)s/cocos/2d/CCProtectedNode.h %(cocosdir)s/cocos/base/CCAsyncTaskPool.h %(cocosdir)s/extensions/scripting/lua-bindings/manual/CCComponentLua.h %(cocosdir)s/cocos/renderer/CCRenderer.h %(cocosdir)s/cocos/renderer/CCPipelineDescriptor.h
|
headers = %(cocosdir)s/cocos/cocos2d.h %(cocosdir)s/cocos/2d/CCProtectedNode.h %(cocosdir)s/cocos/base/CCAsyncTaskPool.h %(cocosdir)s/extensions/scripting/lua-bindings/manual/CCComponentLua.h %(cocosdir)s/cocos/renderer/CCRenderer.h %(cocosdir)s/cocos/renderer/CCPipelineDescriptor.h %(cocosdir)s/cocos/renderer/backend/RenderTarget.h
|
||||||
|
|
||||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||||
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
||||||
|
@ -107,7 +107,7 @@ skip = Node::[setGLServerState description getUserObject .*UserData getGLServerS
|
||||||
Camera::[getEyeXYZ getCenterXYZ getUpXYZ],
|
Camera::[getEyeXYZ getCenterXYZ getUpXYZ],
|
||||||
ccFontDefinition::[*],
|
ccFontDefinition::[*],
|
||||||
Ref::[autorelease isEqual acceptVisitor update],
|
Ref::[autorelease isEqual acceptVisitor update],
|
||||||
UserDefault::[getInstance (s|g)etDataForKey],
|
UserDefault::[getInstance (s|g)etDataForKey encrypt],
|
||||||
GLView::[setTouchDelegate getAllTouches],
|
GLView::[setTouchDelegate getAllTouches],
|
||||||
GLViewImpl::[end swapBuffers],
|
GLViewImpl::[end swapBuffers],
|
||||||
NewTextureAtlas::[*],
|
NewTextureAtlas::[*],
|
||||||
|
|
Loading…
Reference in New Issue