OSDN Git Service

Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
[android-x86/external-stagefright-plugins.git] / common.mk
1 #
2 # Copyright (C) 2017 The Android-x86 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
17 include $(CLEAR_VARS)
18
19 include external/$(AV_CODEC_LIB)/android/$(AV_CODEC_LIB).mk
20
21 # put the libraries to /vendor
22 LOCAL_PROPRIETARY_MODULE := true
23
24 LOCAL_C_INCLUDES += \
25         $(LOCAL_PATH)/../include \
26         $(LOCAL_PATH)/.. \
27         frameworks/native/include/media/openmax \
28         frameworks/av/include \
29         frameworks/av/media/libstagefright
30
31 LOCAL_SHARED_LIBRARIES := \
32         libutils \
33         libcutils \
34         libavcodec \
35         libavformat \
36         libavutil \
37         libstagefright \
38         libstagefright_foundation
39
40 ifneq ($(filter arm arm64,$(TARGET_ARCH)),)
41         LOCAL_CFLAGS += -Wno-psabi
42 endif
43
44 LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS=1 -D__STDINT_LIMITS=1
45
46 # Quiet some noise
47 LOCAL_CFLAGS += -Wno-deprecated-declarations -Wno-unused-parameter
48 LOCAL_CLANG_CFLAGS += -Wno-unknown-attributes
49
50 LOCAL_MODULE_TAGS := optional