| 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 EXECUTABLES=civetweb | 5 EXECUTABLES=civetweb |
| 6 BUILD_DIR=${SRC_DIR} | 6 BUILD_DIR=${SRC_DIR} |
| 7 | 7 |
| 8 EnableCliMain |
| 9 |
| 8 BuildStep() { | 10 BuildStep() { |
| 9 export CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" | 11 export CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" |
| 10 export LDFLAGS="${NACLPORTS_LDFLAGS} ${NACL_CLI_MAIN_LIB}" | 12 export LDFLAGS="${NACLPORTS_LDFLAGS} ${NACLPORTS_LIBS}" |
| 11 | 13 |
| 12 CFLAGS+=" -DNO_SSL -DNO_CGI" | 14 CFLAGS+=" -DNO_SSL -DNO_CGI" |
| 13 if [ "${NACL_LIBC}" = "glibc" ]; then | 15 if [ "${NACL_LIBC}" = "glibc" ]; then |
| 14 LDFLAGS+=" -ldl" | 16 LDFLAGS+=" -ldl" |
| 15 fi | 17 fi |
| 16 | 18 |
| 17 CC=${NACLCC} CXX=${NACLCXX} LogExecute make clean | 19 CC=${NACLCC} CXX=${NACLCXX} LogExecute make clean |
| 18 CC=${NACLCC} CXX=${NACLCXX} LogExecute make WITH_DEBUG=${NACL_DEBUG} \ | 20 CC=${NACLCC} CXX=${NACLCXX} LogExecute make WITH_DEBUG=${NACL_DEBUG} \ |
| 19 TARGET_OS=NACL WITH_CPP=1 all lib | 21 TARGET_OS=NACL WITH_CPP=1 all lib |
| 20 } | 22 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 } | 43 } |
| 42 | 44 |
| 43 InstallStep() { | 45 InstallStep() { |
| 44 MakeDir ${DESTDIR_LIB} | 46 MakeDir ${DESTDIR_LIB} |
| 45 MakeDir ${DESTDIR_INCLUDE} | 47 MakeDir ${DESTDIR_INCLUDE} |
| 46 LogExecute cp libcivetweb.a ${DESTDIR_LIB} | 48 LogExecute cp libcivetweb.a ${DESTDIR_LIB} |
| 47 MakeDir ${DESTDIR_INCLUDE}/civetweb | 49 MakeDir ${DESTDIR_INCLUDE}/civetweb |
| 48 LogExecute cp include/civetweb.h ${DESTDIR_INCLUDE}/civetweb | 50 LogExecute cp include/civetweb.h ${DESTDIR_INCLUDE}/civetweb |
| 49 LogExecute cp include/CivetServer.h ${DESTDIR_INCLUDE}/civetweb | 51 LogExecute cp include/CivetServer.h ${DESTDIR_INCLUDE}/civetweb |
| 50 } | 52 } |
| OLD | NEW |