diff options
Diffstat (limited to 'linden/scripts')
-rwxr-xr-x | linden/scripts/linux/0-patch-SL-source | 2 | ||||
-rwxr-xr-x | linden/scripts/linux/1-get-libraries-from-SL | 11 | ||||
-rwxr-xr-x | linden/scripts/linux/3-compile-SL-source | 27 | ||||
-rwxr-xr-x | linden/scripts/linux/4-package-viewer | 11 | ||||
-rw-r--r-- | linden/scripts/linux/config-SL-source | 16 |
5 files changed, 31 insertions, 36 deletions
diff --git a/linden/scripts/linux/0-patch-SL-source b/linden/scripts/linux/0-patch-SL-source index 4885d5d..ce0dabe 100755 --- a/linden/scripts/linux/0-patch-SL-source +++ b/linden/scripts/linux/0-patch-SL-source | |||
@@ -22,7 +22,7 @@ if [ "$PATCHES" != "" ] ; then | |||
22 | elif echo $i | grep ".bz2" &>/dev/null ; then | 22 | elif echo $i | grep ".bz2" &>/dev/null ; then |
23 | bzcat $i | patch -p1 -s | 23 | bzcat $i | patch -p1 -s |
24 | elif echo $i | grep ".zip" &>/dev/null ; then | 24 | elif echo $i | grep ".zip" &>/dev/null ; then |
25 | unzip -o $i >/dev/null | 25 | unzip -o $i >/dev/null |
26 | else | 26 | else |
27 | patch -p1 -s <$i | 27 | patch -p1 -s <$i |
28 | fi | 28 | fi |
diff --git a/linden/scripts/linux/1-get-libraries-from-SL b/linden/scripts/linux/1-get-libraries-from-SL index 9ba61f4..87ad39c 100755 --- a/linden/scripts/linux/1-get-libraries-from-SL +++ b/linden/scripts/linux/1-get-libraries-from-SL | |||
@@ -53,7 +53,7 @@ source config-SL-source | |||
53 | cd $PATH_TO_SOURCES/indra | 53 | cd $PATH_TO_SOURCES/indra |
54 | 54 | ||
55 | # Do a clean build | 55 | # Do a clean build |
56 | ./develop.py clean | 56 | #./develop.py $os_extra clean |
57 | 57 | ||
58 | # Force the vectorization use if we chose so. | 58 | # Force the vectorization use if we chose so. |
59 | if [ "$FORCE_VECTORIZE" == "yes" ] ; then | 59 | if [ "$FORCE_VECTORIZE" == "yes" ] ; then |
@@ -65,7 +65,8 @@ else | |||
65 | FATAL_WARNINGS="" | 65 | FATAL_WARNINGS="" |
66 | fi | 66 | fi |
67 | # Configure the sources and download the LL provided libraries: | 67 | # Configure the sources and download the LL provided libraries: |
68 | ./develop.py --type=Release configure "$FATAL_WARNINGS" \ | 68 | ./develop.py $os_extra --type=Release configure "$FATAL_WARNINGS" \ |
69 | -DCMAKE_C_FLAGS:STRING="-O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS:STRING="-O2 $TUNE_FLAGS" \ | 69 | -DCMAKE_C_FLAGS:STRING="$TUNE_FLAGS" -DCMAKE_CXX_FLAGS:STRING="$TUNE_FLAGS" \ |
70 | -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 $TUNE_FLAGS" \ | 70 | -DCMAKE_C_FLAGS_DEBUG:STRING="-g $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_DEBUG:STRING="-g $TUNE_FLAGS" \ |
71 | -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g -O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-g -O2 $TUNE_FLAGS" | 71 | -DCMAKE_C_FLAGS_RELEASE:STRING="$TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELEASE:STRING="$TUNE_FLAGS" \ |
72 | -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-g $TUNE_FLAGS" -DPACKAGE:BOOL=ON | ||
diff --git a/linden/scripts/linux/3-compile-SL-source b/linden/scripts/linux/3-compile-SL-source index 34395bb..c932340 100755 --- a/linden/scripts/linux/3-compile-SL-source +++ b/linden/scripts/linux/3-compile-SL-source | |||
@@ -54,10 +54,7 @@ source config-SL-source | |||
54 | function compile() { | 54 | function compile() { |
55 | cd $PATH_TO_SOURCES/indra | 55 | cd $PATH_TO_SOURCES/indra |
56 | echo "Compiling the client into $TEMP_DIR..." | 56 | echo "Compiling the client into $TEMP_DIR..." |
57 | nice -n 19 ionice -c 3 ./develop.py --type=Release build | 57 | nice -n 19 $ionice ./develop.py $os_extra --type=Release build |
58 | # if (($? == 0)) ; then | ||
59 | # mv -f $PATH_TO_SOURCES/indra/viewer-linux-i686*/newview/SecondLife*.tar.bz2 $HOME/ | ||
60 | # fi | ||
61 | } | 58 | } |
62 | 59 | ||
63 | ########### end of functions ########### | 60 | ########### end of functions ########### |
@@ -66,14 +63,7 @@ if [ "$TEMP_DIR" == "" ] ; then | |||
66 | export TEMP_DIR="/usr/tmp/$USER" | 63 | export TEMP_DIR="/usr/tmp/$USER" |
67 | fi | 64 | fi |
68 | 65 | ||
69 | # Check to see if we simply want to retry a compilation: | ||
70 | if [ "$1" == "--retry" ] ; then | ||
71 | compile | ||
72 | exit $? | ||
73 | fi | ||
74 | |||
75 | # Use the parameter (if any) as the path to the archives: | 66 | # Use the parameter (if any) as the path to the archives: |
76 | |||
77 | PATH_TO_ARCHIVES=`pwd` | 67 | PATH_TO_ARCHIVES=`pwd` |
78 | if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then | 68 | if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then |
79 | if [ -d $1 ] ; then | 69 | if [ -d $1 ] ; then |
@@ -83,19 +73,4 @@ if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then | |||
83 | fi | 73 | fi |
84 | 74 | ||
85 | cd $PATH_TO_SOURCES/indra | 75 | cd $PATH_TO_SOURCES/indra |
86 | |||
87 | # Do a clean build | ||
88 | #./develop.py clean | ||
89 | |||
90 | # Force the vectorization use if we chose so. | ||
91 | if [ "$FORCE_VECTORIZE" == "yes" ] ; then | ||
92 | TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1" | ||
93 | fi | ||
94 | if [ "$ALLOW_WARNINGS" == "yes" ] ; then | ||
95 | FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE" | ||
96 | else | ||
97 | FATAL_WARNINGS="" | ||
98 | fi | ||
99 | |||
100 | time compile | 76 | time compile |
101 | |||
diff --git a/linden/scripts/linux/4-package-viewer b/linden/scripts/linux/4-package-viewer index b2bff7f..19d2456 100755 --- a/linden/scripts/linux/4-package-viewer +++ b/linden/scripts/linux/4-package-viewer | |||
@@ -1,5 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | cd ../../indra/viewer-linux-* | 3 | if [ "$OSTYPE" == "cygwin" ] ; then |
4 | make package | 4 | # Assumes version has been passed in from outside, coz Windows insists on adding crap to python output. |
5 | 5 | cd ../../indra/build-nmake/ | |
6 | iscc newview/package/${version}-Windows-x86.iss | ||
7 | else | ||
8 | cd ../../indra/viewer-linux-* | ||
9 | make package | ||
10 | fi | ||
diff --git a/linden/scripts/linux/config-SL-source b/linden/scripts/linux/config-SL-source index 174d7d4..200f957 100644 --- a/linden/scripts/linux/config-SL-source +++ b/linden/scripts/linux/config-SL-source | |||
@@ -9,6 +9,9 @@ | |||
9 | # accordingly, so that you (should) end up with a properly packaged client. | 9 | # accordingly, so that you (should) end up with a properly packaged client. |
10 | 10 | ||
11 | PWD=`pwd` | 11 | PWD=`pwd` |
12 | os_extra='' | ||
13 | ionice='ionice -c 3' | ||
14 | |||
12 | 15 | ||
13 | # Where the sources of the client will be held (defaults to "./linden"): | 16 | # Where the sources of the client will be held (defaults to "./linden"): |
14 | PATH_TO_SOURCES="$PWD/../.." | 17 | PATH_TO_SOURCES="$PWD/../.." |
@@ -53,7 +56,7 @@ USE_SYSTEM_BOOST="no" | |||
53 | # You may add tune flags here, to optimize the code for your processor. | 56 | # You may add tune flags here, to optimize the code for your processor. |
54 | # Example, for an Athlon XP: | 57 | # Example, for an Athlon XP: |
55 | # TUNE_FLAGS="-march=athlon-xp" | 58 | # TUNE_FLAGS="-march=athlon-xp" |
56 | TUNE_FLAGS="-fomit-frame-pointer -frename-registers -ftree-vectorize -fweb -fexpensive-optimizations -msse -mfpmath=sse" | 59 | TUNE_FLAGS="-O2 -fomit-frame-pointer -frename-registers -ftree-vectorize -fweb -fexpensive-optimizations -msse -mfpmath=sse" |
57 | # Set this to "yes" to force vectorization use in the viewer code (only for | 60 | # Set this to "yes" to force vectorization use in the viewer code (only for |
58 | # processors with SSE or Altivec units, and only if you did enable them via | 61 | # processors with SSE or Altivec units, and only if you did enable them via |
59 | # the TUNE_FLAGS. | 62 | # the TUNE_FLAGS. |
@@ -61,3 +64,14 @@ FORCE_VECTORIZE="yes" | |||
61 | 64 | ||
62 | # When using gcc v4.3 or later, you might have to set this to yes... | 65 | # When using gcc v4.3 or later, you might have to set this to yes... |
63 | ALLOW_WARNINGS="yes" | 66 | ALLOW_WARNINGS="yes" |
67 | |||
68 | |||
69 | # Change it all for cygwin. | ||
70 | if [ "$OSTYPE" == "cygwin" ] ; then | ||
71 | os_extra='-G nmake' | ||
72 | ionice='' | ||
73 | USE_SYSTEM_LIBSTDC="no" | ||
74 | TUNE_FLAGS="/EHsc /GR /Zm1000 /DWIN32 /D_WINDOWS " | ||
75 | FORCE_VECTORIZE="no" | ||
76 | ALLOW_WARNINGS="no" | ||
77 | fi | ||