Since cocos2dx2.2, python has been used to create projects, as shown below:
Python create_project.py-project HelloWorld-package com.bjmzs.org-language cpp
Isn't it difficult? Write a makefile file by yourself. The content is as follows:
# This file contains basic operations on the project in the Cocos2d-x # New Project # Run Project # Delete Project # parameter name PROJ_NAME = HelloWorldPKG_NAME = com. games.2dx # project path CRT_PATH =/Users/user/Documents/cocos2d-x-2.2.1/tools/project-creatorPROJ_PATH =/Users/user/Documents/cocos2d-x-2.2.1/projectsEXE_PATH = $ (PROJ_PATH)/$ (PROJ_NAME) /proj. ioscrt: makefile cd $ (CRT_PATH); python create_project.py-project $ (PROJ_NAME)-package $ (PKG_NAME)-language cpp; cd-; exe: cd $ (EXE_PATH ); open $ (PROJ_NAME ). xcodeproj; cd-; clean: cd $ (PROJ_PATH); rm-rf $ (PROJ_NAME); cd-; # The cd command should be written in the same line, because each line of commands is executed in a separate shell
In the future, you only need to modify the registration and project name, and then:
Make cry to create a project.
Make exe will automatically use Xcode to open the project for you
Make clean is to delete the project.