blob: 100ff927bbf1b8d365ee58c7949c9f88a0c65b23 [file] [log] [blame]
Andrew F. Davisc39eaab2018-07-26 15:21:38 -05001// 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.
14
15cc_library_shared {
16 name: "libkmsxx",
17
18 vendor_available: true,
19 rtti: true,
20
21 srcs: [
Haibo Huang57240f82020-04-01 14:42:37 -070022 "kms++/src/*.cpp",
Andrew F. Davisc39eaab2018-07-26 15:21:38 -050023 ],
24
25 cflags: [
Haibo Huang57240f82020-04-01 14:42:37 -070026 "-DFMT_EXCEPTIONS=0", // fmtlib is not built with exception.
Andrew F. Davisc39eaab2018-07-26 15:21:38 -050027 "-Wall",
28 "-Wextra",
29 "-Wno-unused-parameter",
30 "-fexceptions",
Haibo Huang57240f82020-04-01 14:42:37 -070031 "-include array",
Andrew F. Davisc39eaab2018-07-26 15:21:38 -050032 ],
33
34 shared_libs: [
Haibo Huang57240f82020-04-01 14:42:37 -070035 "libbase", // for fmtlib
Andrew F. Davisc39eaab2018-07-26 15:21:38 -050036 "libdrm",
37 ],
38
39 export_include_dirs: [
40 "kms++/inc",
41 ],
42}