Comments (7)
结论,同一次构建是不支持多个backend的。
这也是编译时多态除了高性能之外的结果。
如果一定要这么做的话,有个方法是编译多个动态库,每一个动态库链接一个target
from scriptx.
不过还有一个cmake的限制,这两个动态库必须用两个CMakeLists配置
from scriptx.
我在两个不同的backend编译时确实用的是不同的CMakeList
他们在不同的目录中
最后由最顶层的CMakeList使用add_subdirectory进行分别构建
结果仍然出现了这个问题
难道说必须要修改ScriptX自带的CMakeList中的Project名才可以解决问题吗。。。
from scriptx.
我看到ScriptX里面写的是add_library(ScriptX STATIC
把他改成动态库就可以解决问题了?
from scriptx.
不是的,你不能用一个cmake工程编译两个后端。
只能用两个cmake工程(顶层CMakeLists)
from scriptx.
其实我也很好奇你有什么样的需求,需要同时编译多个后端
from scriptx.
哈!
其实就是做一个多语言的插件加载器
一次构建同时生成多种语言对应的DLL
所以说得多个顶层CMakeLists咯😱那样到时候构建就麻烦了
虽然说可以靠bat。。。hhh
from scriptx.
Related Issues (19)
- demo代码运行异常.failed to run game can't cast value as Object [failed to obtain stacktrace]
- 用V8作为后端启动时遇到问题 HOT 2
- V8引擎作为DLL嵌入工作时出错 HOT 2
- 是否支持直接在iOS平台跑起来? HOT 1
- 是否可以给Local<Number>加上区分整数 / 浮点数的能力 HOT 1
- Local<Array>'s behavior in lua may be wrong HOT 4
- 希望可以增加对 Js ESM 的支持 HOT 3
- 请问如果使用v8 on windows 是要单独编译下v8吗 HOT 1
- Memory leak in QuickJs backend HOT 2
- Exception when using promises with QuickJs backend HOT 9
- SCRIPTX_BACKEND gets erased by ScriptX/CMakeLists.txt HOT 2
- 循环引用内存泄漏 HOT 1
- 能提供JavaScriptCore的在安卓上面编译的文档么? HOT 1
- JavaScriptCore的JscWeakRef和 OC里面的JSManagedValue 语义好像不一样吧 HOT 1
- PHP support
- scriptDynamicCast返回NULL导致空指针崩溃 HOT 1
- Python单元测试 HOT 3
- Add new APIs to "eval a file" in Engine.h HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scriptx.