OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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': 'parser_fuzzer', |
| 13 'type': 'executable', |
| 14 'dependencies': [ |
| 15 'parser_fuzzer_lib', |
| 16 ], |
| 17 'include_dirs': [ |
| 18 '../..', |
| 19 ], |
| 20 'sources': [ |
| 21 'fuzzer.cc', |
| 22 ], |
| 23 }, |
| 24 { |
| 25 'target_name': 'parser_fuzzer_lib', |
| 26 'type': 'static_library', |
| 27 'dependencies': [ |
| 28 'fuzzer_support', |
| 29 ], |
| 30 'include_dirs': [ |
| 31 '../..', |
| 32 ], |
| 33 'sources': [ ### gcmole(all) ### |
| 34 'parser.cc', |
| 35 ], |
| 36 }, |
| 37 { |
| 38 'target_name': 'fuzzer_support', |
| 39 'type': 'static_library', |
| 40 'dependencies': [ |
| 41 '../../tools/gyp/v8.gyp:v8_libplatform', |
| 42 ], |
| 43 'include_dirs': [ |
| 44 '../..', |
| 45 ], |
| 46 'sources': [ ### gcmole(all) ### |
| 47 'fuzzer-support.cc', |
| 48 'fuzzer-support.h', |
| 49 ], |
| 50 'conditions': [ |
| 51 ['component=="shared_library"', { |
| 52 # fuzzers can't be built against a shared library, so we need to |
| 53 # depend on the underlying static target in that case. |
| 54 'dependencies': ['../../tools/gyp/v8.gyp:v8_maybe_snapshot'], |
| 55 }, { |
| 56 'dependencies': ['../../tools/gyp/v8.gyp:v8'], |
| 57 }], |
| 58 ], |
| 59 }, |
| 60 ], |
| 61 'conditions': [ |
| 62 ['test_isolation_mode != "noop"', { |
| 63 'targets': [ |
| 64 { |
| 65 'target_name': 'parser_fuzzer_run', |
| 66 'type': 'none', |
| 67 'dependencies': [ |
| 68 'parser_fuzzer', |
| 69 ], |
| 70 'includes': [ |
| 71 '../../build/isolate.gypi', |
| 72 ], |
| 73 'sources': [ |
| 74 'parser_fuzzer.isolate', |
| 75 ], |
| 76 }, |
| 77 ], |
| 78 }], |
| 79 ], |
| 80 } |
OLD | NEW |