aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: d450ded7b37222fbc032dc2f8575b6b5cdb2057b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cc_defaults {
    name: "fmtlib-defaults",
    srcs: ["src/format.cc"],
    cflags: [
        "-fno-exceptions",
        "-Wall",
        "-Werror",
        // If built without exceptions, libfmt uses assert.
        "-UNDEBUG",
    ],
    sanitize: {
        misc_undefined: ["integer"],
    },
    local_include_dirs: ["include"],
    export_include_dirs: ["include"],
}

// This is built into libbase.  If you want to use this library, link to libbase instead.
cc_library_static {
    name: "fmtlib",
    defaults: ["fmtlib-defaults"],
    vendor_available: true,
    ramdisk_available: true,
    recovery_available: true,
    host_supported: true,
    native_bridge_supported: true,
    target: {
        linux_bionic: {
            enabled: true,
        },
        windows: {
            enabled: true,
        },
    },
    apex_available: [
        "//apex_available:anyapex",
        "//apex_available:platform",
    ],
}

cc_library_static {
    name: "fmtlib_ndk",
    defaults: ["fmtlib-defaults"],
    sdk_version: "current",
    stl: "c++_static",
}