Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 1 | # Copyright (C) 2016 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 17 | # |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 18 | # Reusable Sensor test classes and helpers |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 19 | # |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LOCAL_MODULE := cts-sensors-tests |
| 23 | |
| 24 | LOCAL_MODULE_TAGS := tests |
| 25 | |
| 26 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
| 27 | |
Aaron Holden | af1e466 | 2017-04-26 10:17:48 -0700 | [diff] [blame] | 28 | LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 29 | |
Paul Duffin | b7a1329 | 2017-12-15 07:27:19 +0000 | [diff] [blame] | 30 | LOCAL_JAVA_LIBRARIES := platform-test-annotations android.test.base.stubs |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 31 | |
| 32 | LOCAL_SDK_VERSION := current |
| 33 | |
| 34 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
jdesprez | f99bcd0 | 2017-05-03 12:39:11 -0700 | [diff] [blame] | 35 | -include cts/error_prone_rules_tests.mk |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 36 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 37 | |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 38 | # |
| 39 | # JNI components for testing NDK |
| 40 | # |
| 41 | include $(CLEAR_VARS) |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 42 | |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 43 | LOCAL_MODULE := libcts-sensors-ndk-jni |
| 44 | |
| 45 | LOCAL_CFLAGS += -Werror -Wall -Wextra |
| 46 | |
| 47 | LOCAL_MODULE_TAGS := tests |
| 48 | |
| 49 | LOCAL_SRC_FILES := \ |
| 50 | jni/SensorTest.cpp \ |
Peng Xu | f47b7ed | 2017-02-28 20:36:00 -0800 | [diff] [blame] | 51 | jni/SensorTestCases.cpp \ |
Peng Xu | a6088df | 2017-03-05 01:46:54 -0800 | [diff] [blame] | 52 | jni/android_hardware_cts_SensorDirectReportTest.cpp \ |
| 53 | jni/android_hardware_cts_SensorNativeTest.cpp \ |
Peng Xu | f47b7ed | 2017-02-28 20:36:00 -0800 | [diff] [blame] | 54 | jni/nativeTestHelper.cpp |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 55 | |
| 56 | LOCAL_C_INCLUDES := $(JNI_H_INCLUDE) |
| 57 | |
| 58 | LOCAL_SHARED_LIBRARIES := libandroid liblog |
| 59 | |
| 60 | LOCAL_SDK_VERSION := current |
| 61 | |
| 62 | LOCAL_NDK_STL_VARIANT := c++_shared |
jdesprez | 6b119e5 | 2017-05-04 15:30:11 -0700 | [diff] [blame] | 63 | -include cts/error_prone_rules_tests.mk |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 64 | include $(BUILD_SHARED_LIBRARY) |
| 65 | |
| 66 | # |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 67 | # CtsSensorTestCases package |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 68 | # |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 69 | include $(CLEAR_VARS) |
| 70 | |
| 71 | LOCAL_MODULE_TAGS := tests |
| 72 | |
| 73 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
| 74 | |
| 75 | # Tag this module as a cts test artifact |
nickrose | f1efbc6 | 2017-07-05 12:38:06 -0700 | [diff] [blame] | 76 | LOCAL_COMPATIBILITY_SUITE := cts vts general-tests |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 77 | |
Julien Desprez | 7d03fb4 | 2017-03-07 16:30:28 +0000 | [diff] [blame] | 78 | # include both the 32 and 64 bit versions |
| 79 | LOCAL_MULTILIB := both |
| 80 | |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 81 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Aaron Holden | af1e466 | 2017-04-26 10:17:48 -0700 | [diff] [blame] | 82 | compatibility-device-util \ |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 83 | ctstestrunner \ |
| 84 | cts-sensors-tests \ |
| 85 | |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 86 | LOCAL_JNI_SHARED_LIBRARIES := libcts-sensors-ndk-jni |
| 87 | |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 88 | LOCAL_PACKAGE_NAME := CtsSensorTestCases |
| 89 | |
| 90 | LOCAL_SDK_VERSION := current |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 91 | |
Paul Duffin | b7a1329 | 2017-12-15 07:27:19 +0000 | [diff] [blame] | 92 | LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 93 | |
Peng Xu | 19a6b34 | 2017-02-16 20:30:26 -0800 | [diff] [blame] | 94 | LOCAL_NDK_STL_VARIANT := c++_shared |
| 95 | |
Peng Xu | 1bd2c9b | 2016-08-31 13:26:19 -0700 | [diff] [blame] | 96 | include $(BUILD_CTS_PACKAGE) |