mirror of
				https://bitbucket.org/mfeemster/fractorium.git
				synced 2025-10-31 01:10:24 -04:00 
			
		
		
		
	resurrect previous build scripts for reference
This commit is contained in:
		
							
								
								
									
										47
									
								
								archive/build_all.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										47
									
								
								archive/build_all.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,47 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| REBUILD='' | ||||
| NVIDIA='' | ||||
| NATIVE='' | ||||
| CONCURRENCY='-j4' | ||||
| QMAKE=${QMAKE:-/usr/bin/qmake} | ||||
| RELEASE='CONFIG+=release CONFIG-=debug' | ||||
|  | ||||
| while test $# -gt 0 | ||||
| do | ||||
|     case "$1" in | ||||
|         --rebuild) REBUILD='1' | ||||
|             ;; | ||||
|         --nvidia) NVIDIA="CONFIG += nvidia" | ||||
|             ;; | ||||
|         --native) NATIVE="CONFIG += native" | ||||
|             ;; | ||||
|         --travis) CONCURRENCY="-j1" | ||||
|             ;; | ||||
|         --debug) RELEASE="CONFIG+=debug CONFIG-=release" | ||||
|             ;; | ||||
|         --*) echo "bad option $1"; exit 1 | ||||
|             ;; | ||||
|         *) echo "unrecognised argument $1"; exit 1 | ||||
|             ;; | ||||
|     esac | ||||
|     shift | ||||
| done | ||||
|  | ||||
| DIR=$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||||
|  | ||||
| for PROJ in ${DIR}/{Ember,EmberCL,EmberGenome,EmberRender,EmberAnimate,Fractorium} | ||||
| do | ||||
|   pushd $PROJ | ||||
|   if [ "x1" = "x$REBUILD" ]; then | ||||
|     make clean | ||||
|   fi | ||||
|   $QMAKE "$NVIDIA" "$NATIVE" $RELEASE | ||||
|   make $CONCURRENCY | ||||
|   if [ "x$?" != "x0" ]; then | ||||
|     echo "Build failed! Check output for errors." | ||||
|     exit 1 | ||||
|   fi | ||||
|   popd | ||||
| done | ||||
|  | ||||
							
								
								
									
										30
									
								
								archive/build_osx_package.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										30
									
								
								archive/build_osx_package.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,30 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||||
|  | ||||
| FRACTORIUM_ROOT=$DIR/../../.. | ||||
| PACKAGE=$FRACTORIUM_ROOT/release/Fractorium.app | ||||
| export QMAKE=~/Qt/5.4.2-static/qtbase/bin/qmake | ||||
|  | ||||
| # Uncomment to force rebuild of package every time | ||||
| # Probably a good idea in future | ||||
| rm -rf "$FRACTORIUM_ROOT/release" | ||||
| $FRACTORIUM_ROOT/Builds/QtCreator/build_all.sh --rebuild | ||||
|  | ||||
| cp $FRACTORIUM_ROOT/Data/flam3-palettes.xml $PACKAGE/Contents/MacOS/ | ||||
|  | ||||
| export DYLD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$FRACTORIUM_ROOT/release | ||||
|  | ||||
| cp /usr/lib/libxml2* $PACKAGE/Contents/libs | ||||
| install_name_tool -id @executable_path/../libs/libxml2.2.dylib $PACKAGE/Contents/libs/libxml2.2.dylib | ||||
| install_name_tool -change /usr/lib/libxml2.2.dylib  @executable_path/../libs/libxml2.2.dylib $PACKAGE/Contents/MacOS/Fractorium | ||||
|  | ||||
| dylibbundler -od -b -x $PACKAGE/Contents/MacOS/Fractorium -d $PACKAGE/Contents/libs | ||||
|  | ||||
| for i in EmberAnimate EmberGenome EmberRender | ||||
| do | ||||
|   cp $FRACTORIUM_ROOT/release/$i $PACKAGE/Contents/MacOS/ | ||||
|   dylibbundler -od -b -x $PACKAGE/Contents/MacOS/$i -d $PACKAGE/Contents/libs | ||||
|   install_name_tool -change /usr/lib/libxml2.2.dylib  @executable_path/../libs/libxml2.2.dylib $PACKAGE/Contents/MacOS/$i | ||||
| done | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gambhiro
					Gambhiro