Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: src/trusted/gdb_rsp/build.scons

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Update per initial code review. Nexes removed. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_mips32'):
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
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')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698