blob: ec547c8566d14dd92b0d164bae1f662ee83682f5 [file] [log] [blame]
Nicolas Catania1be2c9d2009-05-28 19:30:30 -07001# 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
17ifeq ($(HOST_OS),linux)
18
19LOCAL_PATH := $(call my-dir)
20
21#######################################################################
22# gtest lib host
23
24include $(CLEAR_VARS)
25
26LOCAL_CPP_EXTENSION := .cc
27# TODO: may need to drag these in a shared variable when we start to
28# support target builds.
29LOCAL_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
39LOCAL_C_INCLUDES := \
40 $(LOCAL_PATH)/.. \
41 $(LOCAL_PATH)/../include
42
43
Nicolas Cataniaf6071db2009-06-24 08:24:18 -070044LOCAL_CFLAGS += -O0
Nicolas Catania1be2c9d2009-05-28 19:30:30 -070045
46LOCAL_MODULE := libgtest
47LOCAL_MODULE_TAGS := tests
48
49include $(BUILD_HOST_STATIC_LIBRARY)
50
51#######################################################################
52# gtest_main lib host
53
54include $(CLEAR_VARS)
55
56LOCAL_CPP_EXTENSION := .cc
57# TODO: may need to drag these in a shared variable when we start to
58# support target builds.
59LOCAL_SRC_FILES := \
60 gtest_main.cc
61
62LOCAL_C_INCLUDES := \
63 $(LOCAL_PATH)/.. \
64 $(LOCAL_PATH)/../include
65
Nicolas Cataniaf6071db2009-06-24 08:24:18 -070066LOCAL_CFLAGS += -O0
Nicolas Catania1be2c9d2009-05-28 19:30:30 -070067
68LOCAL_STATIC_LIBRARIES := libgtest
69
70LOCAL_MODULE := libgtest_main
71LOCAL_MODULE_TAGS := eng
72
73include $(BUILD_HOST_STATIC_LIBRARY)
74
75endif # HOST_OS == linux