OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 # This file needs to be in sync with $MAIN_DIR/src/third_party/ppapi/ppapi.gyp | 6 # This file needs to be in sync with $MAIN_DIR/src/third_party/ppapi/ppapi.gyp |
7 # at the revision specified in $SOURCE_ROOT/native_client/DEPS. | 7 # at the revision specified in $SOURCE_ROOT/native_client/DEPS. |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 # this is needed for including gdb_utils files | 11 # this is needed for including gdb_utils files |
12 env.Append(CPPPATH=['${SOURCE_ROOT}/gdb_utils/src']) | 12 env.Append(CPPPATH=['${SOURCE_ROOT}/gdb_utils/src']) |
13 | 13 |
14 if env.Bit('windows'): | 14 if env.Bit('windows'): |
15 env.Append(CPPDEFINES=['WIN32']) | 15 env.Append(CPPDEFINES=['WIN32']) |
16 if env.Bit('target_x86_64'): | 16 if env.Bit('target_x86_64'): |
17 env.Append(CPPDEFINES=['WIN64']) | 17 env.Append(CPPDEFINES=['WIN64']) |
18 | 18 |
19 if env.Bit('target_arm'): | 19 if env.Bit('target_arm'): |
20 env.Append(CPPDEFINES=['GDB_RSP_ABI_ARM']) | 20 env.Append(CPPDEFINES=['GDB_RSP_ABI_ARM']) |
| 21 elif env.Bit('target_mips'): |
| 22 env.Append(CPPDEFINES=['GDB_RSP_ABI_MIPS']) |
21 elif env.Bit('target_x86'): | 23 elif env.Bit('target_x86'): |
22 env.Append(CPPDEFINES=['GDB_RSP_ABI_X86']) | 24 env.Append(CPPDEFINES=['GDB_RSP_ABI_X86']) |
23 if env.Bit('target_x86_64'): | 25 if env.Bit('target_x86_64'): |
24 env.Append(CPPDEFINES=['GDB_RSP_ABI_X86_64']) | 26 env.Append(CPPDEFINES=['GDB_RSP_ABI_X86_64']) |
25 else: | 27 else: |
26 raise Exception("Unknown target") | 28 raise Exception("Unknown target") |
27 | 29 |
28 rsp_sources = [ | 30 rsp_sources = [ |
29 'abi.cc', | 31 'abi.cc', |
30 'host.cc', | 32 'host.cc', |
(...skipping 17 matching lines...) Expand all Loading... |
48 # Build only for Win64 | 50 # Build only for Win64 |
49 env.DualLibrary('gdb_rsp', rsp_sources) | 51 env.DualLibrary('gdb_rsp', rsp_sources) |
50 gdb_rsp_test_exe = env.ComponentProgram('gdb_rsp_unittest', | 52 gdb_rsp_test_exe = env.ComponentProgram('gdb_rsp_unittest', |
51 rsp_test_sources, | 53 rsp_test_sources, |
52 EXTRA_LIBS=['gdb_rsp']) | 54 EXTRA_LIBS=['gdb_rsp']) |
53 | 55 |
54 node = env.CommandTest( | 56 node = env.CommandTest( |
55 'gdb_rsp_unittest.out', | 57 'gdb_rsp_unittest.out', |
56 command=[gdb_rsp_test_exe]) | 58 command=[gdb_rsp_test_exe]) |
57 env.AddNodeToTestSuite(node, ['small_tests'], 'run_gdb_rsp_tests') | 59 env.AddNodeToTestSuite(node, ['small_tests'], 'run_gdb_rsp_tests') |
OLD | NEW |