Home | History | Annotate | Download | only in core
      1 #######################################################
      2 ## Shared definitions for all target test compilations.
      3 #######################################################
      4 
      5 ifeq ($(LOCAL_GTEST),true)
      6   LOCAL_CFLAGS += -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING
      7 
      8   ifndef LOCAL_SDK_VERSION
      9     LOCAL_STATIC_LIBRARIES += libgtest_main libgtest
     10   else
     11     # TODO(danalbert): Remove the suffix from the module since we only need the
     12     # one variant now.
     13     my_ndk_gtest_suffix := _c++
     14     LOCAL_STATIC_LIBRARIES += \
     15         libgtest_main_ndk$(my_ndk_gtest_suffix) \
     16         libgtest_ndk$(my_ndk_gtest_suffix)
     17   endif
     18 endif
     19 
     20 ifdef LOCAL_MODULE_PATH
     21 $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE))
     22 endif
     23 
     24 ifdef LOCAL_MODULE_PATH_32
     25 $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_32 when building test $(LOCAL_MODULE))
     26 endif
     27 
     28 ifdef LOCAL_MODULE_PATH_64
     29 $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_64 when building test $(LOCAL_MODULE))
     30 endif
     31 
     32 ifndef LOCAL_MODULE_RELATIVE_PATH
     33 LOCAL_MODULE_RELATIVE_PATH := $(LOCAL_MODULE)
     34 endif
     35