diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-02-16 17:44:06 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-02-16 17:44:06 +0000 |
commit | 44a3e85d6836eeb41b92b46f8d77357fa2f99171 (patch) | |
tree | 61cdf092666b113bb3bdb7e085daf2d7951a4664 | |
parent | 9c8333802e3ba841f5a02723b540c4531f0dab91 (diff) | |
parent | 099828b5c770ef8630741721be4b6c25a8394204 (diff) | |
download | libvpx-44a3e85d6836eeb41b92b46f8d77357fa2f99171.tar.gz |
Merge "[LSC] Add LOCAL_LICENSE_KINDS to external/libvpx"android-s-preview-1
-rw-r--r-- | Android.bp | 31 | ||||
-rw-r--r-- | libvpx/build/make/Android.mk | 3 | ||||
-rw-r--r-- | libvpx/test/android/Android.mk | 6 | ||||
-rw-r--r-- | libvpx/third_party/libwebm/Android.mk | 3 | ||||
-rw-r--r-- | libwebm/Android.bp | 9 |
5 files changed, 52 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 6e84e3c5c..216ef220c 100644 --- a/Android.bp +++ b/Android.bp @@ -1,6 +1,37 @@ // THIS FILE IS AUTOGENERATED, DO NOT EDIT // Generated from Android.bp.in, run ./generate_config.sh to regenerate +package { + default_applicable_licenses: ["external_libvpx_license"], +} + +// Added automatically by a large-scale-change that took the approach of +// 'apply every license found to every target'. While this makes sure we respect +// every license restriction, it may not be entirely correct. +// +// e.g. GPL in an MIT project might only apply to the contrib/ directory. +// +// Please consider splitting the single license below into multiple licenses, +// taking care not to lose any license_kind information, and overriding the +// default license using the 'licenses: [...]' property on targets as needed. +// +// For unused files, consider creating a 'fileGroup' with "//visibility:private" +// to attach the license to, and including a comment whether the files may be +// used in the current project. +// See: http://go/android-license-faq +license { + name: "external_libvpx_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-BSD", + "SPDX-license-identifier-ISC", + "legacy_unencumbered", + ], + license_text: [ + "NOTICE", + ], +} + libvpx_arm_neon_c_srcs = [ "libvpx/vp8/common/alloccommon.c", "libvpx/vp8/common/arm/loopfilter_arm.c", diff --git a/libvpx/build/make/Android.mk b/libvpx/build/make/Android.mk index 6cb3af027..b8032e67a 100644 --- a/libvpx/build/make/Android.mk +++ b/libvpx/build/make/Android.mk @@ -166,6 +166,9 @@ LOCAL_CFLAGS += \ -I$(ASM_CNV_PATH)/libvpx LOCAL_MODULE := libvpx +LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE $(LOCAL_PATH)/../../PATENTS ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) LOCAL_STATIC_LIBRARIES := cpufeatures diff --git a/libvpx/test/android/Android.mk b/libvpx/test/android/Android.mk index 7318de2fc..9c61ec534 100644 --- a/libvpx/test/android/Android.mk +++ b/libvpx/test/android/Android.mk @@ -30,6 +30,9 @@ include $(CLEAR_VARS) LOCAL_ARM_MODE := arm LOCAL_CPP_EXTENSION := .cc LOCAL_MODULE := gtest +LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE $(LOCAL_PATH)/../../PATENTS LOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/ LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include/ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/include/ @@ -40,6 +43,9 @@ include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_ARM_MODE := arm LOCAL_MODULE := libvpx_test +LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE $(LOCAL_PATH)/../../PATENTS LOCAL_STATIC_LIBRARIES := gtest libwebm ifeq ($(ENABLE_SHARED),1) diff --git a/libvpx/third_party/libwebm/Android.mk b/libvpx/third_party/libwebm/Android.mk index b46ba101d..72e5583c1 100644 --- a/libvpx/third_party/libwebm/Android.mk +++ b/libvpx/third_party/libwebm/Android.mk @@ -2,6 +2,9 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE:= libwebm +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-BSD +LOCAL_LICENSE_CONDITIONS:= notice +LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/LICENSE.TXT $(LOCAL_PATH)/PATENTS.TXT LOCAL_CPPFLAGS:=-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS LOCAL_CPPFLAGS+=-D__STDC_LIMIT_MACROS -std=c++11 LOCAL_C_INCLUDES:= $(LOCAL_PATH) diff --git a/libwebm/Android.bp b/libwebm/Android.bp index 60b0277f6..f33f16e63 100644 --- a/libwebm/Android.bp +++ b/libwebm/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_libvpx_license" + // to get the below license kinds: + // SPDX-license-identifier-BSD + default_applicable_licenses: ["external_libvpx_license"], +} + cc_library_static { name: "libwebm", srcs: ["mkvparser/mkvparser.cc"], |