Batch Processing of cocos2dx project created in Mac

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.