Build hevcdec with Soong instead of Make.

Converts the hevcdec test binary to use the Soong build system.

Bug: 110791537
Test: m -j48 hevcdec
Change-Id: I6caa029905da69bf902ddff7b6e91cf749a0fa35
This commit is contained in:
Ivan Lozano 2018-07-16 12:39:37 -07:00
parent be2db551c5
commit 662b247f65
3 changed files with 14 additions and 20 deletions

View file

@ -389,3 +389,17 @@ cc_library_static {
},
},
}
cc_test {
name: "hevcdec",
cflags: [
"-DPROFILE_ENABLE",
"-DARM",
"-fPIC",
"-DMD5_DISABLE",
"-Wall",
"-Werror",
],
srcs: ["test/decoder/main.c"],
static_libs: ["libhevcdec"],
}

View file

@ -1,5 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# decoder
include $(LOCAL_PATH)/decoder.mk

View file

@ -1,15 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := hevcdec
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS := \
-DPROFILE_ENABLE -DARM -fPIC -DMD5_DISABLE \
-Wall -Werror
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../decoder $(LOCAL_PATH)/../common $(LOCAL_PATH)/
LOCAL_SRC_FILES := decoder/main.c
LOCAL_STATIC_LIBRARIES := libhevcdec
include $(BUILD_EXECUTABLE)