mirror of https://github.com/axmolengine/axmol.git
Updates tools/travis-scripts/generate-template-files.py.
This commit is contained in:
parent
67e3a25582
commit
c4752b260b
|
@ -43,7 +43,7 @@ class CocosFileList:
|
||||||
self.fileList_com=[]
|
self.fileList_com=[]
|
||||||
self.fileList_lua=[]
|
self.fileList_lua=[]
|
||||||
|
|
||||||
self.luaPath ="cocos/scripting/lua-bindings"
|
self.luaPath = ["cocos/scripting/lua-bindings", "external/lua"]
|
||||||
|
|
||||||
def readIngoreFile(self, fileName):
|
def readIngoreFile(self, fileName):
|
||||||
"""
|
"""
|
||||||
|
@ -88,7 +88,12 @@ class CocosFileList:
|
||||||
self.__bInclude(item) or
|
self.__bInclude(item) or
|
||||||
self.__bInclude("%s/" %item)
|
self.__bInclude("%s/" %item)
|
||||||
):
|
):
|
||||||
if relativePath.upper().find(self.luaPath.upper())==0:
|
foundLuaModule = False
|
||||||
|
for luaPath in self.luaPath:
|
||||||
|
if relativePath.upper().find(luaPath.upper()) == 0:
|
||||||
|
foundLuaModule = True
|
||||||
|
break
|
||||||
|
if foundLuaModule:
|
||||||
self.fileList_lua.append("%s/" %relativePath)
|
self.fileList_lua.append("%s/" %relativePath)
|
||||||
else:
|
else:
|
||||||
self.fileList_com.append("%s/" %relativePath)
|
self.fileList_com.append("%s/" %relativePath)
|
||||||
|
@ -112,7 +117,12 @@ class CocosFileList:
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
# print(relativePath)
|
# print(relativePath)
|
||||||
if relativePath.upper().find(self.luaPath.upper())==0:
|
foundLuaModule = False
|
||||||
|
for luaPath in self.luaPath:
|
||||||
|
if relativePath.upper().find(luaPath.upper()) == 0:
|
||||||
|
foundLuaModule = True
|
||||||
|
break
|
||||||
|
if foundLuaModule:
|
||||||
self.fileList_lua.append(relativePath)
|
self.fileList_lua.append(relativePath)
|
||||||
else:
|
else:
|
||||||
self.fileList_com.append(relativePath)
|
self.fileList_com.append(relativePath)
|
||||||
|
|
Loading…
Reference in New Issue