[haiku-commits] haiku: hrev43738 - 3rdparty/mesa

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 13 Feb 2012 17:15:52 +0100 (CET)

hrev43738 adds 1 changeset to branch 'master'
old head: 88520e79d880a7631e3a7dd02c27df84c4602cd3
new head: 63203bef62f509d6791df819f7ff38d10d01e8b4

----------------------------------------------------------------------------

63203be: mesa-o-matic: Update script for Mesa mainline

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev43738
Commit:      63203bef62f509d6791df819f7ff38d10d01e8b4
URL:         http://cgit.haiku-os.org/haiku/commit/?id=63203be
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Mon Feb 13 16:14:35 2012 UTC

----------------------------------------------------------------------------

1 files changed, 13 insertions(+), 5 deletions(-)
3rdparty/mesa/mesa-o-matic.sh |   18 +++++++++++++-----

----------------------------------------------------------------------------

diff --git a/3rdparty/mesa/mesa-o-matic.sh b/3rdparty/mesa/mesa-o-matic.sh
index e35a0a4..a6d823a 100755
--- a/3rdparty/mesa/mesa-o-matic.sh
+++ b/3rdparty/mesa/mesa-o-matic.sh
@@ -15,7 +15,9 @@ echo ""
 # These are the Mesa headers and libraries used by the opengl kit
 #   Headers are probed for dependencies, only specify ones referenced
 #   by the opengl kit.
-MESA_PRIVATE_HEADERS="glheader.h glapi.h glapitable.h glapitemp.h glapi_priv.h 
context.h driverfuncs.h meta.h colormac.h buffers.h framebuffer.h 
renderbuffer.h state.h version.h swrast.h swrast_setup.h tnl.h t_context.h 
t_pipeline.h vbo.h extensions.h s_spantemp.h s_renderbuffer.h formats.h 
cpuinfo.h"
+MESA_PRIVATE_HEADERS="glheader.h glapi.h glapitable.h glapitemp.h glapi_priv.h 
context.h driverfuncs.h meta.h colormac.h buffers.h framebuffer.h 
renderbuffer.h state.h version.h swrast.h swrast_setup.h tnl.h t_context.h 
t_pipeline.h vbo.h extensions.h s_spantemp.h s_renderbuffer.h s_context.h 
formats.h cpuinfo.h"
+
+DEBUG=0
 
 #######################################################################
 # END CONFIG DATA, Dragons below!
@@ -40,6 +42,8 @@ MESA_TOP="$1"
 GCC_VER=`gcc -v 2>&1 | tail -1 | awk '{print $3}' | cut -d. -f1`
 MESA_VER=`cat $MESA_TOP/Makefile |grep VERSION\= | cut -d= -f2`
 
+DATESTAMP=`date +"%Y-%m-%d"`
+
 echo "Bundling gcc$GCC_VER build of Mesa $MESA_VER..."
 
 cd $MESA_TOP
@@ -90,13 +94,17 @@ do
        cp $i lib.haiku/
 done
 
-# Disabled as to give the choice to the user ah-la 
stripOptionalPackageDebugSymbols
-#echo "Stripping debug symbols from Mesa libraries..."
-#find lib.haiku -exec strip --strip-debug {} \; ;
+if [[ $DEBUG -eq 0 ]]; then
+echo "Stripping debug symbols from Mesa libraries..."
+find lib.haiku -exec strip --strip-debug {} \; ;
+MESADBG=""
+else
+MESADBG="dbg"
+fi
 
 echo "Creating Mesa OptionalPackage..."
 PLATFORM=$( uname -m )
-ZIP_FILENAME="../mesa-$MESA_VER-gcc$GCC_VER-x86.zip"
+ZIP_FILENAME="../mesa-${MESA_VER}${MESADBG}-x86-gcc${GCC_VER}-${DATESTAMP}.zip"
 zip -r -9 $ZIP_FILENAME $ZIP_HEADERS ./include/GL/* ./lib.haiku/*
 
 echo "Great Success! $ZIP_FILENAME created."


Other related posts:

  • » [haiku-commits] haiku: hrev43738 - 3rdparty/mesa - kallisti5