2019-11-23 20:27:39 +08:00
|
|
|
{
|
|
|
|
"do_default": {
|
|
|
|
"exclude_from_template": [
|
|
|
|
"frameworks/runtime-src",
|
|
|
|
"runtime/config.json",
|
|
|
|
"runtime/version.json"
|
|
|
|
],
|
|
|
|
"project_replace_project_name": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"files": [
|
|
|
|
"config.json",
|
|
|
|
".project"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"append_dir": [
|
|
|
|
{
|
2020-10-19 18:33:10 +08:00
|
|
|
"from": "extensions/scripting/lua-bindings/script",
|
2019-11-23 20:27:39 +08:00
|
|
|
"to": "src/cocos",
|
|
|
|
"exclude": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "templates/lua-template-default/src",
|
|
|
|
"to": "src",
|
|
|
|
"exclude": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "templates/lua-template-default/res",
|
|
|
|
"to": "res",
|
|
|
|
"exclude": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"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.win32/Debug.win32",
|
|
|
|
"proj.win32/Release.win32",
|
|
|
|
"proj.win32/HelloLua.sdf"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"append_dir": [
|
|
|
|
{
|
2020-10-19 18:33:10 +08:00
|
|
|
"from": "extensions/scripting/lua-bindings/manual/lua_module_register.h",
|
2019-11-23 20:27:39 +08:00
|
|
|
"to": "frameworks/runtime-src/Classes/"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"project_rename": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"files": [
|
2021-10-08 11:07:06 +08:00
|
|
|
"PROJECT_NAME.xsxproj"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_project_name": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"files": [
|
|
|
|
"config.json",
|
|
|
|
".project",
|
|
|
|
"frameworks/runtime-src/proj.win32/main.cpp",
|
|
|
|
"frameworks/runtime-src/proj.android/settings.gradle",
|
|
|
|
"frameworks/runtime-src/proj.android/app/res/values/strings.xml",
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/main.m",
|
|
|
|
"frameworks/runtime-src/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.hellolua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
|
|
|
"frameworks/runtime-src/proj.android/app/build.gradle",
|
|
|
|
"frameworks/runtime-src/proj.android/app/AndroidManifest.xml" ]
|
|
|
|
},
|
2020-10-20 16:26:53 +08:00
|
|
|
"project_replace_so_name": {
|
|
|
|
"src_so_name": "HelloLua",
|
|
|
|
"files": [
|
|
|
|
"frameworks/runtime-src/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.hellolua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/mac/Info.plist"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_ios_bundleid": {
|
2022-08-08 18:02:17 +08:00
|
|
|
"src_bundle_id": "org.axys1.hellolua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
2022-09-05 14:13:52 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/targets/ios/Info.plist",
|
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/targets/tvos/Info.plist"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"change_orientation": {
|
|
|
|
"modify_files": [
|
|
|
|
{
|
|
|
|
"file_path": "config.json",
|
|
|
|
"pattern": "\\\"isLandscape\\\"\\s*:.*,",
|
|
|
|
"replace_string": "\"isLandscape\": false,"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "src/config.lua",
|
|
|
|
"pattern": "width\\s*=.*,",
|
|
|
|
"replace_string": "width = 640,"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "src/config.lua",
|
|
|
|
"pattern": "height\\s*=.*,",
|
|
|
|
"replace_string": "height = 960,"
|
|
|
|
},
|
|
|
|
{
|
2022-09-05 14:13:52 +08:00
|
|
|
"file_path": "frameworks/runtime-src/proj.ios_mac/ios/targets/ios/Info.plist",
|
2019-11-23 20:27:39 +08:00
|
|
|
"pattern": "UIInterfaceOrientationLandscapeRight",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortrait"
|
|
|
|
},
|
|
|
|
{
|
2022-09-05 14:13:52 +08:00
|
|
|
"file_path": "frameworks/runtime-src/proj.ios_mac/ios/targets/ios/Info.plist",
|
2019-11-23 20:27:39 +08:00
|
|
|
"pattern": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"file_path": "frameworks/runtime-src/proj.android/app/AndroidManifest.xml",
|
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|