Hello everyone, I have wrote some widget in cocos2dx.I copy all of files in my project every time.
Now I want to build my code as a library.
Is there any method to do it and keep it cross-platform in cocos2dx?
Hello everyone, I have wrote some widget in cocos2dx.I copy all of files in my project every time.
Now I want to build my code as a library.
Is there any method to do it and keep it cross-platform in cocos2dx?
I just created a second C++ project and reference it for my shared elements.
I have “Core” and “Game” projects and Core is shared between several Game projects.
Cory Trese wrote:
I just created a second C++ project and reference it for my shared elements.
>
I have “Core” and “Game” projects and Core is shared between several Game projects.
How did you do that?
Can you show me the example?
Look at cocos2dx_root/extensions/proj.linux for makefile
I suggest you to use static lib it’s the simplest