Skip to content

Commit

Permalink
add cocos framework build on linux platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
zilongshanren committed Jul 14, 2015
1 parent 616efbf commit 97168fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tools/framework-compile/bin/gen_cocos_libs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python
#-*- coding: UTF-8 -*-
#-*- coding: utf-8 -*-

import os
import sys
Expand Down Expand Up @@ -321,6 +321,8 @@ def compile_android(self):
sys_folder_name = "windows%s" % bit_str
elif utils_cocos.os_is_mac():
sys_folder_name = "darwin-x86_64"
elif utils_cocos.os_is_linux:
sys_folder_name = "linux-x86_64"

# set strip execute file name
if utils_cocos.os_is_win32():
Expand Down
5 changes: 4 additions & 1 deletion tools/framework-compile/bin/utils_cocos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python
#-*- coding: UTF-8 -*-
#-*- coding: utf-8 -*-

import os
import sys
Expand All @@ -19,6 +19,9 @@ def is_32bit_windows():
def os_is_mac():
return sys.platform == 'darwin'

def os_is_linux():
return sys.platform == "linux" or sys.platform == "linux2"

def convert_to_python_path(path):
return path.replace("\\","/")

Expand Down

0 comments on commit 97168fa

Please sign in to comment.