diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-13 21:50:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-13 21:50:07 +0300 |
commit | eefb212caca31d46f1d36ce272d4bc6842c039f0 (patch) | |
tree | a7736bff39c0920e0522ce00813602bde4710c22 /packaging/nacl/ports/regal/build.sh | |
parent | 9406e61b5ee96e25b10fbf915725f69d6f6ceeb8 (diff) | |
download | mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.gz mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.bz2 mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.xz mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.zip |
Add chrome ports patches for build manaplus on nacl.
Diffstat (limited to 'packaging/nacl/ports/regal/build.sh')
-rw-r--r-- | packaging/nacl/ports/regal/build.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packaging/nacl/ports/regal/build.sh b/packaging/nacl/ports/regal/build.sh new file mode 100644 index 000000000..5ba6bd0bf --- /dev/null +++ b/packaging/nacl/ports/regal/build.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Copyright (c) 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. + +BUILD_DIR=${SRC_DIR} + +MAKE_ARGS="SYSTEM=nacl-${NACL_ARCH} NACL_LIBC=${NACL_LIBC} -j${OS_JOBS}" + +BuildStep() { + LogExecute make ${MAKE_ARGS} clobber + LogExecute make ${MAKE_ARGS} regal.lib +} + +TestStep() { +# LogExecute make ${MAKE_ARGS} test + return 0 +} + +InstallStep() { + MakeDir ${DESTDIR_LIB} + MakeDir ${DESTDIR_INCLUDE} + LogExecute cp -a lib/nacl-${NACL_ARCH}/libRegal*.a ${DESTDIR_LIB}/ + LogExecute cp -a lib/nacl-${NACL_ARCH}/libglslopt.a ${DESTDIR_LIB}/ + if [ "${NACL_SHARED}" = 1 ]; then + LogExecute cp -a lib/nacl-${NACL_ARCH}/libRegal*.so* ${DESTDIR_LIB}/ + fi + LogExecute cp -r include/GL ${DESTDIR_INCLUDE}/ +} |