2014-05-04 14:37:55 +08:00
|
|
|
{
|
2015-01-09 04:08:41 +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": [
|
2014-10-11 02:55:04 +08:00
|
|
|
{
|
|
|
|
"from": "cocos/scripting/lua-bindings/script",
|
|
|
|
"to": "src/cocos",
|
|
|
|
"exclude": []
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "templates/lua-template-default/src",
|
|
|
|
"to": "src",
|
|
|
|
"exclude": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "templates/lua-template-default/res",
|
|
|
|
"to": "res",
|
|
|
|
"exclude": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/win32-specific/gles/prebuilt",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/win32-specific/icon/prebuilt",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/win32-specific/MP3Decoder/prebuilt",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/win32-specific/OggDecoder/prebuilt",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/win32-specific/OpenalSoft/prebuilt",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/win32-specific/zlib/prebuilt",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/curl/prebuilt/win32",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/lua/luajit/prebuilt/win32",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/websockets/prebuilt/win32",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/sqlite3/libraries/win32",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "external/tiff/prebuilt/win32",
|
|
|
|
"to": "runtime/win32",
|
|
|
|
"include": [
|
|
|
|
"*.dll"
|
|
|
|
]
|
2015-01-13 18:28: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/HelloLua.xcodeproj/project.xcworkspace",
|
|
|
|
"proj.ios_mac/HelloLua.xcodeproj/xcuserdata",
|
|
|
|
"proj.win32/Debug.win32",
|
|
|
|
"proj.win32/Release.win32",
|
|
|
|
"proj.win32/HelloLua.sdf"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"append_x_engine": {
|
|
|
|
"from": ".",
|
|
|
|
"to": "frameworks/cocos2d-x"
|
|
|
|
},
|
|
|
|
"append_dir": [
|
2015-01-09 04:08:41 +08:00
|
|
|
{
|
|
|
|
"from": "tools/simulator/libsimulator",
|
|
|
|
"to": "frameworks/cocos2d-x/tools/simulator/libsimulator",
|
2015-01-12 23:42:37 +08:00
|
|
|
"exclude": [
|
|
|
|
"proj.win32/Debug",
|
|
|
|
"proj.win32/Release"
|
|
|
|
]
|
2015-05-22 19:47:16 +08:00
|
|
|
},
|
|
|
|
{
|
2015-12-01 15:00:45 +08:00
|
|
|
"from": "cocos/scripting/lua-bindings/manual/lua_module_register.h",
|
2015-05-22 19:47:16 +08:00
|
|
|
"to": "frameworks/runtime-src/Classes/"
|
2014-10-11 02:55:04 +08:00
|
|
|
}
|
2015-01-13 18:28:33 +08:00
|
|
|
],
|
2015-01-09 04:08:41 +08:00
|
|
|
"project_rename": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"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",
|
2018-01-11 10:06:42 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj"
|
2014-05-04 14:37:55 +08:00
|
|
|
]
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
"project_replace_project_name": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"files": [
|
|
|
|
"config.json",
|
|
|
|
".project",
|
|
|
|
"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-01-09 04:08:41 +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/mac/SimulatorApp.mm",
|
2018-09-13 18:03:44 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj",
|
|
|
|
"CMakeLists.txt"
|
|
|
|
]
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
"project_replace_package_name": {
|
|
|
|
"src_package_name": "org.cocos2dx.hellolua",
|
|
|
|
"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-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
"project_replace_mac_bundleid": {
|
2014-07-08 10:22:08 +08:00
|
|
|
"src_bundle_id": "org.cocos2dx.hellolua",
|
|
|
|
"files": [
|
2015-01-09 04:08:41 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/mac/Info.plist"
|
2014-07-08 10:22:08 +08:00
|
|
|
]
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
"project_replace_ios_bundleid": {
|
2014-07-08 10:22:08 +08:00
|
|
|
"src_bundle_id": "org.cocos2dx.hellolua",
|
|
|
|
"files": [
|
2015-01-09 04:08:41 +08:00
|
|
|
"frameworks/runtime-src/proj.ios_mac/ios/Info.plist"
|
2014-07-08 10:22:08 +08:00
|
|
|
]
|
2016-07-08 17:17:23 +08:00
|
|
|
}
|
2015-07-15 17:32:01 +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,"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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-15 17:32:01 +08:00
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
}
|
|
|
|
]
|
2014-05-04 14:37:55 +08:00
|
|
|
}
|
|
|
|
}
|