Skip to content
Snippets Groups Projects
Commit df79d147 authored by Yuntao Xu's avatar Yuntao Xu
Browse files

Convert jni/Android.mk to Android.bp

Converted the Make file to a Soong one.

Bug: 202170767
Test: compared the two binary files built by Make and Soong
Test: TreeHugger
Change-Id: I696e8b3a32ad5441619d8d7ea7c3e3059fae9123
parent 86d59584
No related branches found
No related tags found
No related merge requests found
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package {
// See: http://go/android-license-faq
default_applicable_licenses: [
"external_v4l2_codec2_license",
],
}
cc_library_shared {
name: "libcodectest",
srcs: [
"video_encoder_e2e_test.cpp",
"video_decoder_e2e_test.cpp",
"e2e_test_jni.cpp",
"common.cpp",
"encoded_data_helper.cpp",
"video_frame.cpp",
"md5.cpp",
"mediacodec_encoder.cpp",
"mediacodec_decoder.cpp",
],
shared_libs: [
"liblog",
"libmediandk",
"libandroid",
],
header_libs: ["liblog_headers"],
sdk_version: "28",
stl: "c++_static",
static_libs: ["libgtest_ndk_c++"],
// TODO(stevensd): Fix and reenable warnings
cflags: ["-Wno-everything"],
}
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
video_encoder_e2e_test.cpp \
video_decoder_e2e_test.cpp \
e2e_test_jni.cpp \
common.cpp \
encoded_data_helper.cpp \
video_frame.cpp \
md5.cpp \
mediacodec_encoder.cpp \
mediacodec_decoder.cpp \
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := \
liblog \
libmediandk \
libandroid \
LOCAL_HEADER_LIBRARIES := liblog_headers
LOCAL_SDK_VERSION := 28
LOCAL_NDK_STL_VARIANT := c++_static
LOCAL_STATIC_LIBRARIES := libgtest_ndk_c++
LOCAL_MODULE := libcodectest
LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD legacy_unencumbered
LOCAL_LICENSE_CONDITIONS := notice unencumbered
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
# TODO(stevensd): Fix and reenable warnings
LOCAL_CFLAGS += -Wno-everything
include $(BUILD_SHARED_LIBRARY)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment