OLD | NEW |
1 # Copyright 2014 the V8 project authors. All rights reserved. | 1 # Copyright 2014 the V8 project 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'v8_code': 1, | 7 'v8_code': 1, |
8 }, | 8 }, |
9 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], | 9 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], |
10 'targets': [ | 10 'targets': [ |
11 { | 11 { |
12 'target_name': 'compiler-unittests', | 12 'target_name': 'runtime-unittests', |
13 'type': 'executable', | 13 'type': 'executable', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../../testing/gmock.gyp:gmock', | 15 '../../testing/gmock.gyp:gmock', |
16 '../../testing/gtest.gyp:gtest', | 16 '../../testing/gtest.gyp:gtest', |
17 '../../tools/gyp/v8.gyp:v8_libplatform', | 17 '../../tools/gyp/v8.gyp:v8_libplatform', |
18 ], | 18 ], |
19 'include_dirs': [ | 19 'include_dirs': [ |
20 '../..', | 20 '../..', |
21 ], | 21 ], |
22 'sources': [ ### gcmole(all) ### | 22 'sources': [ ### gcmole(all) ### |
23 'change-lowering-unittest.cc', | 23 'runtime-unittests.h', |
24 'common-operator-unittest.cc', | 24 'runtime-unittests.cc', |
25 'common-operator-unittest.h', | |
26 'compiler-unittests.cc', | |
27 'graph-unittest.cc', | |
28 'graph-unittest.h', | |
29 'instruction-selector-unittest.cc', | |
30 'machine-operator-reducer-unittest.cc', | |
31 'machine-operator-unittest.cc', | |
32 ], | 25 ], |
33 'conditions': [ | 26 'conditions': [ |
34 ['v8_target_arch=="arm"', { | |
35 'sources': [ ### gcmole(arch:arm) ### | |
36 'arm/instruction-selector-arm-unittest.cc', | |
37 ], | |
38 }], | |
39 ['v8_target_arch=="arm64"', { | |
40 'sources': [ ### gcmole(arch:arm64) ### | |
41 'arm64/instruction-selector-arm64-unittest.cc', | |
42 ], | |
43 }], | |
44 ['v8_target_arch=="ia32"', { | |
45 'sources': [ ### gcmole(arch:ia32) ### | |
46 'ia32/instruction-selector-ia32-unittest.cc', | |
47 ], | |
48 }], | |
49 ['v8_target_arch=="x64"', { | |
50 'sources': [ ### gcmole(arch:x64) ### | |
51 'x64/instruction-selector-x64-unittest.cc', | |
52 ], | |
53 }], | |
54 ['component=="shared_library"', { | 27 ['component=="shared_library"', { |
55 # compiler-unittests can't be built against a shared library, so we | 28 # runtime-unittests can't be built against a shared library, so we |
56 # need to depend on the underlying static target in that case. | 29 # need to depend on the underlying static target in that case. |
57 'conditions': [ | 30 'conditions': [ |
58 ['v8_use_snapshot=="true"', { | 31 ['v8_use_snapshot=="true"', { |
59 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], | 32 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], |
60 }, | 33 }, |
61 { | 34 { |
62 'dependencies': [ | 35 'dependencies': [ |
63 '../../tools/gyp/v8.gyp:v8_nosnapshot', | 36 '../../tools/gyp/v8.gyp:v8_nosnapshot', |
64 ], | 37 ], |
65 }], | 38 }], |
66 ], | 39 ], |
67 }, { | 40 }, { |
68 'dependencies': ['../../tools/gyp/v8.gyp:v8'], | 41 'dependencies': ['../../tools/gyp/v8.gyp:v8'], |
69 }], | 42 }], |
70 ['os_posix == 1', { | 43 ['os_posix == 1', { |
71 # TODO(svenpanne): This is a temporary work-around to fix the warnings | 44 # TODO(svenpanne): This is a temporary work-around to fix the warnings |
72 # that show up because we use -std=gnu++0x instead of -std=c++11. | 45 # that show up because we use -std=gnu++0x instead of -std=c++11. |
73 'cflags!': [ | 46 'cflags!': [ |
74 '-pedantic', | 47 '-pedantic', |
75 ], | 48 ], |
76 }], | 49 }], |
77 ], | 50 ], |
78 }, | 51 }, |
79 ], | 52 ], |
80 } | 53 } |
OLD | NEW |