1#
2# Copyright (C) 2016 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
17WORKING_DIR := $(call my-dir)
18include $(CLEAR_VARS)
19LIBVPX_ROOT := $(WORKING_DIR)/libvpx
20
21# build libvpx.so
22LOCAL_PATH := $(WORKING_DIR)
23include libvpx.mk
24
25# build libvpxV2JNI.so
26include $(CLEAR_VARS)
27LOCAL_PATH := $(WORKING_DIR)
28LOCAL_MODULE := libvpxV2JNI
29LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
30LOCAL_LICENSE_CONDITIONS := notice
31LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../../LICENSE
32LOCAL_ARM_MODE := arm
33LOCAL_CPP_EXTENSION := .cc
34LOCAL_SRC_FILES := vpx_jni.cc
35LOCAL_LDLIBS := -llog -lz -lm -landroid
36LOCAL_SHARED_LIBRARIES := libvpx
37LOCAL_STATIC_LIBRARIES := cpufeatures
38include $(BUILD_SHARED_LIBRARY)
39
40$(call import-module,android/cpufeatures)
41