2014-10-01 08:34:25 +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': 'unittests',
|
|
|
|
'type': 'executable',
|
|
|
|
'variables': {
|
|
|
|
'optimize': 'max',
|
|
|
|
},
|
|
|
|
'dependencies': [
|
|
|
|
'../../testing/gmock.gyp:gmock',
|
|
|
|
'../../testing/gtest.gyp:gtest',
|
|
|
|
'../../tools/gyp/v8.gyp:v8_libplatform',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../..',
|
|
|
|
],
|
|
|
|
'sources': [ ### gcmole(all) ###
|
|
|
|
'base/bits-unittest.cc',
|
|
|
|
'base/cpu-unittest.cc',
|
|
|
|
'base/division-by-constant-unittest.cc',
|
|
|
|
'base/flags-unittest.cc',
|
2014-10-06 12:27:24 +00:00
|
|
|
'base/functional-unittest.cc',
|
2014-12-16 07:31:46 +00:00
|
|
|
'base/iterator-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'base/platform/condition-variable-unittest.cc',
|
|
|
|
'base/platform/mutex-unittest.cc',
|
|
|
|
'base/platform/platform-unittest.cc',
|
|
|
|
'base/platform/semaphore-unittest.cc',
|
|
|
|
'base/platform/time-unittest.cc',
|
|
|
|
'base/sys-info-unittest.cc',
|
|
|
|
'base/utils/random-number-generator-unittest.cc',
|
2014-10-10 08:06:21 +00:00
|
|
|
'char-predicates-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/change-lowering-unittest.cc',
|
2014-12-22 13:06:34 +00:00
|
|
|
'compiler/common-operator-reducer-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/common-operator-unittest.cc',
|
|
|
|
'compiler/compiler-test-utils.h',
|
2014-12-02 15:56:22 +00:00
|
|
|
'compiler/control-equivalence-unittest.cc',
|
2014-11-04 14:37:22 +00:00
|
|
|
'compiler/diamond-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/graph-reducer-unittest.cc',
|
|
|
|
'compiler/graph-unittest.cc',
|
|
|
|
'compiler/graph-unittest.h',
|
|
|
|
'compiler/instruction-selector-unittest.cc',
|
|
|
|
'compiler/instruction-selector-unittest.h',
|
2014-11-27 09:19:31 +00:00
|
|
|
'compiler/instruction-sequence-unittest.cc',
|
|
|
|
'compiler/instruction-sequence-unittest.h',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/js-builtin-reducer-unittest.cc',
|
|
|
|
'compiler/js-operator-unittest.cc',
|
2014-10-07 07:36:21 +00:00
|
|
|
'compiler/js-typed-lowering-unittest.cc',
|
2014-12-05 07:59:04 +00:00
|
|
|
'compiler/load-elimination-unittest.cc',
|
2015-01-20 09:45:02 +00:00
|
|
|
'compiler/loop-peeling-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/machine-operator-reducer-unittest.cc',
|
2015-01-02 07:43:34 +00:00
|
|
|
'compiler/machine-operator-unittest.cc',
|
2014-11-27 09:19:31 +00:00
|
|
|
'compiler/move-optimizer-unittest.cc',
|
2014-11-07 16:47:25 +00:00
|
|
|
'compiler/node-matchers-unittest.cc',
|
2015-01-16 11:04:01 +00:00
|
|
|
'compiler/node-properties-unittest.cc',
|
2014-10-20 11:26:23 +00:00
|
|
|
'compiler/node-test-utils.cc',
|
|
|
|
'compiler/node-test-utils.h',
|
2015-01-16 11:04:01 +00:00
|
|
|
'compiler/node-unittest.cc',
|
2015-01-09 14:19:55 +00:00
|
|
|
'compiler/opcodes-unittest.cc',
|
2014-11-03 13:26:46 +00:00
|
|
|
'compiler/register-allocator-unittest.cc',
|
2015-01-22 13:01:02 +00:00
|
|
|
'compiler/schedule-unittest.cc',
|
2014-11-03 15:17:08 +00:00
|
|
|
'compiler/select-lowering-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/simplified-operator-reducer-unittest.cc',
|
|
|
|
'compiler/simplified-operator-unittest.cc',
|
|
|
|
'compiler/value-numbering-reducer-unittest.cc',
|
2014-10-21 12:38:46 +00:00
|
|
|
'compiler/zone-pool-unittest.cc',
|
2015-01-19 08:07:22 +00:00
|
|
|
'factory-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'libplatform/default-platform-unittest.cc',
|
|
|
|
'libplatform/task-queue-unittest.cc',
|
|
|
|
'libplatform/worker-thread-unittest.cc',
|
|
|
|
'heap/gc-idle-time-handler-unittest.cc',
|
|
|
|
'run-all-unittests.cc',
|
|
|
|
'test-utils.h',
|
|
|
|
'test-utils.cc',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="arm"', {
|
|
|
|
'sources': [ ### gcmole(arch:arm) ###
|
|
|
|
'compiler/arm/instruction-selector-arm-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="arm64"', {
|
|
|
|
'sources': [ ### gcmole(arch:arm64) ###
|
|
|
|
'compiler/arm64/instruction-selector-arm64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="ia32"', {
|
|
|
|
'sources': [ ### gcmole(arch:ia32) ###
|
|
|
|
'compiler/ia32/instruction-selector-ia32-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-10-02 15:48:48 +00:00
|
|
|
['v8_target_arch=="mipsel"', {
|
|
|
|
'sources': [ ### gcmole(arch:mipsel) ###
|
|
|
|
'compiler/mips/instruction-selector-mips-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-11-19 15:44:39 +00:00
|
|
|
['v8_target_arch=="mips64el"', {
|
|
|
|
'sources': [ ### gcmole(arch:mips64el) ###
|
|
|
|
'compiler/mips64/instruction-selector-mips64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-10-01 08:34:25 +00:00
|
|
|
['v8_target_arch=="x64"', {
|
|
|
|
'sources': [ ### gcmole(arch:x64) ###
|
|
|
|
'compiler/x64/instruction-selector-x64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2015-01-16 07:42:00 +00:00
|
|
|
['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', {
|
|
|
|
'sources': [ ### gcmole(arch:ppc) ###
|
|
|
|
'compiler/ppc/instruction-selector-ppc-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-10-01 08:34:25 +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': [
|
2014-12-11 16:41:46 +00:00
|
|
|
['v8_use_snapshot=="true" and v8_use_external_startup_data==0', {
|
2014-10-01 08:34:25 +00:00
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
|
2014-12-11 16:41:46 +00:00
|
|
|
}],
|
|
|
|
['v8_use_snapshot=="true" and v8_use_external_startup_data==1', {
|
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8_external_snapshot'],
|
|
|
|
}],
|
|
|
|
['v8_use_snapshot!="true"', {
|
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8_nosnapshot'],
|
2014-10-01 08:34:25 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'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',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'cflags!': [
|
|
|
|
'-pedantic',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|