| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 The Chromium 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 'targets': [ | |
| 7 ], | |
| 8 'conditions': [ | |
| 9 ['OS=="mac" or (OS=="ios" and "<(GENERATOR)"=="ninja")', { | |
| 10 'targets' : [ | |
| 11 { | |
| 12 'target_name' : 'libudis86', | |
| 13 'type': 'static_library', | |
| 14 'toolsets': ['host', 'target'], | |
| 15 'defines': [ | |
| 16 'HAVE_ASSERT_H', | |
| 17 'HAVE_STRING_H', | |
| 18 ], | |
| 19 'sources': [ | |
| 20 'libudis86/decode.c', | |
| 21 'libudis86/decode.h', | |
| 22 'libudis86/extern.h', | |
| 23 'libudis86/input.c', | |
| 24 'libudis86/input.h', | |
| 25 'libudis86/itab.c', | |
| 26 'libudis86/itab.h', | |
| 27 'libudis86/syn-att.c', | |
| 28 'libudis86/syn-intel.c', | |
| 29 'libudis86/syn.c', | |
| 30 'libudis86/syn.h', | |
| 31 'libudis86/types.h', | |
| 32 'libudis86/udint.h', | |
| 33 'libudis86/udis86.c', | |
| 34 'udis86.h', | |
| 35 ], | |
| 36 'sources!': [ | |
| 37 # The syn* files implement formatting for output, which is unused | |
| 38 # by mach_override. Normally, it would be possible to let dead | |
| 39 # code stripping get rid of them, but syn.c contains errors. | |
| 40 # Rather than patching a file that's not relevant, disable it. | |
| 41 'libudis86/syn-att.c', | |
| 42 'libudis86/syn-intel.c', | |
| 43 'libudis86/syn.c', | |
| 44 ], | |
| 45 'variables': { | |
| 46 'clang_warning_flags_unset': [ | |
| 47 # For UD_ASSERT(!"message"); | |
| 48 '-Wstring-conversion', | |
| 49 ], | |
| 50 'clang_warning_flags': [ | |
| 51 # syn.c contains a switch with an assert(false) in a default: | |
| 52 # block. In release builds, the function is missing a return. | |
| 53 '-Wno-return-type', | |
| 54 # Fires once in decode.c. | |
| 55 '-Wno-sometimes-uninitialized', | |
| 56 ], | |
| 57 }, | |
| 58 }, | |
| 59 { | |
| 60 'target_name' : 'mach_override', | |
| 61 'type': 'static_library', | |
| 62 'toolsets': ['host', 'target'], | |
| 63 'dependencies': [ | |
| 64 'libudis86', | |
| 65 ], | |
| 66 'sources': [ | |
| 67 'mach_override.c', | |
| 68 'mach_override.h', | |
| 69 ], | |
| 70 'include_dirs': [ | |
| 71 '../..', | |
| 72 ], | |
| 73 }, | |
| 74 ], | |
| 75 }], | |
| 76 ], | |
| 77 } | |
| OLD | NEW |