{ "do_default":{ "exclude_from_template": [ "res-landscape", "res-portrait" ], "append_from_template": { "from": "res-landscape", "to": "" }, "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", "proj.ios_mac/PROJECT_NAME.xcodeproj", "PROJECT_NAME.ccs", "PROJECT_NAME.cfg", "PROJECT_NAME.udf" ] }, "project_replace_project_name":{ "src_project_name":"HelloCpp", "files":[ "Classes/AppDelegate.cpp", "proj.win32/PROJECT_NAME.vcxproj", "proj.win32/PROJECT_NAME.vcxproj.filters", "proj.win32/PROJECT_NAME.vcxproj.user", "proj.win32/PROJECT_NAME.sln", "PROJECT_NAME.ccs", "proj.win32/main.cpp", "proj.android/.project", "proj.android/.cproject", "proj.android/AndroidManifest.xml", "proj.android/build.xml", "proj.android/res/values/strings.xml", "proj.ios_mac/ios/main.m", "proj.ios_mac/ios/Prefix.pch", "proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj" ] }, "project_replace_package_name":{ "src_package_name":"org.cocos2dx.hellocpp", "files":[ "proj.android/AndroidManifest.xml" ] }, "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" ] } }, "change_orientation": { "append_from_template": { "from": "res-portrait", "to": "" }, "modify_files": [ { "file_path": "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": "Classes/AppDelegate.cpp", "pattern": "setDesignResolutionSize\\(\\s*(\\d+),\\s*(\\d+),(.*)\\)", "replace_string": "setDesignResolutionSize(\\2, \\1,\\3)" }, { "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\"" } ], "project_rename":{ "src_project_name":"HelloCpp", "files":[ "PROJECT_NAME.ccs", "PROJECT_NAME.cfg", "PROJECT_NAME.udf" ] }, "project_replace_project_name":{ "src_project_name":"HelloCpp", "files":[ "PROJECT_NAME.ccs" ] } } }