| 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 EXECUTABLES=civetweb | 7 EXECUTABLES=civetweb |
| 10 | 8 |
| 11 BuildStep() { | 9 BuildStep() { |
| 12 Banner "Building ${PACKAGE_NAME}" | 10 Banner "Building ${PACKAGE_NAME}" |
| 13 | 11 |
| 14 export CFLAGS="${NACL_CFLAGS}" | 12 export CFLAGS="${NACL_CFLAGS}" |
| 15 export LDFLAGS="${NACL_LDFLAGS}" | 13 export LDFLAGS="${NACL_LDFLAGS}" |
| 16 | 14 |
| 17 CFLAGS+=" -DNO_SSL -DNO_CGI" | 15 CFLAGS+=" -DNO_SSL -DNO_CGI" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 | 46 |
| 49 InstallStep() { | 47 InstallStep() { |
| 50 Banner "Installing ${PACKAGE_NAME}" | 48 Banner "Installing ${PACKAGE_NAME}" |
| 51 | 49 |
| 52 LogExecute cp libcivetweb.a $NACL_TOOLCHAIN_PREFIX/lib | 50 LogExecute cp libcivetweb.a $NACL_TOOLCHAIN_PREFIX/lib |
| 53 MakeDir $NACL_TOOLCHAIN_PREFIX/include/civetweb | 51 MakeDir $NACL_TOOLCHAIN_PREFIX/include/civetweb |
| 54 LogExecute cp include/civetweb.h $NACL_TOOLCHAIN_PREFIX/include/civetweb | 52 LogExecute cp include/civetweb.h $NACL_TOOLCHAIN_PREFIX/include/civetweb |
| 55 LogExecute cp include/CivetServer.h $NACL_TOOLCHAIN_PREFIX/include/civetweb | 53 LogExecute cp include/CivetServer.h $NACL_TOOLCHAIN_PREFIX/include/civetweb |
| 56 PublishStep | 54 PublishStep |
| 57 } | 55 } |
| 58 | |
| 59 PackageInstall | |
| 60 exit 0 | |
| OLD | NEW |