Emily Bernier | d0a1eb7 | 2015-03-24 16:35:39 -0400 | [diff] [blame^] | 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': 'unittests', |
| 13 | 'type': 'executable', |
| 14 | 'variables': { |
| 15 | 'optimize': 'max', |
| 16 | }, |
| 17 | 'dependencies': [ |
| 18 | '../../testing/gmock.gyp:gmock', |
| 19 | '../../testing/gtest.gyp:gtest', |
| 20 | '../../tools/gyp/v8.gyp:v8_libplatform', |
| 21 | ], |
| 22 | 'include_dirs': [ |
| 23 | '../..', |
| 24 | ], |
| 25 | 'sources': [ ### gcmole(all) ### |
| 26 | 'base/bits-unittest.cc', |
| 27 | 'base/cpu-unittest.cc', |
| 28 | 'base/division-by-constant-unittest.cc', |
| 29 | 'base/flags-unittest.cc', |
| 30 | 'base/functional-unittest.cc', |
| 31 | 'base/iterator-unittest.cc', |
| 32 | 'base/platform/condition-variable-unittest.cc', |
| 33 | 'base/platform/mutex-unittest.cc', |
| 34 | 'base/platform/platform-unittest.cc', |
| 35 | 'base/platform/semaphore-unittest.cc', |
| 36 | 'base/platform/time-unittest.cc', |
| 37 | 'base/sys-info-unittest.cc', |
| 38 | 'base/utils/random-number-generator-unittest.cc', |
| 39 | 'char-predicates-unittest.cc', |
| 40 | 'compiler/change-lowering-unittest.cc', |
| 41 | 'compiler/common-operator-reducer-unittest.cc', |
| 42 | 'compiler/common-operator-unittest.cc', |
| 43 | 'compiler/compiler-test-utils.h', |
| 44 | 'compiler/control-equivalence-unittest.cc', |
| 45 | 'compiler/diamond-unittest.cc', |
| 46 | 'compiler/graph-reducer-unittest.cc', |
| 47 | 'compiler/graph-unittest.cc', |
| 48 | 'compiler/graph-unittest.h', |
| 49 | 'compiler/instruction-selector-unittest.cc', |
| 50 | 'compiler/instruction-selector-unittest.h', |
| 51 | 'compiler/instruction-sequence-unittest.cc', |
| 52 | 'compiler/instruction-sequence-unittest.h', |
| 53 | 'compiler/js-builtin-reducer-unittest.cc', |
| 54 | 'compiler/js-operator-unittest.cc', |
| 55 | 'compiler/js-typed-lowering-unittest.cc', |
| 56 | 'compiler/load-elimination-unittest.cc', |
| 57 | 'compiler/machine-operator-reducer-unittest.cc', |
| 58 | 'compiler/machine-operator-unittest.cc', |
| 59 | 'compiler/move-optimizer-unittest.cc', |
| 60 | 'compiler/node-matchers-unittest.cc', |
| 61 | 'compiler/node-test-utils.cc', |
| 62 | 'compiler/node-test-utils.h', |
| 63 | 'compiler/register-allocator-unittest.cc', |
| 64 | 'compiler/select-lowering-unittest.cc', |
| 65 | 'compiler/simplified-operator-reducer-unittest.cc', |
| 66 | 'compiler/simplified-operator-unittest.cc', |
| 67 | 'compiler/value-numbering-reducer-unittest.cc', |
| 68 | 'compiler/zone-pool-unittest.cc', |
| 69 | 'libplatform/default-platform-unittest.cc', |
| 70 | 'libplatform/task-queue-unittest.cc', |
| 71 | 'libplatform/worker-thread-unittest.cc', |
| 72 | 'heap/gc-idle-time-handler-unittest.cc', |
| 73 | 'run-all-unittests.cc', |
| 74 | 'test-utils.h', |
| 75 | 'test-utils.cc', |
| 76 | ], |
| 77 | 'conditions': [ |
| 78 | ['v8_target_arch=="arm"', { |
| 79 | 'sources': [ ### gcmole(arch:arm) ### |
| 80 | 'compiler/arm/instruction-selector-arm-unittest.cc', |
| 81 | ], |
| 82 | }], |
| 83 | ['v8_target_arch=="arm64"', { |
| 84 | 'sources': [ ### gcmole(arch:arm64) ### |
| 85 | 'compiler/arm64/instruction-selector-arm64-unittest.cc', |
| 86 | ], |
| 87 | }], |
| 88 | ['v8_target_arch=="ia32"', { |
| 89 | 'sources': [ ### gcmole(arch:ia32) ### |
| 90 | 'compiler/ia32/instruction-selector-ia32-unittest.cc', |
| 91 | ], |
| 92 | }], |
| 93 | ['v8_target_arch=="mipsel"', { |
| 94 | 'sources': [ ### gcmole(arch:mipsel) ### |
| 95 | 'compiler/mips/instruction-selector-mips-unittest.cc', |
| 96 | ], |
| 97 | }], |
| 98 | ['v8_target_arch=="mips64el"', { |
| 99 | 'sources': [ ### gcmole(arch:mips64el) ### |
| 100 | 'compiler/mips64/instruction-selector-mips64-unittest.cc', |
| 101 | ], |
| 102 | }], |
| 103 | ['v8_target_arch=="x64"', { |
| 104 | 'sources': [ ### gcmole(arch:x64) ### |
| 105 | 'compiler/x64/instruction-selector-x64-unittest.cc', |
| 106 | ], |
| 107 | }], |
| 108 | ['component=="shared_library"', { |
| 109 | # compiler-unittests can't be built against a shared library, so we |
| 110 | # need to depend on the underlying static target in that case. |
| 111 | 'conditions': [ |
| 112 | ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', { |
| 113 | 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], |
| 114 | }], |
| 115 | ['v8_use_snapshot=="true" and v8_use_external_startup_data==1', { |
| 116 | 'dependencies': ['../../tools/gyp/v8.gyp:v8_external_snapshot'], |
| 117 | }], |
| 118 | ['v8_use_snapshot!="true"', { |
| 119 | 'dependencies': ['../../tools/gyp/v8.gyp:v8_nosnapshot'], |
| 120 | }], |
| 121 | ], |
| 122 | }, { |
| 123 | 'dependencies': ['../../tools/gyp/v8.gyp:v8'], |
| 124 | }], |
| 125 | ['os_posix == 1', { |
| 126 | # TODO(svenpanne): This is a temporary work-around to fix the warnings |
| 127 | # that show up because we use -std=gnu++0x instead of -std=c++11. |
| 128 | 'cflags!': [ |
| 129 | '-pedantic', |
| 130 | ], |
| 131 | 'direct_dependent_settings': { |
| 132 | 'cflags!': [ |
| 133 | '-pedantic', |
| 134 | ], |
| 135 | }, |
| 136 | }], |
| 137 | ], |
| 138 | }, |
| 139 | ], |
| 140 | } |