cocos2d / cocos2d-console

cocos2d command line tool
152 stars 190 forks source link

Update gen libs #434

Closed minggo closed 6 years ago

Volodymyr-13 commented 6 years ago

Cool. Any comments? Like summary description how to use and what result to expect?

minggo commented 6 years ago

just add an option -l [cpp | js | lua], default is cpp

minggo commented 6 years ago

please give some feedback after your usage

Volodymyr-13 commented 6 years ago

@minggo I've used just cocos gen-libs -p mac, because anyway checked what was modified, can't wait) And as default option is cpp and default mode debug, what is right. Build took only 4min on my 2013 old Intel Core i3. Thats really saving time đź‘Ť don't remember exactly how much was before, but I guess around 15min. Thank you.

p.s. another thing I have in my mind is generating prebuilt libs for android. I'm using Android Studio and compile my game in it, but using prebuilt libs, same as for Xcode. Is there any updates about this for android? Like was fixed need of "tools" folder hack and all now compiles with latest NDK, tools version .. well just everything latest, when you updating it in Android Studio?

minggo commented 6 years ago

Yep, android is updated too. Now proj.android is expected as an Android Studio project. You can just use cocos gen-libs -p=android, but make sure proj.android is an Android Studio project, which is named proj.android-studio.

Volodymyr-13 commented 6 years ago

Thats nice. But.. I have some configured project for my game already.. and used prebuilt for it, but with hacks. Maybe you can create some topic with quick tutorial about android? Like how to start a new project and use prebuilts for it? Because currently I don’t understand how to do it in right way.. maybe my current project setup is wrong.. for iOS I have no problems with prebuilts, setup is flawless.

minggo commented 6 years ago

I update console just to keep compatibility, i don't want developers to use prebuilt libs, and there is not template for it now.

Volodymyr-13 commented 6 years ago

But prebuilts is saving time a lot and disk space. Each game project doesn’t contains cocos git with all source code files, thats about 2.3Gb each project. Compare to just project with prebuilts it’s just up to 10Mb and it’s easy to use overall. If you so archive in Xcode - for prebuilts it will do fast compile, but with full source code it will recompile all cocos source code each time you archive build.