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.
9 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
12 'target_name': 'compiler-unittests',
15 '../../testing/gmock.gyp:gmock',
16 '../../testing/gtest.gyp:gtest',
17 '../../tools/gyp/v8.gyp:v8_libplatform',
22 'sources': [ ### gcmole(all) ###
23 'compiler-unittests.cc',
24 'instruction-selector-unittest.cc',
27 ['v8_target_arch=="arm"', {
28 'sources': [ ### gcmole(arch:arm) ###
29 'arm/instruction-selector-arm-unittest.cc',
32 ['component=="shared_library"', {
33 # compiler-unittests can't be built against a shared library, so we
34 # need to depend on the underlying static target in that case.
36 ['v8_use_snapshot=="true"', {
37 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
41 '../../tools/gyp/v8.gyp:v8_nosnapshot',
46 'dependencies': ['../../tools/gyp/v8.gyp:v8'],
49 # TODO(svenpanne): This is a temporary work-around to fix the warnings
50 # that show up because we use -std=gnu++0x instead of -std=c++11.