Skip to content

Commit 304c93a

Browse files
committed
Merge pull request #324 from GuoLunHao/v3_gen-templates
fix link error in prebuilt project templates ,disable CODE_IDE_DEBUG_SUPPORT in prebuilt project templates
2 parents 02a02b1 + b06bd29 commit 304c93a

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

plugins/plugin_generate/configs/gen_templates_config.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,27 @@
168168
{
169169
"from": "cocos/platform/android/java/libs",
170170
"to": "js-template-binary/frameworks/runtime-src/proj.android/jars"
171+
},
172+
{
173+
"from": "cocos/2d/",
174+
"to": "cpp-template-binary/proj.win32/",
175+
"include": [
176+
"cocos2dx.props"
177+
]
178+
},
179+
{
180+
"from": "cocos/2d/",
181+
"to": "lua-template-binary/frameworks/runtime-src/proj.win32/",
182+
"include": [
183+
"cocos2dx.props"
184+
]
185+
},
186+
{
187+
"from": "cocos/2d/",
188+
"to": "js-template-binary/frameworks/runtime-src/proj.win32/",
189+
"include": [
190+
"cocos2dx.props"
191+
]
171192
}
172193
],
173194
"copy_from_bin_templates" : [
@@ -253,6 +274,31 @@
253274
"file_path": "js-template-binary/project.json",
254275
"pattern": "\\\"modules\\\"[ \\t]*:[ \\t]*\\[(.*)\\]",
255276
"replace_string": "\"modules\" : [\\1, \"cocostudio\"]"
277+
},
278+
{
279+
"file_path": "js-template-binary/frameworks/runtime-src/Classes/ide-support/CodeIDESupport.h",
280+
"pattern": "#define CC_CODE_IDE_DEBUG_SUPPORT 1",
281+
"replace_string": "#define CC_CODE_IDE_DEBUG_SUPPORT 0"
282+
},
283+
{
284+
"file_path": "lua-template-binary/frameworks/runtime-src/Classes/ide-support/CodeIDESupport.h",
285+
"pattern": "#define CC_CODE_IDE_DEBUG_SUPPORT 1",
286+
"replace_string": "#define CC_CODE_IDE_DEBUG_SUPPORT 0"
287+
},
288+
{
289+
"file_path": "cpp-template-binary/proj.win32/cocos2dx.props",
290+
"pattern": "(libbox2d\\.lib;)|(libSpine\\.lib;)",
291+
"replace_string": ""
292+
},
293+
{
294+
"file_path": "lua-template-binary/frameworks/runtime-src/proj.win32/cocos2dx.props",
295+
"pattern": "(libbox2d\\.lib;)|(libSpine\\.lib;)",
296+
"replace_string": ""
297+
},
298+
{
299+
"file_path": "js-template-binary/frameworks/runtime-src/proj.win32/cocos2dx.props",
300+
"pattern": "(libbox2d\\.lib;)|(libSpine\\.lib;)",
301+
"replace_string": ""
256302
}
257303
],
258304
"build_cfg_files" : {

plugins/plugin_generate/modify_template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ def modify_vs_proj(self, proj_file_path):
217217
file_content = file_content.replace(str, install_path)
218218
file_content = file_content.replace('%s\\' % install_path, install_path)
219219

220+
file_content = file_content.replace("%scocos\\2d\\cocos2dx.props" % install_path, "cocos2dx.props")
221+
220222
f = open(proj_file_path, "w")
221223
f.write(file_content)
222224
f.close()

0 commit comments

Comments
 (0)