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 BUILD_DIR=${SRC_DIR} | 5 BUILD_DIR=${SRC_DIR} |
6 MAKE_TARGETS=mtest | 6 MAKE_TARGETS=mtest |
7 EXECUTABLES=mtest/mtest${NACL_EXEEXT} | 7 EXECUTABLES=mtest/mtest${NACL_EXEEXT} |
8 | 8 |
| 9 # Workaround for arm-gcc bug: |
| 10 # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
| 11 # TODO(sbc): remove this once the issue is fixed |
| 12 if [ "${NACL_ARCH}" = "arm" ]; then |
| 13 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" |
| 14 fi |
| 15 |
9 BuildStep() { | 16 BuildStep() { |
10 SetupCrossEnvironment | 17 SetupCrossEnvironment |
11 DefaultBuildStep | 18 DefaultBuildStep |
12 } | 19 } |
13 | 20 |
14 #TestStep() { | 21 TestStep() { |
15 # To run tests, pipe mtest.nexe output into test.nexe input | 22 # To run tests, pipe mtest.nexe output into test.nexe input |
16 # mtest/mtest.exe | test.nexe | 23 # mtest/mtest.exe | test.nexe |
17 # However, this test is setup to run forever, so we don't run | 24 # However, this test is setup to run forever, so we don't run |
18 # it as part of the build. | 25 # it as part of the build. |
19 #RunSelLdrCommand mtest/mtest.nexe | RunSelLdrCommand test.nexe | 26 #RunSelLdrCommand mtest/mtest.nexe | RunSelLdrCommand test.nexe |
20 #} | 27 return |
| 28 } |
21 | 29 |
22 InstallStep() { | 30 InstallStep() { |
23 # copy libs and headers manually | 31 # copy libs and headers manually |
24 MakeDir ${DESTDIR_INCLUDE} | 32 MakeDir ${DESTDIR_INCLUDE} |
25 MakeDir ${DESTDIR_LIB} | 33 MakeDir ${DESTDIR_LIB} |
26 LogExecute cp *.h ${DESTDIR_INCLUDE}/ | 34 LogExecute cp *.h ${DESTDIR_INCLUDE}/ |
27 LogExecute cp *.a ${DESTDIR_LIB}/ | 35 LogExecute cp *.a ${DESTDIR_LIB}/ |
28 } | 36 } |
OLD | NEW |