| 1 |
// Copyright (C) 2011 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 |
// |
| 15 |
|
| 16 |
package { |
| 17 |
// See: http://go/android-license-faq |
| 18 |
// A large-scale-change added 'default_applicable_licenses' to import |
| 19 |
// all of the 'license_kinds' from "frameworks_base_license" |
| 20 |
// to get the below license kinds: |
| 21 |
// SPDX-license-identifier-Apache-2.0 |
| 22 |
default_applicable_licenses: ["frameworks_base_license"], |
| 23 |
} |
| 24 |
|
| 25 |
cc_library_shared { |
| 26 |
name: "libfilterfw", |
| 27 |
|
| 28 |
cflags: [ |
| 29 |
"-Wall", |
| 30 |
"-Werror", |
| 31 |
], |
| 32 |
|
| 33 |
whole_static_libs: [ |
| 34 |
"libfilterfw_jni", |
| 35 |
"libfilterfw_native", |
| 36 |
], |
| 37 |
|
| 38 |
shared_libs: [ |
| 39 |
"libGLESv2", |
| 40 |
"libEGL", |
| 41 |
"libgui", |
| 42 |
"libdl", |
| 43 |
"libcutils", |
| 44 |
"libutils", |
| 45 |
"liblog", |
| 46 |
"libandroid", |
| 47 |
"libjnigraphics", |
| 48 |
"libmedia", |
| 49 |
], |
| 50 |
} |
| 51 |
|
| 52 |
cc_library_static { |
| 53 |
name: "libfilterfw_jni", |
| 54 |
|
| 55 |
srcs: [ |
| 56 |
"jni/jni_init.cpp", |
| 57 |
"jni/jni_gl_environment.cpp", |
| 58 |
"jni/jni_gl_frame.cpp", |
| 59 |
"jni/jni_native_buffer.cpp", |
| 60 |
"jni/jni_native_frame.cpp", |
| 61 |
"jni/jni_native_program.cpp", |
| 62 |
"jni/jni_shader_program.cpp", |
| 63 |
"jni/jni_util.cpp", |
| 64 |
"jni/jni_vertex_frame.cpp", |
| 65 |
], |
| 66 |
|
| 67 |
local_include_dirs: ["native"], |
| 68 |
|
| 69 |
cflags: [ |
| 70 |
"-Wall", |
| 71 |
"-Werror", |
| 72 |
"-Wunused", |
| 73 |
"-Wunreachable-code", |
| 74 |
"-Wno-unused-parameter", |
| 75 |
], |
| 76 |
|
| 77 |
header_libs: ["jni_headers"], |
| 78 |
|
| 79 |
shared_libs: [ |
| 80 |
"libmedia", |
| 81 |
"libgui", |
| 82 |
"libandroid", |
| 83 |
], |
| 84 |
} |