From 613bb8912030ebc67d0d4ce49300b3d89145e9db Mon Sep 17 00:00:00 2001 From: Toru Matsuoka Date: Mon, 14 Oct 2013 20:19:21 +0900 Subject: [PATCH 1/5] Make "rename" setting usable. --- tools/project-creator/create_project.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/project-creator/create_project.py b/tools/project-creator/create_project.py index 966baaeaff..e55d7aa081 100755 --- a/tools/project-creator/create_project.py +++ b/tools/project-creator/create_project.py @@ -111,6 +111,14 @@ def processPlatformProjects(context, platform): java_package_path = os.path.join(*dst_pkg) + # rename files and folders + for item in data["rename"]: + tmp = item.replace("PACKAGE_PATH", java_package_path) + src = tmp.replace("PROJECT_NAME", context["src_project_name"]) + dst = tmp.replace("PROJECT_NAME", context["dst_project_name"]) + if os.path.exists(os.path.join(proj_path, src)): + os.rename(os.path.join(proj_path, src), os.path.join(proj_path, dst)) + # remove useless files and folders for item in data["remove"]: dst = item.replace("PROJECT_NAME", context["dst_project_name"]) From de9e831e350f9625e33c08092384756058716aec Mon Sep 17 00:00:00 2001 From: Toru Matsuoka Date: Mon, 14 Oct 2013 20:24:28 +0900 Subject: [PATCH 2/5] Fix definition of platform for ios and mac. Remove unnecessary files --- tools/project-creator/create_project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/project-creator/create_project.py b/tools/project-creator/create_project.py index e55d7aa081..be6e38babc 100755 --- a/tools/project-creator/create_project.py +++ b/tools/project-creator/create_project.py @@ -6,9 +6,9 @@ # define global variables PLATFORMS = { - "cpp" : ["ios", "android", "win32", "mac", "linux"], - "lua" : ["ios", "android", "win32", "mac", "linux"], - "javascript" : ["ios", "android", "win32", "mac"] + "cpp" : ["ios_mac", "android", "win32", "linux"], + "lua" : ["ios_mac", "android", "win32", "linux"], + "javascript" : ["ios_mac", "android", "win32"] }