Chromium Code Reviews| 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 # The host build of this tool is needed by its dependents. | 5 # The host build of this tool is needed by its dependents. |
| 6 HOST_BUILD_DIR=${WORK_DIR}/build_host | 6 HOST_BUILD_DIR=${WORK_DIR}/build_host |
| 7 HOST_INSTALL_DIR=${WORK_DIR}/install_host | 7 HOST_INSTALL_DIR=${WORK_DIR}/install_host |
| 8 | 8 |
| 9 EXECUTABLES="bdftruncate${NACL_EXEEXT} ucs2any${NACL_EXEEXT}" | 9 EXECUTABLES="bdftruncate${NACL_EXEEXT} ucs2any${NACL_EXEEXT}" |
| 10 | 10 |
| 11 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main" | |
| 12 NACLPORTS_LDFLAGS+=" -Dmain=nacl_main" | |
| 13 export LIBS="${NACL_CLI_MAIN_LIB}" | 11 export LIBS="${NACL_CLI_MAIN_LIB}" |
|
binji
2015/10/27 21:52:38
here too
Sam Clegg
2015/10/28 17:06:31
Done.
| |
| 14 | 12 |
| 15 EnableGlibcCompat | 13 EnableGlibcCompat |
| 16 | 14 |
| 17 BuildForHost() { | 15 BuildForHost() { |
| 18 Banner "Building for Host" | 16 Banner "Building for Host" |
| 19 MakeDir ${HOST_BUILD_DIR} | 17 MakeDir ${HOST_BUILD_DIR} |
| 20 ChangeDir ${HOST_BUILD_DIR} | 18 ChangeDir ${HOST_BUILD_DIR} |
| 21 CFLAGS="" LDFLAGS="" LIBS="" CC="gcc -m32" \ | 19 CFLAGS="" LDFLAGS="" LIBS="" CC="gcc -m32" \ |
| 22 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} | 20 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} |
| 23 LogExecute make -j${OS_JOBS} | 21 LogExecute make -j${OS_JOBS} |
| 24 LogExecute make install | 22 LogExecute make install |
| 25 } | 23 } |
| 26 | 24 |
| 27 ConfigureStep() { | 25 ConfigureStep() { |
| 28 BuildForHost | 26 BuildForHost |
| 29 Banner "Building for NaCl" | 27 Banner "Building for NaCl" |
| 30 ChangeDir ${BUILD_DIR} | 28 ChangeDir ${BUILD_DIR} |
| 31 DefaultConfigureStep | 29 DefaultConfigureStep |
| 32 } | 30 } |
| OLD | NEW |