| 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 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 Loading... |
| 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 InstallStep() { | 41 InstallStep() { |
| 41 DefaultInstallStep | 42 DefaultInstallStep |
| 42 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/curl" | 43 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/curl" |
| 43 | 44 |
| 44 if [ "${NACL_SHARED}" = "1" ]; then | 45 if [ "${NACL_SHARED}" = "1" ]; then |
| (...skipping 27 matching lines...) Expand all Loading... |
| 72 ${PUBLISH_DIR}/curl_ppapi*${NACL_EXEEXT} \ | 73 ${PUBLISH_DIR}/curl_ppapi*${NACL_EXEEXT} \ |
| 73 -L${DESTDIR_LIB} \ | 74 -L${DESTDIR_LIB} \ |
| 74 -s . \ | 75 -s . \ |
| 75 -o curl.nmf | 76 -o curl.nmf |
| 76 popd | 77 popd |
| 77 | 78 |
| 78 InstallNaClTerm ${PUBLISH_DIR} | 79 InstallNaClTerm ${PUBLISH_DIR} |
| 79 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} | 80 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} |
| 80 LogExecute cp ${START_DIR}/curl.js ${PUBLISH_DIR} | 81 LogExecute cp ${START_DIR}/curl.js ${PUBLISH_DIR} |
| 81 } | 82 } |
| OLD | NEW |