| // Copyright 2025 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| cc_library_shared { |
| name: "libppd", |
| |
| visibility: [ |
| "//vendor:__subpackages__", |
| "//external/epson-inkjet-printer-escpr", |
| "//external/hplip", |
| ], |
| |
| cflags: [ |
| "-DHAVE_LIBCUPS2", |
| "-Wno-implicit-fallthrough", |
| "-Wno-ignored-qualifiers", |
| "-Wno-unused-parameter", |
| "-Wno-deprecated-declarations", |
| "-Wno-tautological-bitwise-compare", |
| ], |
| |
| // Put the config.h file in a private dir so it doesn't get exported. |
| local_include_dirs: [ |
| "private", |
| ], |
| |
| srcs: [ |
| "ppd/*.c", |
| ], |
| |
| exclude_srcs: [ |
| "ppd/testppd.c", |
| "ppd/testdriver.c", |
| "ppd/testppdfile.c", |
| ], |
| |
| export_include_dirs: [ |
| ".", |
| "ppd", |
| ], |
| |
| shared_libs: [ |
| "libcups", |
| "libcupsfilters", |
| "libjpeg", |
| "libz", |
| ], |
| } |
| |
| rust_bindgen { |
| name: "libppd_bindgen", |
| crate_name: "ppd_bindgen", |
| |
| wrapper_src: "ppd/ppd.h", |
| |
| source_stem: "bindings", |
| shared_libs: [ |
| "libppd", |
| "libcups", |
| "libcupsfilters", |
| ], |
| |
| visibility: [ |
| "//vendor:__subpackages__", |
| ], |
| } |