diff options
author | David Walter Seikel | 2012-02-20 15:27:30 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-20 15:27:30 +1000 |
commit | 31a378998c641064b92c5d6578dece08b015df58 (patch) | |
tree | 7c93ad46807600d0575c976d69e9de69345e38b9 /linden/scripts/linux/1-get-libraries-from-SL | |
parent | Applied patch by onefang for #975: chat console interferes with login control... (diff) | |
download | meta-impy-31a378998c641064b92c5d6578dece08b015df58.zip meta-impy-31a378998c641064b92c5d6578dece08b015df58.tar.gz meta-impy-31a378998c641064b92c5d6578dece08b015df58.tar.bz2 meta-impy-31a378998c641064b92c5d6578dece08b015df58.tar.xz |
Adding my linux build scripts. Makes it easy to build under 32 and 64 bit linux.
Diffstat (limited to 'linden/scripts/linux/1-get-libraries-from-SL')
-rwxr-xr-x | linden/scripts/linux/1-get-libraries-from-SL | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/linden/scripts/linux/1-get-libraries-from-SL b/linden/scripts/linux/1-get-libraries-from-SL new file mode 100755 index 0000000..9ba61f4 --- /dev/null +++ b/linden/scripts/linux/1-get-libraries-from-SL | |||
@@ -0,0 +1,71 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. Released under GPL license v2: | ||
4 | # http://www.gnu.org/licenses/gpl.txt | ||
5 | |||
6 | ############################################################################### | ||
7 | ######## THIS IS QUICK'N DIRTY ALPHA SOFTWARE. USE AT YOUR OWN RISKS ! ######## | ||
8 | ############################################################################### | ||
9 | |||
10 | ############################################################################### | ||
11 | # BEWARE: this script is meant to compile a -personal- SL client. It is -NOT- # | ||
12 | # suitable to build client versions meant for public release, because # | ||
13 | # non-open source code is packaged by this script. # | ||
14 | ############################################################################### | ||
15 | |||
16 | # This bash script is aimed at easying up the build process of a SL client | ||
17 | # with cmake. | ||
18 | # You may enable or disable the use of your system's library by editing | ||
19 | # the USE_SYSTEM_* variable ("yes" --> use the system library, "no" --> use | ||
20 | # LL's provided ones). | ||
21 | # The script also takes care of updating properly the viewer_manifest.py script | ||
22 | # accordingly, so that you (should) end up with a properly packaged client. | ||
23 | |||
24 | # To use this script, simply make it executable (chmod +x cmake-SL) and | ||
25 | # put it into /usr/local/bin (or any other directory in your PATH). | ||
26 | # Then, download the slviewer-src-*.tar.gz, slviewer-linux-libs-*.tar.gz, | ||
27 | # slviewer-artwork-*.zip and fmodapi*.tar.gz archives, and finally, invoke | ||
28 | # make-SL as follow: | ||
29 | # cmake-SL path_to_archives (example: make-SL ~/downloads) | ||
30 | # or simply: | ||
31 | # cmake-SL | ||
32 | # when invoking from the directory where the archives are. | ||
33 | # The sources will be installed into the PATH_TO_SOURCES directory, | ||
34 | # and the client will be built into the TEMP_DIR directory. | ||
35 | # The packaged build will be moved to your home directory. | ||
36 | # | ||
37 | # If you want to retry a compilation after fixing something manually and | ||
38 | # don't want cmake-SL to start all over again, overwriting everything, | ||
39 | # you may invoke it with the --retry option, like this: | ||
40 | # cmake-SL --retry | ||
41 | # | ||
42 | # Finally, if you just want to prepare the sources without starting the | ||
43 | # compilation, use: | ||
44 | # cmake-SL [path_to_archives] --prep | ||
45 | # | ||
46 | # This script has been tested by the author, on (very customized) | ||
47 | # Mandriva 2007.1 and 2009.0 distros. | ||
48 | # Tested with SL v1.21 and v1.22 sources. | ||
49 | |||
50 | source config-SL-source | ||
51 | |||
52 | |||
53 | cd $PATH_TO_SOURCES/indra | ||
54 | |||
55 | # Do a clean build | ||
56 | ./develop.py clean | ||
57 | |||
58 | # Force the vectorization use if we chose so. | ||
59 | if [ "$FORCE_VECTORIZE" == "yes" ] ; then | ||
60 | TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1" | ||
61 | fi | ||
62 | if [ "$ALLOW_WARNINGS" == "yes" ] ; then | ||
63 | FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE" | ||
64 | else | ||
65 | FATAL_WARNINGS="" | ||
66 | fi | ||
67 | # Configure the sources and download the LL provided libraries: | ||
68 | ./develop.py --type=Release configure "$FATAL_WARNINGS" \ | ||
69 | -DCMAKE_C_FLAGS:STRING="-O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS:STRING="-O2 $TUNE_FLAGS" \ | ||
70 | -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 $TUNE_FLAGS" \ | ||
71 | -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g -O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-g -O2 $TUNE_FLAGS" | ||