Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: ports/civetweb/build.sh

Issue 907563002: Simplify cli_main (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ports/bash/build.sh ('k') | ports/curl/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « ports/bash/build.sh ('k') | ports/curl/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698