2015-04-15 17:49:33 +08:00
|
|
|
{
|
|
|
|
"do_default":{
|
|
|
|
"exclude_from_template":[
|
|
|
|
"frameworks/runtime-src"
|
2015-07-14 18:07:17 +08:00
|
|
|
],
|
|
|
|
"append_dir": [
|
|
|
|
{
|
|
|
|
"from": "web",
|
|
|
|
"to": "frameworks/cocos2d-html5"
|
|
|
|
}
|
2015-04-15 17:49:33 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"do_add_native_support":{
|
|
|
|
"append_from_template":{
|
|
|
|
"from":"frameworks/runtime-src",
|
|
|
|
"to":"frameworks/runtime-src",
|
|
|
|
"exclude":[
|
|
|
|
"proj.android/bin",
|
|
|
|
"proj.android/assets",
|
|
|
|
"proj.android/libs",
|
|
|
|
"proj.ios_mac/HelloJavascript.xcodeproj/project.xcworkspace",
|
|
|
|
"proj.ios_mac/HelloJavascript.xcodeproj/xcuserdata",
|
|
|
|
"proj.win32/Debug.win32",
|
|
|
|
"proj.win32/Release.win32",
|
2017-02-08 09:46:47 +08:00
|
|
|
"proj.win32/HelloJavascript.sdf"
|
2015-04-15 17:49:33 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"append_x_engine":{
|
|
|
|
"from":".",
|
|
|
|
"to":"frameworks/cocos2d-x"
|
|
|
|
},
|
|
|
|
"project_rename":{
|
|
|
|
"src_project_name":"HelloJavascript",
|
|
|
|
"files":[
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.sln",
|
2017-02-08 09:46:47 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj"
|
2015-04-15 17:49:33 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_project_name":{
|
|
|
|
"src_project_name":"HelloJavascript",
|
|
|
|
"files":[
|
|
|
|
"manifest.webapp",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user",
|
|
|
|
"frameworks/runtime-src/proj.win32/PROJECT_NAME.sln",
|
|
|
|
"frameworks/runtime-src/proj.win32/main.cpp",
|
2018-01-11 10:06:42 +08:00
|
|
|
"frameworks/runtime-src/proj.android/settings.gradle",
|
|
|
|
"frameworks/runtime-src/proj.android/app/res/values/strings.xml",
|
2015-04-15 17:49:33 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/main.m",
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/Prefix.pch",
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj",
|
|
|
|
"frameworks/runtime-src/Classes/AppDelegate.cpp"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_package_name":{
|
|
|
|
"src_package_name":"org.cocos2dx.hellojavascript",
|
|
|
|
"files":[
|
2018-01-11 10:06:42 +08:00
|
|
|
"frameworks/runtime-src/proj.android/app/build.gradle",
|
|
|
|
"frameworks/runtime-src/proj.android/app/AndroidManifest.xml"
|
2015-04-15 17:49:33 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_mac_bundleid":{
|
|
|
|
"src_bundle_id":"org.cocos2dx.hellojavascript",
|
|
|
|
"files":[
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/mac/Info.plist"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_ios_bundleid":{
|
|
|
|
"src_bundle_id":"org.cocos2dx.hellojavascript",
|
|
|
|
"files":[
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/Info.plist"
|
|
|
|
]
|
|
|
|
}
|
2015-07-16 18:28:39 +08:00
|
|
|
},
|
|
|
|
"change_orientation": {
|
|
|
|
"modify_files": [
|
|
|
|
{
|
|
|
|
"file_path": "frameworks/runtime-src/Classes/AppDelegate.cpp",
|
|
|
|
"pattern": "GLViewImpl::createWithRect\\((.*),\\s*Rect\\(\\s*(\\d+),\\s*(\\d+),\\s*(\\d+),\\s*(\\d+)\\)\\)",
|
|
|
|
"replace_string": "GLViewImpl::createWithRect(\\1, Rect(\\2, \\3, \\5, \\4))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "main.js",
|
|
|
|
"pattern": "setDesignResolutionSize\\(\\s*(\\d+),\\s*(\\d+),(.*)\\)",
|
|
|
|
"replace_string": "setDesignResolutionSize(\\2, \\1,\\3)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "frameworks/runtime-src/proj.ios_mac/ios/Info.plist",
|
|
|
|
"pattern": "UIInterfaceOrientationLandscapeRight",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortrait"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "frameworks/runtime-src/proj.ios_mac/ios/Info.plist",
|
|
|
|
"pattern": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
|
|
|
|
},
|
|
|
|
{
|
2018-01-11 10:06:42 +08:00
|
|
|
"file_path": "frameworks/runtime-src/proj.android/app/AndroidManifest.xml",
|
2015-07-16 18:28:39 +08:00
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2015-04-15 17:49:33 +08:00
|
|
|
}
|
|
|
|
|