erik.corry@gmail.com | bbceb57 | 2012-03-09 10:52:05 +0000 | [diff] [blame] | 1 | # Copyright 2012 the V8 project authors. All rights reserved. |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 2 | # Redistribution and use in source and binary forms, with or without |
| 3 | # modification, are permitted provided that the following conditions are |
| 4 | # met: |
| 5 | # |
| 6 | # * Redistributions of source code must retain the above copyright |
| 7 | # notice, this list of conditions and the following disclaimer. |
| 8 | # * Redistributions in binary form must reproduce the above |
| 9 | # copyright notice, this list of conditions and the following |
| 10 | # disclaimer in the documentation and/or other materials provided |
| 11 | # with the distribution. |
| 12 | # * Neither the name of Google Inc. nor the names of its |
| 13 | # contributors may be used to endorse or promote products derived |
| 14 | # from this software without specific prior written permission. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | { |
ricow@chromium.org | 4668a2c | 2011-08-29 10:41:00 +0000 | [diff] [blame] | 29 | 'includes': ['../../build/common.gypi'], |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 30 | 'variables': { |
| 31 | 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc', |
| 32 | }, |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 33 | 'targets': [ |
| 34 | { |
| 35 | 'target_name': 'cctest', |
| 36 | 'type': 'executable', |
| 37 | 'dependencies': [ |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 38 | 'resources', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 39 | ], |
| 40 | 'include_dirs': [ |
| 41 | '../../src', |
| 42 | ], |
| 43 | 'sources': [ |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 44 | '<(generated_file)', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 45 | 'cctest.cc', |
| 46 | 'gay-fixed.cc', |
| 47 | 'gay-precision.cc', |
| 48 | 'gay-shortest.cc', |
| 49 | 'test-accessors.cc', |
| 50 | 'test-alloc.cc', |
| 51 | 'test-api.cc', |
| 52 | 'test-ast.cc', |
| 53 | 'test-bignum.cc', |
| 54 | 'test-bignum-dtoa.cc', |
| 55 | 'test-circular-queue.cc', |
| 56 | 'test-compiler.cc', |
| 57 | 'test-conversions.cc', |
| 58 | 'test-cpu-profiler.cc', |
| 59 | 'test-dataflow.cc', |
svenpanne@chromium.org | 4efbdb1 | 2012-03-12 08:18:42 +0000 | [diff] [blame] | 60 | 'test-date.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 61 | 'test-debug.cc', |
ulan@chromium.org | 750145a | 2013-03-07 15:14:13 +0000 | [diff] [blame] | 62 | 'test-declarative-accessors.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 63 | 'test-decls.cc', |
| 64 | 'test-deoptimization.cc', |
vegorov@chromium.org | 7943d46 | 2011-08-01 11:41:52 +0000 | [diff] [blame] | 65 | 'test-dictionary.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 66 | 'test-diy-fp.cc', |
| 67 | 'test-double.cc', |
| 68 | 'test-dtoa.cc', |
| 69 | 'test-fast-dtoa.cc', |
| 70 | 'test-fixed-dtoa.cc', |
| 71 | 'test-flags.cc', |
| 72 | 'test-func-name-inference.cc', |
mvstanton@chromium.org | c47dff5 | 2013-01-23 16:28:41 +0000 | [diff] [blame] | 73 | 'test-global-object.cc', |
danno@chromium.org | 2c45679 | 2011-11-11 12:00:53 +0000 | [diff] [blame] | 74 | 'test-hashing.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 75 | 'test-hashmap.cc', |
| 76 | 'test-heap.cc', |
| 77 | 'test-heap-profiler.cc', |
| 78 | 'test-list.cc', |
| 79 | 'test-liveedit.cc', |
| 80 | 'test-lock.cc', |
lrn@chromium.org | 1c09276 | 2011-05-09 09:42:16 +0000 | [diff] [blame] | 81 | 'test-lockers.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 82 | 'test-log.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 83 | 'test-mark-compact.cc', |
mvstanton@chromium.org | e4ac3ef | 2012-11-12 14:53:34 +0000 | [diff] [blame] | 84 | 'test-object-observe.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 85 | 'test-parsing.cc', |
yangguo@chromium.org | c03a192 | 2013-02-19 13:55:47 +0000 | [diff] [blame] | 86 | 'test-platform.cc', |
kmillikin@chromium.org | 7c2628c | 2011-08-10 11:27:35 +0000 | [diff] [blame] | 87 | 'test-platform-tls.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 88 | 'test-profile-generator.cc', |
erik.corry@gmail.com | bbceb57 | 2012-03-09 10:52:05 +0000 | [diff] [blame] | 89 | 'test-random.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 90 | 'test-regexp.cc', |
| 91 | 'test-reloc-info.cc', |
| 92 | 'test-serialize.cc', |
| 93 | 'test-sockets.cc', |
| 94 | 'test-spaces.cc', |
| 95 | 'test-strings.cc', |
yangguo@chromium.org | 4a9f655 | 2013-03-04 14:46:33 +0000 | [diff] [blame] | 96 | 'test-symbols.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 97 | 'test-strtod.cc', |
| 98 | 'test-thread-termination.cc', |
| 99 | 'test-threads.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 100 | 'test-unbound-queue.cc', |
| 101 | 'test-utils.cc', |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 102 | 'test-version.cc', |
| 103 | 'test-weakmaps.cc' |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 104 | ], |
| 105 | 'conditions': [ |
| 106 | ['v8_target_arch=="ia32"', { |
| 107 | 'sources': [ |
| 108 | 'test-assembler-ia32.cc', |
| 109 | 'test-disasm-ia32.cc', |
| 110 | 'test-log-stack-tracer.cc' |
| 111 | ], |
| 112 | }], |
| 113 | ['v8_target_arch=="x64"', { |
| 114 | 'sources': [ |
| 115 | 'test-assembler-x64.cc', |
| 116 | 'test-macro-assembler-x64.cc', |
| 117 | 'test-log-stack-tracer.cc' |
| 118 | ], |
| 119 | }], |
| 120 | ['v8_target_arch=="arm"', { |
| 121 | 'sources': [ |
| 122 | 'test-assembler-arm.cc', |
| 123 | 'test-disasm-arm.cc' |
| 124 | ], |
| 125 | }], |
rossberg@chromium.org | 657d53b | 2012-07-12 11:06:03 +0000 | [diff] [blame] | 126 | ['v8_target_arch=="mipsel"', { |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 127 | 'sources': [ |
| 128 | 'test-assembler-mips.cc', |
karlklose@chromium.org | 83a4728 | 2011-05-11 11:54:09 +0000 | [diff] [blame] | 129 | 'test-disasm-mips.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 130 | ], |
| 131 | }], |
| 132 | [ 'OS=="linux"', { |
| 133 | 'sources': [ |
| 134 | 'test-platform-linux.cc', |
| 135 | ], |
| 136 | }], |
| 137 | [ 'OS=="mac"', { |
| 138 | 'sources': [ |
| 139 | 'test-platform-macos.cc', |
| 140 | ], |
| 141 | }], |
| 142 | [ 'OS=="win"', { |
| 143 | 'sources': [ |
| 144 | 'test-platform-win32.cc', |
| 145 | ], |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 146 | 'msvs_settings': { |
| 147 | 'VCCLCompilerTool': { |
| 148 | # MSVS wants this for gay-{precision,shortest}.cc. |
| 149 | 'AdditionalOptions': ['/bigobj'], |
| 150 | }, |
| 151 | }, |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 152 | }], |
fschneider@chromium.org | 1805e21 | 2011-09-05 10:49:12 +0000 | [diff] [blame] | 153 | ['component=="shared_library"', { |
| 154 | # cctest can't be built against a shared library, so we need to |
| 155 | # depend on the underlying static target in that case. |
| 156 | 'conditions': [ |
| 157 | ['v8_use_snapshot=="true"', { |
| 158 | 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], |
| 159 | }, |
| 160 | { |
| 161 | 'dependencies': ['../../tools/gyp/v8.gyp:v8_nosnapshot'], |
| 162 | }], |
| 163 | ], |
| 164 | }, { |
| 165 | 'dependencies': ['../../tools/gyp/v8.gyp:v8'], |
| 166 | }], |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 167 | ], |
| 168 | }, |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 169 | { |
| 170 | 'target_name': 'resources', |
| 171 | 'type': 'none', |
| 172 | 'variables': { |
| 173 | 'file_list': [ |
| 174 | '../../tools/splaytree.js', |
| 175 | '../../tools/codemap.js', |
| 176 | '../../tools/csvparser.js', |
| 177 | '../../tools/consarray.js', |
| 178 | '../../tools/profile.js', |
| 179 | '../../tools/profile_view.js', |
| 180 | '../../tools/logreader.js', |
| 181 | 'log-eq-of-logging-and-traversal.js', |
| 182 | ], |
| 183 | }, |
| 184 | 'actions': [ |
| 185 | { |
| 186 | 'action_name': 'js2c', |
| 187 | 'inputs': [ |
| 188 | '../../tools/js2c.py', |
| 189 | '<@(file_list)', |
| 190 | ], |
| 191 | 'outputs': [ |
| 192 | '<(generated_file)', |
| 193 | ], |
| 194 | 'action': [ |
| 195 | 'python', |
| 196 | '../../tools/js2c.py', |
| 197 | '<@(_outputs)', |
| 198 | 'TEST', # type |
| 199 | 'off', # compression |
| 200 | '<@(file_list)', |
| 201 | ], |
| 202 | } |
| 203 | ], |
| 204 | }, |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 205 | ], |
| 206 | } |