mirror of https://github.com/axmolengine/axmol.git
Update cocos2dx files.
This commit is contained in:
parent
75e24a1aea
commit
2c7bd7ec35
File diff suppressed because it is too large
Load Diff
|
@ -42,8 +42,10 @@ class CocosFileList:
|
|||
self.rootDir = ""
|
||||
self.fileList_com=[]
|
||||
self.fileList_lua=[]
|
||||
self.fileList_js=[]
|
||||
|
||||
self.luaPath = ["cocos/scripting/lua-bindings", "external/lua", "tools/bindings-generator", "tools/tolua"]
|
||||
self.jsPath = ["cocos/scripting/js-bindings", "external/spidermonkey", "tools/bindings-generator", "tools/tojs", "web"]
|
||||
|
||||
def readIngoreFile(self, fileName):
|
||||
"""
|
||||
|
@ -93,8 +95,17 @@ class CocosFileList:
|
|||
if relativePath.upper().find(luaPath.upper()) == 0:
|
||||
foundLuaModule = True
|
||||
break
|
||||
|
||||
foundJSModule = False
|
||||
for jsPath in self.jsPath:
|
||||
if relativePath.upper().find(jsPath.upper()) == 0:
|
||||
foundJSModule = True
|
||||
break
|
||||
|
||||
if foundLuaModule:
|
||||
self.fileList_lua.append("%s/" %relativePath)
|
||||
elif foundJSModule:
|
||||
self.fileList_js.append("%s/" %relativePath)
|
||||
else:
|
||||
self.fileList_com.append("%s/" %relativePath)
|
||||
self.__parseFileList(path)
|
||||
|
@ -123,8 +134,17 @@ class CocosFileList:
|
|||
if relativePath.upper().find(luaPath.upper()) == 0:
|
||||
foundLuaModule = True
|
||||
break
|
||||
|
||||
foundJSModule = False
|
||||
for jsPath in self.jsPath:
|
||||
if relativePath.upper().find(jsPath.upper()) == 0:
|
||||
foundJSModule = True
|
||||
break
|
||||
|
||||
if foundLuaModule:
|
||||
self.fileList_lua.append(relativePath)
|
||||
elif foundJSModule:
|
||||
self.fileList_js.append(relativePath)
|
||||
else:
|
||||
self.fileList_com.append(relativePath)
|
||||
|
||||
|
@ -151,7 +171,8 @@ class CocosFileList:
|
|||
f = open(fileName,"w")
|
||||
self.fileList_com.sort()
|
||||
self.fileList_lua.sort()
|
||||
content ={'common':self.fileList_com,'lua':self.fileList_lua}
|
||||
self.fileList_js.sort()
|
||||
content ={'common':self.fileList_com,'lua':self.fileList_lua,'js':self.fileList_js}
|
||||
json.dump(content,f,sort_keys=True,indent=4)
|
||||
f.close()
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue