axmol/templates/cpp-template-default/axproj-template.json

74 lines
2.5 KiB
JSON
Raw Normal View History

2019-11-23 20:27:39 +08:00
{
"do_default":{
"project_rename":{
"src_project_name":"HelloCpp",
"files":[
]
},
"project_replace_project_name":{
"src_project_name":"HelloCpp",
"files":[
"Classes/AppDelegate.cpp",
"proj.win32/main.cpp",
"proj.android/settings.gradle",
"proj.android/app/res/values/strings.xml",
"proj.ios_mac/ios/main.m",
"proj.ios_mac/ios/Prefix.pch",
"CMakeLists.txt"
]
},
"project_replace_package_name":{
2022-08-08 18:02:17 +08:00
"src_package_name":"org.axys1.hellocpp",
2019-11-23 20:27:39 +08:00
"files":[
"proj.android/app/build.gradle",
"proj.android/app/AndroidManifest.xml"
]
},
"project_replace_so_name": {
"src_so_name": "HelloCpp",
"files": [
"proj.android/app/AndroidManifest.xml"
]
},
2019-11-23 20:27:39 +08:00
"project_replace_mac_bundleid": {
2022-08-08 18:02:17 +08:00
"src_bundle_id": "org.axys1.hellocpp",
2019-11-23 20:27:39 +08:00
"files": [
"proj.ios_mac/mac/Info.plist"
]
},
"project_replace_ios_bundleid": {
2022-08-08 18:02:17 +08:00
"src_bundle_id": "org.axys1.hellocpp",
2019-11-23 20:27:39 +08:00
"files": [
"proj.ios_mac/ios/targets/ios/Info.plist",
"proj.ios_mac/ios/targets/tvos/Info.plist"
2019-11-23 20:27:39 +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/targets/ios/Info.plist",
2019-11-23 20:27:39 +08:00
"pattern": "UIInterfaceOrientationLandscapeRight",
"replace_string": "UIInterfaceOrientationPortrait"
},
{
"file_path": "proj.ios_mac/ios/targets/ios/Info.plist",
2019-11-23 20:27:39 +08:00
"pattern": "UIInterfaceOrientationLandscapeLeft",
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
},
{
"file_path": "proj.android/app/AndroidManifest.xml",
"pattern": "android:screenOrientation=\\\".*\\\"",
"replace_string": "android:screenOrientation=\"portrait\""
}
]
}
}