Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: windows/build.bash

Issue 12568011: Update XZ Utils to 5.0.4 (third_party) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xz/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« README.chromium ('K') | « windows/README-Windows.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 ############################################################################### 3 ###############################################################################
4 # 4 #
5 # Build a binary package on Windows with MinGW and MSYS 5 # Build a binary package on Windows with MinGW and MSYS
6 # 6 #
7 # Set the paths where MinGW, Mingw-w32, or MinGW-w64 are installed. If both 7 # Set the paths where MinGW, Mingw-w32, or MinGW-w64 are installed. If both
8 # MinGW and MinGW-w32 are specified, MinGW-w32 will be used. If there is no 8 # MinGW and MinGW-w32 are specified, MinGW-w32 will be used. If there is no
9 # 32-bit or 64-bit compiler at all, it is simply skipped. 9 # 32-bit or 64-bit compiler at all, it is simply skipped.
10 # 10 #
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 [ -f Makefile ] && make distclean 70 [ -f Makefile ] && make distclean
71 71
72 # Build the size-optimized binaries. Note that I don't want to 72 # Build the size-optimized binaries. Note that I don't want to
73 # provide size-optimized liblzma (shared nor static), because 73 # provide size-optimized liblzma (shared nor static), because
74 # that isn't thread-safe now, and depending on bunch of things, 74 # that isn't thread-safe now, and depending on bunch of things,
75 # maybe it will never be on Windows (pthreads-win32 helps but 75 # maybe it will never be on Windows (pthreads-win32 helps but
76 # static liblzma might bit a bit tricky with it). 76 # static liblzma might bit a bit tricky with it).
77 ./configure \ 77 ./configure \
78 --prefix= \ 78 --prefix= \
79 --disable-nls \ 79 --disable-nls \
80 --disable-scripts \
80 --disable-threads \ 81 --disable-threads \
81 --disable-shared \ 82 --disable-shared \
82 --enable-small \ 83 --enable-small \
83 --build="$BUILD" \ 84 --build="$BUILD" \
84 CFLAGS="$CFLAGS -Os" 85 CFLAGS="$CFLAGS -Os"
85 make check 86 make check
86 87
87 mkdir -pv "$DESTDIR" 88 mkdir -pv "$DESTDIR"
88 cp -v src/xzdec/{xz,lzma}dec.exe src/lzmainfo/lzmainfo.exe "$DESTDIR" 89 cp -v src/xzdec/{xz,lzma}dec.exe src/lzmainfo/lzmainfo.exe "$DESTDIR"
89 90
90 make distclean 91 make distclean
91 92
92 # Build the normal speed-optimized binaries. Note that while 93 # Build the normal speed-optimized binaries. Note that while
93 # --disable-threads has been documented to make some things 94 # --disable-threads has been documented to make some things
94 # thread-unsafe, it's not actually true with this combination 95 # thread-unsafe, it's not actually true with this combination
95 # of configure flags in XZ Utils 5.0.x. Things can (and probably 96 # of configure flags in XZ Utils 5.0.x. Things can (and probably
96 # will) change after 5.0.x, and this script will be updated too. 97 # will) change after 5.0.x, and this script will be updated too.
97 ./configure \ 98 ./configure \
98 --prefix= \ 99 --prefix= \
99 --disable-nls \ 100 --disable-nls \
101 --disable-scripts \
100 --disable-threads \ 102 --disable-threads \
101 --build="$BUILD" \ 103 --build="$BUILD" \
102 CFLAGS="$CFLAGS -O2" 104 CFLAGS="$CFLAGS -O2"
103 make -C src/liblzma 105 make -C src/liblzma
104 make -C src/xz LDFLAGS=-static 106 make -C src/xz LDFLAGS=-static
105 make -C tests check 107 make -C tests check
106 108
107 cp -v src/xz/xz.exe src/liblzma/.libs/liblzma.a "$DESTDIR" 109 cp -v src/xz/xz.exe src/liblzma/.libs/liblzma.a "$DESTDIR"
108 cp -v src/liblzma/.libs/liblzma-*.dll "$DESTDIR/liblzma.dll" 110 cp -v src/liblzma/.libs/liblzma-*.dll "$DESTDIR/liblzma.dll"
109 111
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if [ ! -f ../windows/COPYING-Windows.txt ]; then 194 if [ ! -f ../windows/COPYING-Windows.txt ]; then
193 echo 195 echo
194 echo "NOTE: windows/COPYING-Windows.txt doesn't exists." 196 echo "NOTE: windows/COPYING-Windows.txt doesn't exists."
195 echo " MinGW(-w64) runtime copyright information" 197 echo " MinGW(-w64) runtime copyright information"
196 echo " is not included in the package." 198 echo " is not included in the package."
197 fi 199 fi
198 200
199 echo 201 echo
200 echo "Build completed successfully." 202 echo "Build completed successfully."
201 echo 203 echo
OLDNEW
« README.chromium ('K') | « windows/README-Windows.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698