Merge "Convert core/tests/featureflagtests/Android.mk file to Android.bp"
This commit is contained in:
19
core/tests/featureflagtests/Android.bp
Normal file
19
core/tests/featureflagtests/Android.bp
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
android_test {
|
||||||
|
name: "FrameworksCoreFeatureFlagTests",
|
||||||
|
// We only want this apk build for tests.
|
||||||
|
// Include all test java files.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
dxflags: ["--core-library"],
|
||||||
|
static_libs: [
|
||||||
|
"android-common",
|
||||||
|
"frameworks-core-util-lib",
|
||||||
|
"android-support-test",
|
||||||
|
],
|
||||||
|
libs: [
|
||||||
|
"android.test.runner",
|
||||||
|
"android.test.base",
|
||||||
|
],
|
||||||
|
platform_apis: true,
|
||||||
|
certificate: "platform",
|
||||||
|
test_suites: ["device-tests"],
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# We only want this apk build for tests.
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# Include all test java files.
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
$(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_DX_FLAGS := --core-library
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := android-common frameworks-core-util-lib android-support-test
|
|
||||||
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
|
|
||||||
LOCAL_PACKAGE_NAME := FrameworksCoreFeatureFlagTests
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
Reference in New Issue
Block a user