1// Copyright (C) 2013 The Android Open Source Project 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 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_library_shared { 21 name: "libexynosscaler", 22 23 shared_libs: [ 24 "liblog", 25 "libutils", 26 "libcutils", 27 ], 28 header_libs: [ 29 "libcutils_headers", 30 "libsystem_headers", 31 "libhardware_headers", 32 "google_hal_headers", 33 ], 34 35 export_include_dirs: ["include"], 36 37 srcs: [ 38 "libscaler.cpp", 39 "libscaler-v4l2.cpp", 40 "libscalerblend-v4l2.cpp", 41 "libscaler-m2m1shot.cpp", 42 "libscaler-swscaler.cpp", 43 ], 44 45 proprietary: true, 46 47 cflags: select(soong_config_variable("google_graphics", "board_uses_scaler_m2m1shot"), { 48 true: [ 49 "-DSCALER_USE_M2M1SHOT", 50 ], 51 default: [], 52 }) + select(soong_config_variable("google_graphics", "board_uses_align_restriction"), { 53 true: [ 54 "-DSCALER_ALIGN_RESTRICTION", 55 ], 56 default: [], 57 }), 58} 59