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