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

Side by Side Diff: chrome/installer/linux/common/installer.include

Issue 2868873003: Add SwiftShader libraries to Linux installer package. (Closed)
Patch Set: Created 3 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
« 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 # Recursively replace @@include@@ template variables with the referenced file, 1 # Recursively replace @@include@@ template variables with the referenced file,
2 # and write the resulting text to stdout. 2 # and write the resulting text to stdout.
3 process_template_includes() { 3 process_template_includes() {
4 INCSTACK+="$1->" 4 INCSTACK+="$1->"
5 # Includes are relative to the file that does the include. 5 # Includes are relative to the file that does the include.
6 INCDIR=$(dirname $1) 6 INCDIR=$(dirname $1)
7 # Clear IFS so 'read' doesn't trim whitespace 7 # Clear IFS so 'read' doesn't trim whitespace
8 local OLDIFS="$IFS" 8 local OLDIFS="$IFS"
9 IFS='' 9 IFS=''
10 while read -r LINE 10 while read -r LINE
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 install -m 644 -s "${BUILDDIR}/libwidevinecdmadapter.so" "${STAGEDIR}/${INST ALLDIR}/" 162 install -m 644 -s "${BUILDDIR}/libwidevinecdmadapter.so" "${STAGEDIR}/${INST ALLDIR}/"
163 install -m 644 "${BUILDDIR}/libwidevinecdm.so" "${STAGEDIR}/${INSTALLDIR}/" 163 install -m 644 "${BUILDDIR}/libwidevinecdm.so" "${STAGEDIR}/${INSTALLDIR}/"
164 fi 164 fi
165 165
166 # ANGLE 166 # ANGLE
167 if [ "${CHANNEL}" != "stable" ]; then 167 if [ "${CHANNEL}" != "stable" ]; then
168 install -m 644 "${BUILDDIR}/libGLESv2.so" "${STAGEDIR}/${INSTALLDIR}/" 168 install -m 644 "${BUILDDIR}/libGLESv2.so" "${STAGEDIR}/${INSTALLDIR}/"
169 install -m 644 "${BUILDDIR}/libEGL.so" "${STAGEDIR}/${INSTALLDIR}/" 169 install -m 644 "${BUILDDIR}/libEGL.so" "${STAGEDIR}/${INSTALLDIR}/"
170 fi 170 fi
171 171
172 # SwiftShader
173 if [ -f "${BUILDDIR}/swiftshader/libEGL.so" ]; then
mmoss 2017/05/08 22:49:29 Unlike the ANGLE files above, this applies to all
174 install -m 755 -d "${STAGEDIR}/${INSTALLDIR}/swiftshader/"
175 install -m 644 "${BUILDDIR}/swiftshader/libEGL.so" "${STAGEDIR}/${INSTALLDIR }/swiftshader/"
176 install -m 644 "${BUILDDIR}/swiftshader/libGLESv2.so" "${STAGEDIR}/${INSTALL DIR}/swiftshader/"
177 fi
178
172 # libc++ 179 # libc++
173 if [ -f "${BUILDDIR}/lib/libc++.so" ]; then 180 if [ -f "${BUILDDIR}/lib/libc++.so" ]; then
174 install -m 755 -d "${STAGEDIR}/${INSTALLDIR}/lib/" 181 install -m 755 -d "${STAGEDIR}/${INSTALLDIR}/lib/"
175 182
176 install -m 644 -s "${BUILDDIR}/lib/libc++.so" "${STAGEDIR}/${INSTALLDIR}/lib /" 183 install -m 644 -s "${BUILDDIR}/lib/libc++.so" "${STAGEDIR}/${INSTALLDIR}/lib /"
177 fi 184 fi
178 185
179 186
180 # nacl_helper and nacl_helper_bootstrap 187 # nacl_helper and nacl_helper_bootstrap
181 # Don't use "-s" (strip) because this runs binutils "strip", which 188 # Don't use "-s" (strip) because this runs binutils "strip", which
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" 253 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml"
247 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}. xml" 254 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}. xml"
248 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ 255 process_template "${BUILDDIR}/installer/common/default-app-block.template" \
249 "${STAGEDIR}${INSTALLDIR}/default-app-block" 256 "${STAGEDIR}${INSTALLDIR}/default-app-block"
250 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" 257 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block"
251 258
252 # documentation 259 # documentation
253 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ 260 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \
254 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" 261 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1"
255 } 262 }
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