Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: possibility of using JS binding library in CPP project #378

Open
mathieubr opened this issue Aug 31, 2016 · 0 comments
Open

Comments

@mathieubr
Copy link

Hi,

When creating a new project with "cocos new -l cpp ..." ; the cocos tool purposefully avoids adding the "cocos/scripting" and "external/spidermonkey" directories to the resulting Visual Studio project. Hence I cannot use the scripting engine.

Whereas if I create using "cocos new -l js" I get everything but the project is javascript-based...

Adding those libraries into the project after the fact is very hard (I spent the whole day on it and still am experiencing dependencies issues).

My current project is developed in C++ but I would like to include some Javascript for user-created content (level information and interaction routines, for example, that could be loaded into the game without having to rebuild).

Is it possible to add a secondary flag to cocos new with for example "-s js" to allow for inclusion of those libraries at project generation time?

Kind regards,

mathieu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant