Giter Club home page Giter Club logo

standalone-jswrapper's Introduction

workflow result

ScriptEngine 独立工程

最小化 ScriptEngine 依赖, 支持 Mac/Windows/Linux 平台.

目录结构

  • cocos/jswrapper 依赖和代码, 需要和引擎同步更新.
  • jswrapper-adaptor/ 为 demo 工程的依赖, 包括转换函数的定义 和 FS 接口. 由用户工程维护.

使用方法

拷贝 cocos/ jswrapper-adaptor/tools/ 目录到目标工程, 根据需要定制 jswrapper-adaptor/.

CMake 配置

参考 CMakeLists.txt

include(${CMAKE_CURRENT_LIST_DIR}/cocos/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/jswrapper-adaptor/CMakeLists.txt)
# ...
target_link_libraries(demo ccbindings)

.ini 配置

参考 demo/demo.ini.

其中占位符 %(configdir)s 为配置所在目录

生成绑定

执行命令

python tools/tojs/genbindings --config demo/demo.ini 

standalone-jswrapper's People

Contributors

patricejiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.