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

Side by Side Diff: tools/clang/scripts/package.sh

Issue 281753002: Bundle libc++ headers with clang. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: just use bootstrap Created 6 years, 7 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
« no previous file with comments | « no previous file | 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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script will check out llvm and clang, and then package the results up 6 # This script will check out llvm and clang, and then package the results up
7 # to a tgz file. 7 # to a tgz file.
8 8
9 gcc_toolchain= 9 gcc_toolchain=
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 # Copy clang into pdir, symlink clang++ to it. 99 # Copy clang into pdir, symlink clang++ to it.
100 cp "${LLVM_BIN_DIR}/clang" $PDIR/bin/ 100 cp "${LLVM_BIN_DIR}/clang" $PDIR/bin/
101 (cd $PDIR/bin && ln -sf clang clang++) 101 (cd $PDIR/bin && ln -sf clang clang++)
102 cp "${LLVM_BIN_DIR}/llvm-symbolizer" $PDIR/bin/ 102 cp "${LLVM_BIN_DIR}/llvm-symbolizer" $PDIR/bin/
103 if [ "$(uname -s)" = "Darwin" ]; then 103 if [ "$(uname -s)" = "Darwin" ]; then
104 cp "${LLVM_BIN_DIR}/libc++.1.${SO_EXT}" $PDIR/bin/ 104 cp "${LLVM_BIN_DIR}/libc++.1.${SO_EXT}" $PDIR/bin/
105 (cd $PDIR/bin && ln -sf libc++.1.dylib libc++.dylib) 105 (cd $PDIR/bin && ln -sf libc++.1.dylib libc++.dylib)
106 fi 106 fi
107 107
108 # Copy libc++ headers.
109 mkdir $PDIR/include
110 cp -R "${LLVM_BOOTSTRAP_INSTALL_DIR}/include/c++" $PDIR/include
111
108 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we 112 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we
109 # care about. 113 # care about.
110 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib 114 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib
111 115
112 BLINKGCPLUGIN_LIBNAME=\ 116 BLINKGCPLUGIN_LIBNAME=\
113 $(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \ 117 $(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \
114 | cut -d ' ' -f 3) 118 | cut -d ' ' -f 3)
115 cp "${LLVM_LIB_DIR}/lib${BLINKGCPLUGIN_LIBNAME}.${SO_EXT}" $PDIR/lib 119 cp "${LLVM_LIB_DIR}/lib${BLINKGCPLUGIN_LIBNAME}.${SO_EXT}" $PDIR/lib
116 120
117 if [[ -n "${gcc_toolchain}" ]]; then 121 if [[ -n "${gcc_toolchain}" ]]; then
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 156
153 if [ "$(uname -s)" = "Darwin" ]; then 157 if [ "$(uname -s)" = "Darwin" ]; then
154 PLATFORM=Mac 158 PLATFORM=Mac
155 else 159 else
156 PLATFORM=Linux_x64 160 PLATFORM=Linux_x64
157 fi 161 fi
158 162
159 echo To upload, run: 163 echo To upload, run:
160 echo gsutil cp -a public-read $PDIR.tgz \ 164 echo gsutil cp -a public-read $PDIR.tgz \
161 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz 165 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698