OLD | NEW |
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 export EXTRA_LIBS="-lnacl_spawn ${NACL_CLI_MAIN_LIB} \ | 5 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} \ |
6 -lppapi_simple -lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}" | 6 -lppapi_simple -lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}" |
7 | 7 |
8 # --with-build-sysroot is necessary to run "fixincl" | 8 # --with-build-sysroot is necessary to run "fixincl" |
9 # properly. Without this option, GCC's build system tries to create | 9 # properly. Without this option, GCC's build system tries to create |
10 # "include-fixed" based on the host's include directory, which is | 10 # "include-fixed" based on the host's include directory, which is |
11 # not compatible with nacl-gcc. | 11 # not compatible with nacl-gcc. |
12 EXTRA_CONFIGURE_ARGS="\ | 12 EXTRA_CONFIGURE_ARGS="\ |
13 --enable-languages=c,c++ --disable-nls \ | 13 --enable-languages=c,c++ --disable-nls \ |
14 --target=x86_64-nacl \ | 14 --target=x86_64-nacl \ |
15 --disable-libstdcxx-pch --enable-threads=nacl" | 15 --disable-libstdcxx-pch --enable-threads=nacl" |
(...skipping 12 matching lines...) Expand all Loading... |
28 cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT} | 28 cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT} |
29 | 29 |
30 pushd ${PUBLISH_DIR} | 30 pushd ${PUBLISH_DIR} |
31 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | 31 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ |
32 ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \ | 32 ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \ |
33 -s . \ | 33 -s . \ |
34 -o ${name}.nmf | 34 -o ${name}.nmf |
35 popd | 35 popd |
36 done | 36 done |
37 } | 37 } |
OLD | NEW |