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