2014-05-04 14:37:55 +08:00
|
|
|
{
|
|
|
|
"do_default":{
|
|
|
|
"append_x_engine":{
|
|
|
|
"from":".",
|
|
|
|
"to":"cocos2d"
|
|
|
|
},
|
|
|
|
"project_rename":{
|
|
|
|
"src_project_name":"HelloCpp",
|
|
|
|
"files":[
|
|
|
|
"proj.win32/PROJECT_NAME.vcxproj",
|
|
|
|
"proj.win32/PROJECT_NAME.vcxproj.filters",
|
|
|
|
"proj.win32/PROJECT_NAME.vcxproj.user",
|
|
|
|
"proj.win32/PROJECT_NAME.sln",
|
2014-06-09 16:17:19 +08:00
|
|
|
"proj.ios_mac/PROJECT_NAME.xcodeproj",
|
2014-11-14 16:48:14 +08:00
|
|
|
"proj.win8.1-universal/PROJECT_NAME.sln",
|
|
|
|
"proj.win8.1-universal/App.Shared/PROJECT_NAME.Shared.vcxitems",
|
|
|
|
"proj.win8.1-universal/App.Shared/PROJECT_NAME.Shared.vcxitems.filters",
|
|
|
|
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows_TemporaryKey.pfx",
|
|
|
|
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj",
|
|
|
|
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj.filters",
|
|
|
|
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj",
|
2015-05-29 06:26:28 +08:00
|
|
|
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj.filters",
|
|
|
|
"proj.win10/PROJECT_NAME.sln",
|
|
|
|
"proj.win10/App/PROJECT_NAME.vcxproj",
|
|
|
|
"proj.win10/App/PROJECT_NAME.vcxproj.filters",
|
2016-04-28 09:49:55 +08:00
|
|
|
"proj.win10/App/PROJECT_NAME_TemporaryKey.pfx",
|
|
|
|
"proj.tizen/shared/res/PROJECT_NAME.png"
|
2014-05-04 14:37:55 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_project_name":{
|
|
|
|
"src_project_name":"HelloCpp",
|
|
|
|
"files":[
|
2015-07-14 15:18:06 +08:00
|
|
|
"Classes/AppDelegate.cpp",
|
2014-05-04 14:37:55 +08:00
|
|
|
"proj.win32/PROJECT_NAME.vcxproj",
|
|
|
|
"proj.win32/PROJECT_NAME.vcxproj.filters",
|
|
|
|
"proj.win32/PROJECT_NAME.vcxproj.user",
|
|
|
|
"proj.win32/PROJECT_NAME.sln",
|
|
|
|
"proj.win32/main.cpp",
|
2014-11-14 16:48:14 +08:00
|
|
|
"proj.win8.1-universal/PROJECT_NAME.sln",
|
|
|
|
"proj.win8.1-universal/App.Shared/PROJECT_NAME.Shared.vcxitems",
|
|
|
|
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj",
|
|
|
|
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj.filters",
|
|
|
|
"proj.win8.1-universal/App.Windows/Package.appxmanifest",
|
2015-08-19 11:33:53 +08:00
|
|
|
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj",
|
|
|
|
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj.filters",
|
2014-11-14 16:48:14 +08:00
|
|
|
"proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest",
|
2014-05-04 14:37:55 +08:00
|
|
|
"proj.android/.project",
|
2014-05-08 11:20:25 +08:00
|
|
|
"proj.android/.cproject",
|
2014-05-04 14:37:55 +08:00
|
|
|
"proj.android/AndroidManifest.xml",
|
|
|
|
"proj.android/build.xml",
|
|
|
|
"proj.android/res/values/strings.xml",
|
2015-05-21 18:27:30 +08:00
|
|
|
"proj.android-studio/settings.gradle",
|
2015-09-09 16:08:15 +08:00
|
|
|
"proj.android-studio/app/res/values/strings.xml",
|
2014-05-04 14:37:55 +08:00
|
|
|
"proj.ios_mac/ios/main.m",
|
|
|
|
"proj.ios_mac/ios/Prefix.pch",
|
|
|
|
"proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj",
|
2015-05-29 06:26:28 +08:00
|
|
|
"proj.win10/PROJECT_NAME.sln",
|
|
|
|
"proj.win10/App/PROJECT_NAME.vcxproj",
|
|
|
|
"proj.win10/App/PROJECT_NAME.vcxproj.filters",
|
|
|
|
"proj.win10/App/Package.appxmanifest",
|
2016-04-28 09:49:55 +08:00
|
|
|
"CMakeLists.txt",
|
|
|
|
"proj.tizen/.project",
|
|
|
|
"proj.tizen/tizen-manifest.xml"
|
2014-05-04 14:37:55 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_package_name":{
|
|
|
|
"src_package_name":"org.cocos2dx.hellocpp",
|
|
|
|
"files":[
|
2015-05-21 18:27:30 +08:00
|
|
|
"proj.android/AndroidManifest.xml",
|
2015-05-25 16:53:36 +08:00
|
|
|
"proj.android-studio/app/build.gradle",
|
2016-04-28 09:49:55 +08:00
|
|
|
"proj.android-studio/app/AndroidManifest.xml",
|
|
|
|
"proj.tizen/tizen-manifest.xml"
|
2014-05-04 14:37:55 +08:00
|
|
|
]
|
2014-07-08 10:22:08 +08:00
|
|
|
},
|
|
|
|
"project_replace_mac_bundleid": {
|
|
|
|
"src_bundle_id": "org.cocos2dx.hellocpp",
|
|
|
|
"files": [
|
|
|
|
"proj.ios_mac/mac/Info.plist"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_ios_bundleid": {
|
|
|
|
"src_bundle_id": "org.cocos2dx.hellocpp",
|
|
|
|
"files": [
|
|
|
|
"proj.ios_mac/ios/Info.plist"
|
|
|
|
]
|
2014-05-04 14:37:55 +08:00
|
|
|
}
|
2015-07-14 15:18:06 +08:00
|
|
|
},
|
|
|
|
"change_orientation": {
|
|
|
|
"modify_files": [
|
|
|
|
{
|
|
|
|
"file_path": "Classes/AppDelegate.cpp",
|
|
|
|
"pattern": "static\\s+cocos2d\\:\\:Size\\s+([a-zA-Z_\\d]+)\\s*=\\s*cocos2d\\:\\:Size\\(\\s*(\\d+),\\s*(\\d+)\\)",
|
|
|
|
"replace_string": "static cocos2d::Size \\1 = cocos2d::Size(\\3, \\2)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.ios_mac/ios/Info.plist",
|
|
|
|
"pattern": "UIInterfaceOrientationLandscapeRight",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortrait"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.ios_mac/ios/Info.plist",
|
|
|
|
"pattern": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.android/AndroidManifest.xml",
|
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.android-studio/app/AndroidManifest.xml",
|
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.win10/App/Package.appxmanifest",
|
|
|
|
"pattern": "Rotation Preference=\\\"landscape",
|
|
|
|
"replace_string": "Rotation Preference=\"portrait"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.win8.1-universal/App.Windows/Package.appxmanifest",
|
|
|
|
"pattern": "Rotation Preference=\\\"landscape",
|
|
|
|
"replace_string": "Rotation Preference=\"portrait"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest",
|
|
|
|
"pattern": "Rotation Preference=\\\"landscape",
|
|
|
|
"replace_string": "Rotation Preference=\"portrait"
|
|
|
|
}
|
|
|
|
]
|
2014-05-04 14:37:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|