blob: 61af526645e5ee0dd2fa3b4798b384e89016a1c8 [file] [log] [blame]
[email protected]93c19fd22013-08-06 19:34:441# Copyright (c) 2013 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
thakis87ec0f76f2016-01-04 20:10:365assert(is_mac || is_ios)
thakis29de2c82015-12-31 17:26:066
thakis87ec0f76f2016-01-04 20:10:367config("libudis86_warnings") {
8 cflags = [
9 # syn.c contains a switch with an assert(false) in a default:
10 # block. In release builds, the function is missing a return.
11 "-Wno-return-type",
12
13 # Fires once in decode.c.
14 "-Wno-sometimes-uninitialized",
15 ]
thakis29de2c82015-12-31 17:26:0616}
17
[email protected]ebced5f2014-01-09 01:50:0118static_library("libudis86") {
[email protected]ebced5f2014-01-09 01:50:0119 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 defines = [
37 "HAVE_ASSERT_H",
38 "HAVE_STRING_H",
39 ]
brettw0d939852014-09-17 00:00:0040
thakis87ec0f76f2016-01-04 20:10:3641 configs -= [
42 "//build/config/compiler:chromium_code",
brettw0d939852014-09-17 00:00:0043
thakis87ec0f76f2016-01-04 20:10:3644 # For UD_ASSERT(!"message");
45 "//build/config/clang:extra_warnings",
46 ]
thakis29de2c82015-12-31 17:26:0647 configs += [
48 "//build/config/compiler:no_chromium_code",
49
50 # Must be after no_chromium_code for warning flags to be ordered correctly.
51 ":libudis86_warnings",
52 ]
[email protected]ebced5f2014-01-09 01:50:0153}
54
[email protected]93c19fd22013-08-06 19:34:4455static_library("mach_override") {
[email protected]93c19fd22013-08-06 19:34:4456 sources = [
57 "mach_override.c",
58 "mach_override.h",
59 ]
[email protected]ebced5f2014-01-09 01:50:0160 deps = [
61 ":libudis86",
62 ]
[email protected]93c19fd22013-08-06 19:34:4463}