Convert libwvdrmengine to soong.

Bug: 37512442
Test: mmm -j50 vendor/widevine/libwvdrmengine/
Change-Id: I45b06b7f14ca4f65031bbc3806808a191156ee7b
This commit is contained in:
Tomasz Wasilczyk
2017-05-09 11:27:06 -07:00
parent 751d4b0d71
commit 33f9979b2b
28 changed files with 742 additions and 850 deletions

View File

@@ -0,0 +1,64 @@
//
// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
cc_test {
name: "libwvdrmengine_test",
owner: "widevine",
proprietary: true,
srcs: [
"legacy_src/WVCreatePluginFactories_test.cpp",
"legacy_src/WVCryptoFactory_test.cpp",
"legacy_src/WVDrmFactory_test.cpp",
],
static_libs: [
"libcrypto_static",
"libwvdrmdrmplugin",
],
header_libs: [
"liboemcrypto_libwvdrmengine_local",
],
shared_libs: [
"liblog",
"libutils",
"libwvdrmengine",
],
}
cc_test {
name: "libwvdrmengine_hidl_test",
owner: "widevine",
proprietary: true,
srcs: [
"WVCreatePluginFactories_test.cpp",
"WVCryptoFactory_test.cpp",
"WVDrmFactory_test.cpp",
],
static_libs: [
"libcrypto_static",
"libwvdrmdrmplugin_hidl",
],
header_libs: [
"liboemcrypto_libwvdrmengine_local",
],
shared_libs: [
"android.hardware.drm@1.0",
"libcutils",
"libhidlbase",
"liblog",
"libutils",
"libwvhidl",
],
}

View File

@@ -1,91 +0,0 @@
LOCAL_PATH:= $(call my-dir)
# -----------------------------------------------------------------------------
# Builds libwvdrmengine_test
#
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
legacy_src/WVCreatePluginFactories_test.cpp \
legacy_src/WVCryptoFactory_test.cpp \
legacy_src/WVDrmFactory_test.cpp \
LOCAL_C_INCLUDES := \
frameworks/av/include \
frameworks/native/include \
vendor/widevine/libwvdrmengine/include \
vendor/widevine/libwvdrmengine/mediadrm/include \
vendor/widevine/libwvdrmengine/oemcrypto/include \
LOCAL_STATIC_LIBRARIES := \
libcrypto_static \
libgtest \
libgtest_main \
LOCAL_SHARED_LIBRARIES := \
libdl \
liblog \
libutils \
libwvdrmengine \
LOCAL_MODULE := libwvdrmengine_test
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE_OWNER := widevine
LOCAL_PROPRIETARY_MODULE := true
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
endif
include $(BUILD_EXECUTABLE)
# -----------------------------------------------------------------------------
# Builds libwvdrmengine_hidl_test
#
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
WVCreatePluginFactories_test.cpp \
WVCryptoFactory_test.cpp \
WVDrmFactory_test.cpp \
LOCAL_C_INCLUDES := \
frameworks/av/include \
frameworks/native/include \
vendor/widevine/libwvdrmengine/include_hidl \
vendor/widevine/libwvdrmengine/include \
vendor/widevine/libwvdrmengine/mediadrm/include_hidl \
vendor/widevine/libwvdrmengine/mediadrm/include \
vendor/widevine/libwvdrmengine/oemcrypto/include \
LOCAL_STATIC_LIBRARIES := \
libcrypto_static \
libgtest \
libgtest_main \
LOCAL_SHARED_LIBRARIES := \
android.hardware.drm@1.0 \
libcutils \
libdl \
libhidlbase \
libhidlmemory \
liblog \
libutils \
libwvhidl \
LOCAL_MODULE := libwvdrmengine_hidl_test
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE_OWNER := widevine
LOCAL_PROPRIETARY_MODULE := true
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
endif
include $(BUILD_EXECUTABLE)