| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 BuildStep() { | 7 BuildStep() { |
| 10 export EXTRA_CFLAGS="${NACL_CFLAGS}" | 8 export EXTRA_CFLAGS="${NACL_CFLAGS}" |
| 11 export LDFLAGS="${NACL_LDFLAGS} -lppapi_simple -lnacl_io -lppapi_cpp -lppapi" | 9 export LDFLAGS="${NACL_LDFLAGS} -lppapi_simple -lnacl_io -lppapi_cpp -lppapi" |
| 12 if [ "$NACL_GLIBC" = "1" ]; then | 10 if [ "$NACL_GLIBC" = "1" ]; then |
| 13 LDFLAGS+=" -ldl" | 11 LDFLAGS+=" -ldl" |
| 14 fi | 12 fi |
| 15 CC=${NACLCC} LogExecute make clean | 13 CC=${NACLCC} LogExecute make clean |
| 16 CC=${NACLCC} LogExecute make nacl | 14 CC=${NACLCC} LogExecute make nacl |
| 17 } | 15 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 mongoose_*${NACL_EXEEXT} \ | 30 mongoose_*${NACL_EXEEXT} \ |
| 33 -s . \ | 31 -s . \ |
| 34 -o mongoose.nmf | 32 -o mongoose.nmf |
| 35 popd | 33 popd |
| 36 | 34 |
| 37 InstallNaClTerm ${ASSEMBLY_DIR} | 35 InstallNaClTerm ${ASSEMBLY_DIR} |
| 38 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} | 36 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} |
| 39 LogExecute cp ${START_DIR}/mongoose.js ${ASSEMBLY_DIR} | 37 LogExecute cp ${START_DIR}/mongoose.js ${ASSEMBLY_DIR} |
| 40 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} | 38 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} |
| 41 } | 39 } |
| 42 | |
| 43 PackageInstall | |
| 44 exit 0 | |
| OLD | NEW |