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

Unified Diff: ports/opencv/build.sh

Issue 76153002: OpenCV 2.4.7 porting to PNaCl (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Last nits and patch extended for all toolchains. Created 7 years, 1 month 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 | « Makefile ('k') | ports/opencv/nacl.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/opencv/build.sh
diff --git a/ports/opencv/build.sh b/ports/opencv/build.sh
new file mode 100755
index 0000000000000000000000000000000000000000..a8ae3b1ca0663a71195df40127cee8056d66d326
--- /dev/null
+++ b/ports/opencv/build.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+# Copyright 2013 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.
+
+source pkg_info
+source ../../build_tools/common.sh
+
+ConfigureStep() {
+ Banner "Configuring ${PACKAGE_NAME}"
+ ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
+ Remove ${NACL_BUILD_SUBDIR}
+ MakeDir ${NACL_BUILD_SUBDIR}
+ cd ${NACL_BUILD_SUBDIR}
+ echo "Directory: $(pwd)"
+
+ CC="${NACLCC}" CXX="${NACLCXX}" cmake ..\
+ -DCMAKE_TOOLCHAIN_FILE=../XCompile-nacl.txt \
+ -DNACLAR=${NACLAR} \
+ -DNACLLD=${NACLLD} \
+ -DNACL_CROSS_PREFIX=${NACL_CROSS_PREFIX} \
+ -DNACL_SDK_ROOT=${NACL_SDK_ROOT} \
+ -DCMAKE_INSTALL_PREFIX=${NACLPORTS_PREFIX} \
+ -DCMAKE_BUILD_TYPE=RELEASE \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DWITH_FFMPEG=OFF \
+ -DWITH_OPENEXR=OFF \
+ -DWITH_CUDA=OFF \
+ -DWITH_JASPER=OFF \
+ -DWITH_JPEG=OFF \
+ -DWITH_OPENCL=OFF \
+ -DBUILD_opencv_apps=OFF \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_PERF_TESTS=OFF
+}
+
+BuildStep() {
+ make clean
+ # opencv build can fail when build with -jN.
+ make
+}
+
+PackageInstall
+exit 0
« no previous file with comments | « Makefile ('k') | ports/opencv/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698