Android.mk: Make libwebm easier to build downstream.

- Explicitly add the libwebm path as an include directory, and export
  it to ensure the include path propagates to other builds depending
  on libwebm.
- Disable clang/gcc warning extern-c-compat; it's triggered in Android builds
  by built-in includes.

Change-Id: I631f5a6f3b50a73519ae436033257de7e25afb16
This commit is contained in:
Tom Finegan 2016-04-05 07:42:19 -07:00
parent 5c50e310e7
commit 10aed96a9c

View File

@ -3,7 +3,9 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= libwebm
LOCAL_CPPFLAGS:=-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
LOCAL_CPPFLAGS+=-D__STDC_LIMIT_MACROS
LOCAL_CPPFLAGS+=-D__STDC_LIMIT_MACROS -Wno-extern-c-compat
LOCAL_C_INCLUDES:= $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDES:= $(LOCAL_PATH)
LOCAL_SRC_FILES:= common/file_util.cc \
common/hdr_util.cc \