1# Copyright (C) 2010 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# Makefile to build device-based native tests for a test static library. 16 17# TODO: build of this sample is disabled since it dependent on the platform 18# long-term need to build this against prebuilt NDK 19# 20# GTest does not build on the simulator because it depends on STLport. 21ifneq ($(TARGET_SIMULATOR),true) 22 23LOCAL_PATH := $(call my-dir) 24include $(CLEAR_VARS) 25 26# All source files will be bundled into one test module 27LOCAL_SRC_FILES := \ 28 TradeFedNativeTestSample_test.cpp \ 29 TradeFedNativeTestSample2_test.cpp 30 31# Library to be tested 32LOCAL_STATIC_LIBRARIES := \ 33 tfnativetestsamplelib 34 35LOCAL_C_INCLUDES := \ 36 $(LOCAL_PATH)/../include 37 38# All gtests in all files should be compiled into one binary 39# The standard naming should conform to: <module_being_tested>tests 40LOCAL_MODULE := tfnativetestsamplelibtests 41 42# Standard location for native device tests; automatically defaults 43# to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) - only define this if you 44# want to override the default location to use a different subdirectory, such as: 45# LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/special_tfnativetestsamplelib 46 47include $(BUILD_NATIVE_TEST) 48 49endif 50