summaryrefslogtreecommitdiff
path: root/lib/LD/Android.bp
blob: d8f703096a77d608b6f2814bdbe563faa0ca2212 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// =====================================================
// Static library: libmcldLD
// =====================================================

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_compile_mclinker_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-NCSA
    default_applicable_licenses: ["frameworks_compile_mclinker_license"],
}

cc_library_static {
    name: "libmcldLD",
    defaults: ["mcld-defaults"],
    host_supported: true,

    srcs: [
        "Archive.cpp",
        "ArchiveReader.cpp",
        "BranchIsland.cpp",
        "BranchIslandFactory.cpp",
        "BinaryReader.cpp",
        "DWARFLineInfo.cpp",
        "Diagnostic.cpp",
        "DiagnosticEngine.cpp",
        "DiagnosticInfos.cpp",
        "DiagnosticLineInfo.cpp",
        "DiagnosticPrinter.cpp",
        "DebugString.cpp",
        "DynObjReader.cpp",
        "ELFBinaryReader.cpp",
        "ELFSegment.cpp",
        "ELFSegmentFactory.cpp",
        "EhFrame.cpp",
        "EhFrameHdr.cpp",
        "EhFrameReader.cpp",
        "GarbageCollection.cpp",
        "GroupReader.cpp",
        "IdenticalCodeFolding.cpp",
        "LDContext.cpp",
        "LDFileFormat.cpp",
        "LDReader.cpp",
        "LDSection.cpp",
        "LDSymbol.cpp",
        "MergedStringTable.cpp",
        "MsgHandler.cpp",
        "NamePool.cpp",
        "ObjectWriter.cpp",
        "RelocData.cpp",
        "RelocationFactory.cpp",
        "Relocator.cpp",
        "ResolveInfo.cpp",
        "Resolver.cpp",
        "SectionData.cpp",
        "SectionSymbolSet.cpp",
        "StaticResolver.cpp",
        "StubFactory.cpp",
        "TextDiagnosticPrinter.cpp",
    ],

    static_libs: ["libz"],
}

// =====================================================
// Static library: libmcldLDVariant
// =====================================================

cc_library_static {
    name: "libmcldLDVariant",
    defaults: ["mcld-defaults"],
    host_supported: true,

    srcs: [
        "BSDArchiveReader.cpp",
        "GNUArchiveReader.cpp",
        "ELFDynObjFileFormat.cpp",
        "ELFDynObjReader.cpp",
        "ELFExecFileFormat.cpp",
        "ELFFileFormat.cpp",
        "ELFObjectReader.cpp",
        "ELFObjectWriter.cpp",
        "ELFReader.cpp",
        "ELFReaderIf.cpp",
    ],
}