blob: 5ba6bd0bfe3206787531d8a9a22900413049a544 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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}/
}
|