16acbc0e0Smrg// 26acbc0e0Smrg// Copyright © 2011-2012 Intel Corporation 36acbc0e0Smrg// 46acbc0e0Smrg// Permission is hereby granted, free of charge, to any person obtaining a 56acbc0e0Smrg// copy of this software and associated documentation files (the "Software"), 66acbc0e0Smrg// to deal in the Software without restriction, including without limitation 76acbc0e0Smrg// the rights to use, copy, modify, merge, publish, distribute, sublicense, 86acbc0e0Smrg// and/or sell copies of the Software, and to permit persons to whom the 96acbc0e0Smrg// Software is furnished to do so, subject to the following conditions: 106acbc0e0Smrg// 116acbc0e0Smrg// The above copyright notice and this permission notice (including the next 126acbc0e0Smrg// paragraph) shall be included in all copies or substantial portions of the 136acbc0e0Smrg// Software. 146acbc0e0Smrg// 156acbc0e0Smrg// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 166acbc0e0Smrg// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 176acbc0e0Smrg// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 186acbc0e0Smrg// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 196acbc0e0Smrg// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 206acbc0e0Smrg// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 216acbc0e0Smrg// IN THE SOFTWARE. 226acbc0e0Smrg// 236acbc0e0Smrg 246acbc0e0Smrgsubdirs = ["*"] 256acbc0e0Smrgbuild = ["Android.sources.bp"] 266acbc0e0Smrg 276acbc0e0Smrgcc_defaults { 286acbc0e0Smrg name: "libdrm_defaults", 296acbc0e0Smrg cflags: [ 306acbc0e0Smrg // XXX: Consider moving these to config.h analogous to autoconf. 316acbc0e0Smrg "-DMAJOR_IN_SYSMACROS=1", 326acbc0e0Smrg "-DHAVE_VISIBILITY=1", 336acbc0e0Smrg "-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1", 346acbc0e0Smrg 356acbc0e0Smrg "-Wall", 366acbc0e0Smrg "-Werror", 376acbc0e0Smrg "-Wno-deprecated-declarations", 386acbc0e0Smrg "-Wno-format", 396acbc0e0Smrg "-Wno-gnu-variable-sized-type-not-at-end", 406acbc0e0Smrg "-Wno-implicit-function-declaration", 416acbc0e0Smrg "-Wno-int-conversion", 426acbc0e0Smrg "-Wno-missing-field-initializers", 436acbc0e0Smrg "-Wno-pointer-arith", 446acbc0e0Smrg "-Wno-unused-parameter", 456acbc0e0Smrg "-Wno-unused-variable", 466acbc0e0Smrg ], 476acbc0e0Smrg export_system_include_dirs: ["."], 486acbc0e0Smrg} 496acbc0e0Smrg 506acbc0e0Smrgcc_library_headers { 516acbc0e0Smrg name: "libdrm_headers", 526acbc0e0Smrg vendor_available: true, 536acbc0e0Smrg host_supported: true, 546acbc0e0Smrg defaults: ["libdrm_defaults"], 556acbc0e0Smrg export_include_dirs: ["include/drm", "android"], 566acbc0e0Smrg apex_available: [ 576acbc0e0Smrg "//apex_available:platform", 586acbc0e0Smrg "com.android.virt", 596acbc0e0Smrg ], 606acbc0e0Smrg} 616acbc0e0Smrg 626acbc0e0Smrggenrule { 636acbc0e0Smrg name: "generated_static_table_fourcc_h", 646acbc0e0Smrg out: ["generated_static_table_fourcc.h"], 656acbc0e0Smrg srcs: ["include/drm/drm_fourcc.h"], 666acbc0e0Smrg tool_files: ["gen_table_fourcc.py"], 676acbc0e0Smrg cmd: "python3 $(location gen_table_fourcc.py) $(in) $(out)", 686acbc0e0Smrg} 696acbc0e0Smrg 706acbc0e0Smrg// Library for the device 716acbc0e0Smrgcc_library { 726acbc0e0Smrg name: "libdrm", 736acbc0e0Smrg recovery_available: true, 746acbc0e0Smrg vendor_available: true, 756acbc0e0Smrg host_supported: true, 766acbc0e0Smrg defaults: [ 776acbc0e0Smrg "libdrm_defaults", 786acbc0e0Smrg "libdrm_sources", 796acbc0e0Smrg ], 806acbc0e0Smrg 816acbc0e0Smrg generated_headers: [ 826acbc0e0Smrg "generated_static_table_fourcc_h", 836acbc0e0Smrg ], 846acbc0e0Smrg 856acbc0e0Smrg export_include_dirs: ["include/drm", "android"], 866acbc0e0Smrg 876acbc0e0Smrg cflags: [ 886acbc0e0Smrg "-Wno-enum-conversion", 896acbc0e0Smrg "-Wno-pointer-arith", 906acbc0e0Smrg "-Wno-sign-compare", 916acbc0e0Smrg "-Wno-tautological-compare", 926acbc0e0Smrg ], 936acbc0e0Smrg apex_available: [ 946acbc0e0Smrg "//apex_available:platform", 956acbc0e0Smrg "com.android.virt", 966acbc0e0Smrg ], 976acbc0e0Smrg} 98