• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2014 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_library_shared {
22    name: "libframesequence",
23
24    // Main library
25    // NOTE: the following code when dropped during the Android.mk->Android.bp
26    // conversion because FRAMESEQUENCE_INCLUDE_WEBP is never set:
27    //  ifeq ($(FRAMESEQUENCE_INCLUDE_WEBP),true)
28    //    LOCAL_C_INCLUDES += external/webp/include
29    //    LOCAL_SRC_FILES += FrameSequence_webp.cpp
30    //    LOCAL_STATIC_LIBRARIES += libwebp-decode
31    //  endif
32
33    static_libs: ["libgif"],
34    header_libs: ["jni_headers"],
35    include_dirs: ["external/giflib"],
36    srcs: [
37        "BitmapDecoderJNI.cpp",
38        "FrameSequence.cpp",
39        "FrameSequenceJNI.cpp",
40        "FrameSequence_gif.cpp",
41        "JNIHelpers.cpp",
42        "Registry.cpp",
43        "Stream.cpp",
44    ],
45    cflags: [
46        "-Wall",
47        "-Werror",
48        "-Wno-unused-parameter",
49        "-Wno-unused-variable",
50        "-Wno-overloaded-virtual",
51        "-fvisibility=hidden",
52    ],
53    sdk_version: "8",
54    shared_libs: [
55        "libjnigraphics",
56        "liblog",
57    ],
58
59    product_specific: true,
60}
61