| OLD | NEW |
| 1 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2013 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 BUILD_DIR=${SRC_DIR} | 5 BUILD_DIR=${SRC_DIR} |
| 6 | 6 |
| 7 EnableCliMain |
| 8 |
| 7 BuildStep() { | 9 BuildStep() { |
| 8 export EXTRA_CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" | 10 export EXTRA_CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" |
| 9 export LDFLAGS="${NACLPORTS_LDFLAGS} ${NACL_CLI_MAIN_LIB}" | 11 export LDFLAGS="${NACLPORTS_LDFLAGS} ${NACLPORTS_LIBS}" |
| 10 if [ "$NACL_LIBC" = "glibc" ]; then | 12 if [ "$NACL_LIBC" = "glibc" ]; then |
| 11 LDFLAGS+=" -ldl" | 13 LDFLAGS+=" -ldl" |
| 12 fi | 14 fi |
| 13 CC=${NACLCC} LogExecute make clean | 15 CC=${NACLCC} LogExecute make clean |
| 14 CC=${NACLCC} LogExecute make nacl | 16 CC=${NACLCC} LogExecute make nacl |
| 15 } | 17 } |
| 16 | 18 |
| 17 | 19 |
| 18 InstallStep() { | 20 InstallStep() { |
| 19 MakeDir ${PUBLISH_DIR} | 21 MakeDir ${PUBLISH_DIR} |
| 20 local ASSEMBLY_DIR="${PUBLISH_DIR}/mongoose" | 22 local ASSEMBLY_DIR="${PUBLISH_DIR}/mongoose" |
| 21 MakeDir ${ASSEMBLY_DIR} | 23 MakeDir ${ASSEMBLY_DIR} |
| 22 LogExecute cp mongoose \ | 24 LogExecute cp mongoose \ |
| 23 ${ASSEMBLY_DIR}/mongoose_${NACL_ARCH}${NACL_EXEEXT} | 25 ${ASSEMBLY_DIR}/mongoose_${NACL_ARCH}${NACL_EXEEXT} |
| 24 LogExecute cp ${START_DIR}/index.html ${ASSEMBLY_DIR} | 26 LogExecute cp ${START_DIR}/index.html ${ASSEMBLY_DIR} |
| 25 pushd ${ASSEMBLY_DIR} | 27 pushd ${ASSEMBLY_DIR} |
| 26 python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | 28 python ${NACL_SDK_ROOT}/tools/create_nmf.py \ |
| 27 mongoose_*${NACL_EXEEXT} \ | 29 mongoose_*${NACL_EXEEXT} \ |
| 28 -s . \ | 30 -s . \ |
| 29 -o mongoose.nmf | 31 -o mongoose.nmf |
| 30 popd | 32 popd |
| 31 | 33 |
| 32 InstallNaClTerm ${ASSEMBLY_DIR} | 34 InstallNaClTerm ${ASSEMBLY_DIR} |
| 33 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} | 35 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} |
| 34 LogExecute cp ${START_DIR}/mongoose.js ${ASSEMBLY_DIR} | 36 LogExecute cp ${START_DIR}/mongoose.js ${ASSEMBLY_DIR} |
| 35 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} | 37 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} |
| 36 } | 38 } |
| OLD | NEW |