• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 2018 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19ifneq ($(wildcard $(LOCAL_PATH)/../../third_party/googletest/googletest/src/gtest-all.cc),)
20
21include $(CLEAR_VARS)
22
23LOCAL_MODULE := libgtest_all_swiftshader
24LOCAL_MODULE_TAGS := optional
25LOCAL_VENDOR_MODULE := true
26LOCAL_CPP_EXTENSION := .cc
27
28LOCAL_SRC_FILES := \
29	../../third_party/googletest/googletest/src/gtest-all.cc
30
31LOCAL_C_INCLUDES := \
32	$(LOCAL_PATH)/../../third_party/googletest/googletest/include/ \
33	$(LOCAL_PATH)/../../third_party/googletest/googlemock/include/ \
34	$(LOCAL_PATH)/../../third_party/googletest/googletest/
35
36include $(BUILD_STATIC_LIBRARY)
37
38
39include $(CLEAR_VARS)
40
41LOCAL_MODULE := swiftshader-unittests
42LOCAL_MODULE_TAGS := optional
43LOCAL_VENDOR_MODULE := true
44
45LOCAL_SRC_FILES := \
46	main.cpp \
47	unittests.cpp
48
49LOCAL_C_INCLUDES := \
50	$(LOCAL_PATH)/../../third_party/googletest/googletest/include/ \
51	$(LOCAL_PATH)/../../third_party/googletest/googlemock/include/ \
52	$(LOCAL_PATH)/../../third_party/googletest/googletest/ \
53	$(LOCAL_PATH)/../../include/
54
55LOCAL_SHARED_LIBRARIES := \
56	libEGL_swiftshader \
57	libGLESv2_swiftshader
58
59LOCAL_STATIC_LIBRARIES := \
60	libgtest_all_swiftshader
61
62include $(BUILD_EXECUTABLE)
63
64endif  # gtest-all.cc exists
65