| 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 # Currently this package only builds on linux. | 7 # Currently this package only builds on linux. |
| 10 # The build relies on certain host binaries and python's configure | 8 # The build relies on certain host binaries and python's configure |
| 11 # requires us to set --build= as well as --host=. | 9 # requires us to set --build= as well as --host=. |
| 12 | 10 |
| 13 HOST_BUILD_DIR=${WORK_DIR}/build_host | 11 HOST_BUILD_DIR=${WORK_DIR}/build_host |
| 14 export PATH=${HOST_BUILD_DIR}/inst/usr/local/bin:${PATH} | 12 export PATH=${HOST_BUILD_DIR}/inst/usr/local/bin:${PATH} |
| 15 | 13 |
| 16 SetOptFlags() { | 14 SetOptFlags() { |
| 17 # Python build system sets its own opt flags | 15 # Python build system sets its own opt flags |
| 18 return | 16 return |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 if [ "${NACL_DEBUG}" = 1 ]; then | 43 if [ "${NACL_DEBUG}" = 1 ]; then |
| 46 EXTRA_CONFIGURE_ARGS+=" --with-pydebug" | 44 EXTRA_CONFIGURE_ARGS+=" --with-pydebug" |
| 47 fi | 45 fi |
| 48 if [ "${TOOLCHAIN}" = "glibc" -a "${NACL_ARCH}" = "arm" ]; then | 46 if [ "${TOOLCHAIN}" = "glibc" -a "${NACL_ARCH}" = "arm" ]; then |
| 49 # Ignore sys/xattr.h, since glibc/arm toolchain does not define | 47 # Ignore sys/xattr.h, since glibc/arm toolchain does not define |
| 50 # XATTR_SIZE_MAX: | 48 # XATTR_SIZE_MAX: |
| 51 # https://code.google.com/p/nativeclient/issues/detail?id=4300 | 49 # https://code.google.com/p/nativeclient/issues/detail?id=4300 |
| 52 export ac_cv_header_sys_xattr_h=no | 50 export ac_cv_header_sys_xattr_h=no |
| 53 fi | 51 fi |
| 54 NACLPORTS_LIBS+=" -ltermcap" | 52 NACLPORTS_LIBS+=" -ltermcap" |
| 55 NACLPORTS_LIBS+=" ${NACL_CLI_MAIN_LIB}" | |
| 56 if [ "${NACL_LIBC}" = "newlib" ]; then | 53 if [ "${NACL_LIBC}" = "newlib" ]; then |
| 57 # When python builds with wait3/wait4 support it also expects struct rusage | 54 # When python builds with wait3/wait4 support it also expects struct rusage |
| 58 # to have certain fields and newlib lacks. | 55 # to have certain fields and newlib lacks. |
| 59 export ac_cv_func_wait3=no | 56 export ac_cv_func_wait3=no |
| 60 export ac_cv_func_wait4=no | 57 export ac_cv_func_wait4=no |
| 61 fi | 58 fi |
| 59 EnableCliMain |
| 62 EnableGlibcCompat | 60 EnableGlibcCompat |
| 63 DefaultConfigureStep | 61 DefaultConfigureStep |
| 64 if [ "${NACL_LIBC}" = "newlib" ]; then | 62 if [ "${NACL_LIBC}" = "newlib" ]; then |
| 65 LogExecute cp ${START_DIR}/Setup.local Modules/ | 63 LogExecute cp ${START_DIR}/Setup.local Modules/ |
| 66 fi | 64 fi |
| 67 } | 65 } |
| 68 | 66 |
| 69 BuildStep() { | 67 BuildStep() { |
| 70 export CROSS_COMPILE=true | 68 export CROSS_COMPILE=true |
| 71 export MAKEFLAGS="PGEN=${HOST_BUILD_DIR}/Parser/pgen" | 69 export MAKEFLAGS="PGEN=${HOST_BUILD_DIR}/Parser/pgen" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 InstallNaClTerm ${assembly_dir} | 113 InstallNaClTerm ${assembly_dir} |
| 116 LogExecute cp ${START_DIR}/background.js ${assembly_dir} | 114 LogExecute cp ${START_DIR}/background.js ${assembly_dir} |
| 117 LogExecute cp ${START_DIR}/python.js ${assembly_dir} | 115 LogExecute cp ${START_DIR}/python.js ${assembly_dir} |
| 118 LogExecute cp ${START_DIR}/index.html ${assembly_dir} | 116 LogExecute cp ${START_DIR}/index.html ${assembly_dir} |
| 119 LogExecute cp ${START_DIR}/icon_16.png ${assembly_dir} | 117 LogExecute cp ${START_DIR}/icon_16.png ${assembly_dir} |
| 120 LogExecute cp ${START_DIR}/icon_48.png ${assembly_dir} | 118 LogExecute cp ${START_DIR}/icon_48.png ${assembly_dir} |
| 121 LogExecute cp ${START_DIR}/icon_128.png ${assembly_dir} | 119 LogExecute cp ${START_DIR}/icon_128.png ${assembly_dir} |
| 122 ChangeDir ${PUBLISH_DIR} | 120 ChangeDir ${PUBLISH_DIR} |
| 123 CreateWebStoreZip python3-${VERSION}.zip python3 | 121 CreateWebStoreZip python3-${VERSION}.zip python3 |
| 124 } | 122 } |
| OLD | NEW |