cocos2d-console for quick-x v3.3

  1. 欺骗 cocos,这就是 cocos 的 lua 工程

    $ cat .cocos-project.json
    {
        "engine_version": "cocos2d-x-3.11",
        "has_native": true,
        "project_type": "lua"
    }
    
  2. 添加 NDK_MODULE_PATH

    $ git diff frameworks/runtime-src/proj.android/build-cfg.json
    diff --git a/frameworks/runtime-src/proj.android/build-cfg.json b/frameworks/runtime-src/proj.android/build-cfg.json
    index 674faa1..be66eeb 100644
    --- a/frameworks/runtime-src/proj.android/build-cfg.json
    +++ b/frameworks/runtime-src/proj.android/build-cfg.json
    @@ -4,6 +4,7 @@
             "../../cocos2d-x/cocos/",
             "../../cocos2d-x/external",
             "../../cocos2d-x/cocos/scripting",
    +        "../Classes",
             ""
         ],
         "copy_resources": [
    
  3. 卧槽

    frameworks/runtime-src/proj.android/../Classes/quick-src/lua_extensions/lua_extensions_more.h:15:21: fatal error: lauxlib.h: No such file or directory
     #include "lauxlib.h"
    

推荐阅读更多精彩内容