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

Unified Diff: ports/libvpx/build.sh

Issue 1409393006: Add libvpx port (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/ffmpeg/pkg_info ('k') | ports/libvpx/pkg_info » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/libvpx/build.sh
diff --git a/ports/libvpx/build.sh b/ports/libvpx/build.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a396b2c50d6ba6f70073f336b6d8f525d23a2ddd
--- /dev/null
+++ b/ports/libvpx/build.sh
@@ -0,0 +1,26 @@
+# Copyright 2015 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+OS_JOBS=1
+
+if [[ ${NACL_LIBC} == newlib ]]; then
+ NACLPORTS_CXXFLAGS+=" -std=gnu++11"
+fi
+
+if [[ ${NACL_ARCH} == arm && ${TOOLCHAIN} == glibc ]]; then
+ # Force -O2 rather then -O3 to work around arm gcc bug
+ EXTRA_CONFIGURE_ARGS="--enable-small"
+fi
+
+SetOptFlags() {
+ # libvps sets it own optimisation flags
+ return
+}
+
+ConfigureStep() {
+ SetupCrossEnvironment
+ LogExecute ${SRC_DIR}/configure --target=generic-gnu --cpu=le32 \
+ --disable-unit-tests --prefix=${PREFIX} \
+ --extra-cflags="${NACLPORTS_CPPFLAGS}" ${EXTRA_CONFIGURE_ARGS:-}
+}
« no previous file with comments | « ports/ffmpeg/pkg_info ('k') | ports/libvpx/pkg_info » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698