Nicolas Catania | 1be2c9d | 2009-05-28 19:30:30 -0700 | [diff] [blame] | 1 | # Copyright (C) 2009 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 | # |
| 16 | |
| 17 | ifeq ($(HOST_OS),linux) |
| 18 | |
| 19 | LOCAL_PATH := $(call my-dir) |
| 20 | |
| 21 | ####################################################################### |
| 22 | # gtest lib host |
| 23 | |
| 24 | include $(CLEAR_VARS) |
| 25 | |
| 26 | LOCAL_CPP_EXTENSION := .cc |
| 27 | # TODO: may need to drag these in a shared variable when we start to |
| 28 | # support target builds. |
| 29 | LOCAL_SRC_FILES := \ |
| 30 | gtest.cc \ |
| 31 | gtest-death-test.cc \ |
| 32 | gtest-filepath.cc \ |
| 33 | src/gtest-internal-inl.h \ |
| 34 | gtest-port.cc \ |
| 35 | gtest-test-part.cc \ |
| 36 | gtest-typed-test.cc |
| 37 | |
| 38 | |
| 39 | LOCAL_C_INCLUDES := \ |
| 40 | $(LOCAL_PATH)/.. \ |
| 41 | $(LOCAL_PATH)/../include |
| 42 | |
| 43 | |
Nicolas Catania | f6071db | 2009-06-24 08:24:18 -0700 | [diff] [blame] | 44 | LOCAL_CFLAGS += -O0 |
Nicolas Catania | 1be2c9d | 2009-05-28 19:30:30 -0700 | [diff] [blame] | 45 | |
| 46 | LOCAL_MODULE := libgtest |
| 47 | LOCAL_MODULE_TAGS := tests |
| 48 | |
| 49 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 50 | |
| 51 | ####################################################################### |
| 52 | # gtest_main lib host |
| 53 | |
| 54 | include $(CLEAR_VARS) |
| 55 | |
| 56 | LOCAL_CPP_EXTENSION := .cc |
| 57 | # TODO: may need to drag these in a shared variable when we start to |
| 58 | # support target builds. |
| 59 | LOCAL_SRC_FILES := \ |
| 60 | gtest_main.cc |
| 61 | |
| 62 | LOCAL_C_INCLUDES := \ |
| 63 | $(LOCAL_PATH)/.. \ |
| 64 | $(LOCAL_PATH)/../include |
| 65 | |
Nicolas Catania | f6071db | 2009-06-24 08:24:18 -0700 | [diff] [blame] | 66 | LOCAL_CFLAGS += -O0 |
Nicolas Catania | 1be2c9d | 2009-05-28 19:30:30 -0700 | [diff] [blame] | 67 | |
| 68 | LOCAL_STATIC_LIBRARIES := libgtest |
| 69 | |
| 70 | LOCAL_MODULE := libgtest_main |
| 71 | LOCAL_MODULE_TAGS := eng |
| 72 | |
| 73 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 74 | |
| 75 | endif # HOST_OS == linux |