]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blob - Android.bp
libkmsxx: Add Android.bp file to build with AOSP
[android/external-libkmsxx.git] / Android.bp
1 // Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 cc_library_shared {
16     name: "libkmsxx",
18     vendor_available: true,
19     rtti: true,
21     srcs: [
22         "kms++/src/atomicreq.cpp",
23         "kms++/src/card.cpp",
24         "kms++/src/crtc.cpp",
25         "kms++/src/drmpropobject.cpp",
26         "kms++/src/encoder.cpp",
27         "kms++/src/framebuffer.cpp",
28         "kms++/src/modedb_cea.cpp",
29         "kms++/src/modedb_dmt.cpp",
30         "kms++/src/pixelformats.cpp",
31         "kms++/src/property.cpp",
32         "kms++/src/blob.cpp",
33         "kms++/src/connector.cpp",
34         "kms++/src/drmobject.cpp",
35         "kms++/src/dumbframebuffer.cpp",
36         "kms++/src/extframebuffer.cpp",
37         "kms++/src/helpers.cpp",
38         "kms++/src/mode_cvt.cpp",
39         "kms++/src/modedb.cpp",
40         "kms++/src/plane.cpp",
41         "kms++/src/videomode.cpp",
42     ],
44     cflags: [
45         "-std=c++11",
46         "-Wall",
47         "-Wextra",
48         "-Wno-unused-parameter",
49         "-fexceptions",
50     ],
52     shared_libs: [
53         "libdrm",
54     ],
56     export_include_dirs: [
57         "kms++/inc",
58     ],
59 }