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

Side by Side Diff: ports/curl/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/civetweb/build.sh ('k') | ports/devenv/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 export ac_cv_func_gethostbyname=yes 5 export ac_cv_func_gethostbyname=yes
6 export ac_cv_func_getaddrinfo=no 6 export ac_cv_func_getaddrinfo=no
7 export ac_cv_func_connect=yes 7 export ac_cv_func_connect=yes
8 export LIBS="-lnacl_io -pthread -l${NACL_CPP_LIB}" 8 export LIBS="-lnacl_io -pthread -l${NACL_CPP_LIB}"
9 9
10 if [ "${NACL_LIBC}" = "newlib" ]; then 10 if [ "${NACL_LIBC}" = "newlib" ]; then
(...skipping 13 matching lines...) Expand all
24 # rebuilt. This is the only object that depends on the PPAPI 24 # rebuilt. This is the only object that depends on the PPAPI
25 # define and therefore will differ between PPAPI and sel_ldr 25 # define and therefore will differ between PPAPI and sel_ldr
26 # versions. 26 # versions.
27 Remove src/curl-tool_main.o 27 Remove src/curl-tool_main.o
28 DefaultBuildStep 28 DefaultBuildStep
29 29
30 Banner "Build curl_ppapi" 30 Banner "Build curl_ppapi"
31 Remove src/curl-tool_main.o 31 Remove src/curl-tool_main.o
32 sed -i.bak "s/CFLAGS = /CFLAGS = -DPPAPI /" src/Makefile 32 sed -i.bak "s/CFLAGS = /CFLAGS = -DPPAPI /" src/Makefile
33 sed -i.bak "s/curl\$(EXEEXT)/curl_ppapi\$(EXEEXT)/" src/Makefile 33 sed -i.bak "s/curl\$(EXEEXT)/curl_ppapi\$(EXEEXT)/" src/Makefile
34 local sedlibs="-lppapi_simple,-lnacl_io,-lppapi_cpp,-lppapi,-lcli_main" 34 local sedlibs="-lppapi_simple,-lcli_main,-lnacl_spawn,"
35 sedlibs+="-lnacl_io,-lppapi_cpp,-lppapi"
35 sedlibs="-Wl,--start-group,$sedlibs,--end-group -l${NACL_CPP_LIB}" 36 sedlibs="-Wl,--start-group,$sedlibs,--end-group -l${NACL_CPP_LIB}"
36 sed -i.bak "s/LIBS = \$(BLANK_AT_MAKETIME)/LIBS = ${sedlibs}/" src/Makefile 37 sed -i.bak "s/LIBS = \$(BLANK_AT_MAKETIME)/LIBS = ${sedlibs}/" src/Makefile
37 DefaultBuildStep 38 DefaultBuildStep
38 } 39 }
39 40
40 PublishStep() { 41 PublishStep() {
41 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/curl" 42 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/curl"
42 43
43 if [ "${NACL_SHARED}" = "1" ]; then 44 if [ "${NACL_SHARED}" = "1" ]; then
44 EXECUTABLE_DIR=.libs 45 EXECUTABLE_DIR=.libs
(...skipping 26 matching lines...) Expand all
71 ${PUBLISH_DIR}/curl_ppapi*${NACL_EXEEXT} \ 72 ${PUBLISH_DIR}/curl_ppapi*${NACL_EXEEXT} \
72 -L${DESTDIR_LIB} \ 73 -L${DESTDIR_LIB} \
73 -s . \ 74 -s . \
74 -o curl.nmf 75 -o curl.nmf
75 popd 76 popd
76 77
77 InstallNaClTerm ${PUBLISH_DIR} 78 InstallNaClTerm ${PUBLISH_DIR}
78 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} 79 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR}
79 LogExecute cp ${START_DIR}/curl.js ${PUBLISH_DIR} 80 LogExecute cp ${START_DIR}/curl.js ${PUBLISH_DIR}
80 } 81 }
OLDNEW
« no previous file with comments | « ports/civetweb/build.sh ('k') | ports/devenv/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698