How to update subprojects in a Cocos2d-x project

I just started playing with Cocos2d-x v3.8.1 and I had a problem updating subprojects.

cocos new SampleProject -p com.domain.sampleproject -l cpp -d .

For the command above cocos:

  • creates two classes of samples: AppDelegateand HelloWorldScene,
  • creates subprojects: proj.android, proj.android-studio, proj.linux, proj.win32, proj.ios_mac, proj.win10, proj.win8.1-universal,
  • creates CMakeLists.txt.

In the regular project, after cocos newwe need to add new source files. After adding new files, subprojects are outdated. Question: How to update these subprojects ?

I know that I can edit CMakeLists.txtand call, for example. cmake . -G"Visual Studio 14 2015 Win64"but this gives me files that do not support the structure convention.

+4

Source: https://habr.com/ru/post/1611033/


All Articles