Merge "Fix a wonderful copy/paste time bomb."
This commit is contained in:
@@ -1,39 +1,42 @@
|
|||||||
# Build the unit tests.
|
#
|
||||||
|
# Copyright (C) 2014 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.
|
||||||
|
#
|
||||||
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
LOCAL_PATH:= $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# Build the unit tests.
|
INPUT_SERVICE_TEST_SHARED_LIBRARIES := \
|
||||||
test_src_files := \
|
|
||||||
InputReader_test.cpp \
|
|
||||||
InputDispatcher_test.cpp
|
|
||||||
|
|
||||||
shared_libraries := \
|
|
||||||
libcutils \
|
|
||||||
liblog \
|
liblog \
|
||||||
libandroidfw \
|
|
||||||
libutils \
|
libutils \
|
||||||
libhardware \
|
|
||||||
libhardware_legacy \
|
|
||||||
libui \
|
|
||||||
libskia \
|
|
||||||
libinput \
|
libinput \
|
||||||
libinputservice
|
libskia \
|
||||||
|
libinputservice \
|
||||||
|
|
||||||
c_includes := \
|
include $(CLEAR_VARS)
|
||||||
external/skia/include/core
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
||||||
|
LOCAL_MODULE := InputReader_test
|
||||||
|
LOCAL_MODULE_TAGS := eng tests
|
||||||
|
LOCAL_C_INCLUDES := external/skia/include/core
|
||||||
|
LOCAL_SRC_FILES := InputReader_test.cpp
|
||||||
|
LOCAL_SHARED_LIBRARIES := $(INPUT_SERVICE_TEST_SHARED_LIBRARIES)
|
||||||
|
include $(BUILD_NATIVE_TEST)
|
||||||
|
|
||||||
module_tags := eng tests
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
||||||
$(foreach file,$(test_src_files), \
|
LOCAL_MODULE := InputDispatcher_test
|
||||||
$(eval include $(CLEAR_VARS)) \
|
LOCAL_MODULE_TAGS := eng tests
|
||||||
$(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
|
LOCAL_C_INCLUDES := external/skia/include/core
|
||||||
$(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
|
LOCAL_SRC_FILES := InputDispatcher_test.cpp
|
||||||
$(eval LOCAL_C_INCLUDES := $(c_includes)) \
|
LOCAL_SHARED_LIBRARIES := $(INPUT_SERVICE_TEST_SHARED_LIBRARIES)
|
||||||
$(eval LOCAL_SRC_FILES := $(file)) \
|
include $(BUILD_NATIVE_TEST)
|
||||||
$(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
|
|
||||||
$(eval LOCAL_MODULE_TAGS := $(module_tags)) \
|
|
||||||
$(eval include $(BUILD_NATIVE_TEST)) \
|
|
||||||
)
|
|
||||||
|
|
||||||
# Build the manual test programs.
|
|
||||||
include $(call all-makefiles-under, $(LOCAL_PATH))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user