9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
-
-
+
+
+
+
+
+
+
+
|
exit 1
fi
cd "$(dirname "${ourScript}")" || exit 1
patchDir="$(pwd)/patches"
if [ -z "${NACL_SDK_PEPPER}" ]; then
echo "error: Please set NACL_SDK_PEPPER to the path of the current pepper target" >&2
if [ -z "${NACL_SDK_ROOT}" ]; then
echo "error: Please set NACL_SDK_ROOT to the path of the current NaCl SDK target" >&2
exit 1
fi
if [ ! -d "${NACL_SDK_ROOT}/toolchain" ]; then
echo "error: Invalid NACL_SDK_ROOT, not found: ${NACL_SDK_ROOT}/toolchain" >&2
exit 1
fi
function download() {
local url file hash
local hashMethod
|
349
350
351
352
353
354
355
356
357
358
359
360
|
355
356
357
358
359
360
361
362
363
364
365
366
|
-
+
|
;;
*)
echo "error: Unrecognized platform output: \"${buildOutputType}\"" >&2
exit 1
;;
esac
PATH="${PATH}:${NACL_SDK_PEPPER}/toolchain/${naclTopDir}/bin" buildCACKey "${naclPlatform}" --host="${naclPlatform}" CC=${naclPlatform}-gcc LD=${naclPlatform}-ld OBJCOPY=${naclPlatform}-objcopy STRIP=${naclPlatform}-strip || exit 1
PATH="${PATH}:${NACL_SDK_ROOT}/toolchain/${naclTopDir}/bin" buildCACKey "${naclPlatform}" --host="${naclPlatform}" CC=${naclPlatform}-gcc LD=${naclPlatform}-ld OBJCOPY=${naclPlatform}-objcopy STRIP=${naclPlatform}-strip || exit 1
cleanup
exit 0
|