| OLD | NEW |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 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 NACLPORTS_CFLAGS+=" -std=gnu99" | 5 NACLPORTS_CFLAGS+=" -std=gnu99" |
| 6 | 6 |
| 7 EXECUTABLES=" | 7 EXECUTABLES=" |
| 8 checkkeys${NACL_EXEEXT} | 8 checkkeys${NACL_EXEEXT} |
| 9 controllermap${NACL_EXEEXT} | 9 controllermap${NACL_EXEEXT} |
| 10 loopwave${NACL_EXEEXT} | 10 loopwave${NACL_EXEEXT} |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 teststreaming${NACL_EXEEXT} | 51 teststreaming${NACL_EXEEXT} |
| 52 testthread${NACL_EXEEXT} | 52 testthread${NACL_EXEEXT} |
| 53 testtimer${NACL_EXEEXT} | 53 testtimer${NACL_EXEEXT} |
| 54 testver${NACL_EXEEXT} | 54 testver${NACL_EXEEXT} |
| 55 testviewport${NACL_EXEEXT} | 55 testviewport${NACL_EXEEXT} |
| 56 testwm2${NACL_EXEEXT} | 56 testwm2${NACL_EXEEXT} |
| 57 torturethread${NACL_EXEEXT} | 57 torturethread${NACL_EXEEXT} |
| 58 " | 58 " |
| 59 | 59 |
| 60 ConfigureStep() { | 60 ConfigureStep() { |
| 61 Banner "Autogen ${PACKAGE_NAME}" |
| 61 pushd ${SRC_DIR}/test | 62 pushd ${SRC_DIR}/test |
| 62 ./autogen.sh | 63 LogExecute ./autogen.sh |
| 63 popd | 64 popd |
| 64 | 65 |
| 65 Banner "Configuring ${PACKAGE_NAME}" | 66 Banner "Configure ${PACKAGE_NAME}" |
| 66 SetupCrossEnvironment | 67 SetupCrossEnvironment |
| 67 | 68 |
| 68 local conf_host=${NACL_CROSS_PREFIX} | |
| 69 if [ ${NACL_ARCH} = "pnacl" ]; then | |
| 70 # The PNaCl tools use "pnacl-" as the prefix, but config.sub | |
| 71 # does not know about "pnacl". It only knows about "le32-nacl". | |
| 72 # Unfortunately, most of the config.subs here are so old that | |
| 73 # it doesn't know about that "le32" either. So we just say "nacl". | |
| 74 conf_host="nacl" | |
| 75 fi | |
| 76 | |
| 77 CFLAGS="${CPPFLAGS} ${CFLAGS}" | 69 CFLAGS="${CPPFLAGS} ${CFLAGS}" |
| 78 LIBS="${LDFLAGS}" LogExecute ${SRC_DIR}/test/configure \ | 70 LIBS="${LDFLAGS}" |
| 79 --host=${conf_host} \ | 71 LogExecute ${SRC_DIR}/test/configure \ |
| 80 --prefix=${PREFIX} \ | 72 --host=${CONF_HOST} \ |
| 81 --disable-assembly \ | 73 --build=${CONF_BUILD} \ |
| 82 --disable-pthread-sem | 74 --prefix=${PREFIX} |
| 83 } | 75 } |
| 84 | 76 |
| 85 InstallStep() { | 77 InstallStep() { |
| 86 Remove ${PUBLISH_DIR} | 78 Remove ${PUBLISH_DIR} |
| 87 MakeDir ${PUBLISH_DIR} | 79 MakeDir ${PUBLISH_DIR} |
| 88 LogExecute cp *${NACL_EXEEXT} ${PUBLISH_DIR} | 80 LogExecute cp *${NACL_EXEEXT} ${PUBLISH_DIR} |
| 89 ChangeDir ${SRC_DIR}/test | 81 ChangeDir ${SRC_DIR}/test |
| 90 LogExecute cp *.bmp *.wav *.xbm *.dat *.txt ${PUBLISH_DIR} | 82 LogExecute cp *.bmp *.wav *.xbm *.dat *.txt ${PUBLISH_DIR} |
| 91 ChangeDir ${PUBLISH_DIR} | 83 ChangeDir ${PUBLISH_DIR} |
| 92 for NEXE in ${EXECUTABLES}; do | 84 for NEXE in ${EXECUTABLES}; do |
| 93 LogExecute "${NACL_SDK_ROOT}/tools/create_html.py" ${NEXE} | 85 LogExecute "${NACL_SDK_ROOT}/tools/create_html.py" ${NEXE} |
| 94 done | 86 done |
| 95 if [ ${NACL_ARCH} = "pnacl" ]; then | 87 if [ ${NACL_ARCH} = "pnacl" ]; then |
| 96 sed -i.bak 's/x-nacl/x-pnacl/' *.html | 88 sed -i.bak 's/x-nacl/x-pnacl/' *.html |
| 97 fi | 89 fi |
| 98 } | 90 } |
| OLD | NEW |