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