| 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=python${NACL_EXEEXT} | 5 EXECUTABLES=python${NACL_EXEEXT} |
| 6 | 6 |
| 7 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main" | |
| 8 | |
| 9 # This build relies on certain host binaries and python's configure | 7 # This build relies on certain host binaries and python's configure |
| 10 # requires us to set --build= as well as --host=. | 8 # requires us to set --build= as well as --host=. |
| 11 HOST_BUILD_DIR=${WORK_DIR}/build_host | 9 HOST_BUILD_DIR=${WORK_DIR}/build_host |
| 12 | 10 |
| 13 # Workaround for arm-gcc bug: | 11 # Workaround for arm-gcc bug: |
| 14 # https://code.google.com/p/nativeclient/issues/detail?id=3205 | 12 # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
| 15 # TODO(sbc): remove this once the issue is fixed | 13 # TODO(sbc): remove this once the issue is fixed |
| 16 if [ "${NACL_ARCH}" = "arm" ]; then | 14 if [ "${NACL_ARCH}" = "arm" ]; then |
| 17 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" | 15 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" |
| 18 fi | 16 fi |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 # Disable ipv6 since configure claims it requires a working getaddrinfo | 29 # Disable ipv6 since configure claims it requires a working getaddrinfo |
| 32 # which we do not provide. TODO(sbc): remove this once nacl_io supports | 30 # which we do not provide. TODO(sbc): remove this once nacl_io supports |
| 33 # getaddrinfo. | 31 # getaddrinfo. |
| 34 EXTRA_CONFIGURE_ARGS+=" --disable-ipv6" | 32 EXTRA_CONFIGURE_ARGS+=" --disable-ipv6" |
| 35 EXTRA_CONFIGURE_ARGS+=" --with-suffix=${NACL_EXEEXT}" | 33 EXTRA_CONFIGURE_ARGS+=" --with-suffix=${NACL_EXEEXT}" |
| 36 EXTRA_CONFIGURE_ARGS+=" --build=x86_64-linux-gnu" | 34 EXTRA_CONFIGURE_ARGS+=" --build=x86_64-linux-gnu" |
| 37 if [ "${NACL_DEBUG}" = 1 ]; then | 35 if [ "${NACL_DEBUG}" = 1 ]; then |
| 38 EXTRA_CONFIGURE_ARGS+=" --with-pydebug" | 36 EXTRA_CONFIGURE_ARGS+=" --with-pydebug" |
| 39 fi | 37 fi |
| 40 NACLPORTS_LIBS+=" -ltermcap" | 38 NACLPORTS_LIBS+=" -ltermcap" |
| 41 NACLPORTS_LIBS+=" ${NACL_CLI_MAIN_LIB}" | |
| 42 if [ "${NACL_LIBC}" = "newlib" ]; then | 39 if [ "${NACL_LIBC}" = "newlib" ]; then |
| 43 # When python builds with wait3/wait4 support it also expects struct rusage | 40 # When python builds with wait3/wait4 support it also expects struct rusage |
| 44 # to have certain fields and newlib lacks. | 41 # to have certain fields and newlib lacks. |
| 45 export ac_cv_func_wait3=no | 42 export ac_cv_func_wait3=no |
| 46 export ac_cv_func_wait4=no | 43 export ac_cv_func_wait4=no |
| 47 fi | 44 fi |
| 45 EnableCliMain |
| 48 EnableGlibcCompat | 46 EnableGlibcCompat |
| 49 DefaultConfigureStep | 47 DefaultConfigureStep |
| 50 if [ "${NACL_LIBC}" = "newlib" ]; then | 48 if [ "${NACL_LIBC}" = "newlib" ]; then |
| 51 # For static linking we copy in a pre-baked Setup.local | 49 # For static linking we copy in a pre-baked Setup.local |
| 52 LogExecute cp ${START_DIR}/Setup.local Modules/ | 50 LogExecute cp ${START_DIR}/Setup.local Modules/ |
| 53 fi | 51 fi |
| 54 } | 52 } |
| 55 | 53 |
| 56 BuildStep() { | 54 BuildStep() { |
| 57 export CROSS_COMPILE=true | 55 export CROSS_COMPILE=true |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 InstallNaClTerm ${assembly_dir} | 111 InstallNaClTerm ${assembly_dir} |
| 114 LogExecute cp ${START_DIR}/background.js ${assembly_dir} | 112 LogExecute cp ${START_DIR}/background.js ${assembly_dir} |
| 115 LogExecute cp ${START_DIR}/python.js ${assembly_dir} | 113 LogExecute cp ${START_DIR}/python.js ${assembly_dir} |
| 116 LogExecute cp ${START_DIR}/index.html ${assembly_dir} | 114 LogExecute cp ${START_DIR}/index.html ${assembly_dir} |
| 117 LogExecute cp ${START_DIR}/icon_16.png ${assembly_dir} | 115 LogExecute cp ${START_DIR}/icon_16.png ${assembly_dir} |
| 118 LogExecute cp ${START_DIR}/icon_48.png ${assembly_dir} | 116 LogExecute cp ${START_DIR}/icon_48.png ${assembly_dir} |
| 119 LogExecute cp ${START_DIR}/icon_128.png ${assembly_dir} | 117 LogExecute cp ${START_DIR}/icon_128.png ${assembly_dir} |
| 120 ChangeDir ${PUBLISH_DIR} | 118 ChangeDir ${PUBLISH_DIR} |
| 121 CreateWebStoreZip python.zip . | 119 CreateWebStoreZip python.zip . |
| 122 } | 120 } |
| OLD | NEW |