File: host_test_internal.mk

package info (click to toggle)
android-platform-build 1%3A8.1.0%2Br23-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,620 kB
  • sloc: python: 12,074; cpp: 6,068; cs: 5,512; makefile: 2,356; sh: 1,829; java: 1,359; ansic: 987
file content (31 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#####################################################
## Shared definitions for all host test compilations.
#####################################################

ifeq ($(LOCAL_GTEST),true)
  LOCAL_CFLAGS_windows += -DGTEST_OS_WINDOWS
  LOCAL_CFLAGS_linux += -DGTEST_OS_LINUX
  LOCAL_LDLIBS_linux += -lpthread
  LOCAL_CFLAGS_darwin += -DGTEST_OS_MAC
  LOCAL_LDLIBS_darwin += -lpthread

  LOCAL_CFLAGS += -DGTEST_HAS_STD_STRING -O0 -g

  LOCAL_STATIC_LIBRARIES += libgtest_main_host libgtest_host
endif

ifdef LOCAL_MODULE_PATH
$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE))
endif

ifdef LOCAL_MODULE_PATH_32
$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_32 when building test $(LOCAL_MODULE))
endif

ifdef LOCAL_MODULE_PATH_64
$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_64 when building test $(LOCAL_MODULE))
endif

ifndef LOCAL_MODULE_RELATIVE_PATH
LOCAL_MODULE_RELATIVE_PATH := $(LOCAL_MODULE)
endif