2014-08-08 07:04:07 +00:00
|
|
|
# Copyright 2014 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'v8_code': 1,
|
|
|
|
},
|
|
|
|
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'compiler-unittests',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'../../testing/gmock.gyp:gmock',
|
|
|
|
'../../testing/gtest.gyp:gtest',
|
|
|
|
'../../tools/gyp/v8.gyp:v8_libplatform',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../..',
|
|
|
|
],
|
|
|
|
'sources': [ ### gcmole(all) ###
|
2014-08-12 08:24:20 +00:00
|
|
|
'change-lowering-unittest.cc',
|
2014-08-18 06:54:07 +00:00
|
|
|
'common-operator-unittest.cc',
|
|
|
|
'common-operator-unittest.h',
|
2014-08-08 07:04:07 +00:00
|
|
|
'compiler-unittests.cc',
|
2014-08-18 06:54:07 +00:00
|
|
|
'graph-unittest.cc',
|
|
|
|
'graph-unittest.h',
|
2014-08-08 07:04:07 +00:00
|
|
|
'instruction-selector-unittest.cc',
|
2014-08-14 09:07:58 +00:00
|
|
|
'machine-operator-reducer-unittest.cc',
|
2014-08-19 08:48:41 +00:00
|
|
|
'machine-operator-unittest.cc',
|
2014-08-08 07:04:07 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="arm"', {
|
|
|
|
'sources': [ ### gcmole(arch:arm) ###
|
|
|
|
'arm/instruction-selector-arm-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-08-14 06:33:50 +00:00
|
|
|
['v8_target_arch=="arm64"', {
|
|
|
|
'sources': [ ### gcmole(arch:arm64) ###
|
|
|
|
'arm64/instruction-selector-arm64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="ia32"', {
|
|
|
|
'sources': [ ### gcmole(arch:ia32) ###
|
|
|
|
'ia32/instruction-selector-ia32-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-08-19 08:48:41 +00:00
|
|
|
['v8_target_arch=="x64"', {
|
|
|
|
'sources': [ ### gcmole(arch:x64) ###
|
|
|
|
'x64/instruction-selector-x64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-08-08 07:04:07 +00:00
|
|
|
['component=="shared_library"', {
|
|
|
|
# compiler-unittests can't be built against a shared library, so we
|
|
|
|
# need to depend on the underlying static target in that case.
|
|
|
|
'conditions': [
|
|
|
|
['v8_use_snapshot=="true"', {
|
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'dependencies': [
|
|
|
|
'../../tools/gyp/v8.gyp:v8_nosnapshot',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8'],
|
|
|
|
}],
|
|
|
|
['os_posix == 1', {
|
|
|
|
# TODO(svenpanne): This is a temporary work-around to fix the warnings
|
|
|
|
# that show up because we use -std=gnu++0x instead of -std=c++11.
|
|
|
|
'cflags!': [
|
|
|
|
'-pedantic',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|