Commit Graph

20 Commits

Author SHA1 Message Date
Roger Zanoni 83d9dd33c2 Add an environment variable to give the developer an option to disable apt-get usage
After the introduction of the "set -e" option, the build script fails on non debian/ubuntu linux distributions.

This is a quick fix to allow the users of distros other than debian/ubuntu to build the library, not a definitive solution.
The COCOS2DX_USEAPT environment variable can be set in the user shell config or used directly in
the command line: COCOS2DX_USEAPT=false ./make-all-linux-project.sh
2013-03-15 12:54:42 -04:00
kevinxuewei 94bbd169c8 Update make-all-linux-project.sh
fix bug for auto install 'MISSING' pkg
2013-03-13 22:38:35 +08:00
Sam Clegg 3b6e2e7f41 Fix package installation in make-all-linux-project
There was a bug where missing packages would cause the script
to exit.

This change also makes several improvements:
- script can now be run from anywhere (not only the cocos root)
- apt-get is called only once to install all missing packages
  (this makes output much more informative on first use)
- added comment/docs to the top of the script
2013-03-08 08:03:06 -08:00
Sam Clegg 8677dad3c6 Improved build system from linux.
This change makes several fundamental improvements to the linux
build system:

- Remove duplication: a lot of the common make logic is now in
  a central shared makefile: cocos2dx/proj.linux/cocos2dx.mk

- Quiet by default: unless you specify V=1 on the commandline
  the output is now very clean and quiet.

- Dependencies: gcc's automatic dependancy generation is now
  used (-MMD).  This means that if you change a header file
  then all the object that depend on it now get rebuilt.

- Don't store objects in the source tree: previously object
  files were stored alongside the sources, which meant that
  debug and release object clobbered each other which leads
  to confusion and lots of unnecessary rebuilding.Q

- Library dependencies: each binary now depends on the libraries
  it links aginst.  This means that if the cocos2dx library
  changes then all examples will get re-linked.

- Top level Makefile: there is now a top level Makefile that
  can be shared/used by any platform the uses make as the
  build system (for example NaCl).  Everything can be built
  by simply running 'make' at the top level. e.g:

    make DEBUG=1
    make DEBUG=1 clean
2013-03-06 13:02:55 -08:00
James Chen 5c8275ef4f issue : Updated make-all-linux-project.sh 2013-02-19 18:08:19 +08:00
James db77c2079e Updated make-all-linux-probject.sh.
Checked whether packages were installed.
2013-01-22 17:23:05 +08:00
James 680fbe3517 Fixed compilation errors for linux port. 2013-01-22 15:21:37 +08:00
ivzave e3246d93ac add sqlite3 to dependencies 2013-01-21 18:01:57 +04:00
ivzave 0538b22300 repair linux cli build 2012-12-22 04:14:15 +04:00
ivzave 28ca22bfde added lua support for linux platform 2012-11-19 14:56:02 +04:00
James Chen 0ca7e00700 fixed some compilation errors for linux platform. 2012-09-26 15:23:10 +08:00
Byung Choi a83b6a6261 updated sample/helloCpp debug & release makefile for linux 2012-09-21 15:35:41 +09:00
Byung Choi 4d04a1863b make-all-linux now builds debug & release, testCpp also gets both 2012-09-21 14:34:05 +09:00
Byung Choi ad5836a3ca debug & release makefiles for cocos2dx, box2d, chipmunk, cocosdenshion 2012-09-19 04:42:57 +09:00
minggo 1ea039d21d issue #1454:modify ios project resources 2012-08-31 22:23:30 +08:00
mingo ba4d75a60e issue : fix compiling error of linux 2012-08-24 15:53:26 +08:00
pengfei tong 014d7ea864 [LOG] make-all-linux-project.sh add clean 2012-08-02 16:34:01 +08:00
pengfei tong a37fd743e0 [FIX] testjs 2012-08-02 16:23:31 +08:00
pengfei tong c82c8412a8 [LOG] fix makefile 2012-08-02 13:19:40 +08:00
pengfei tong b93d0b5ebf [LOG] add linux port 2012-08-02 13:02:59 +08:00