Home | History | Annotate | Download | only in tests
      1 # Build the unit tests.
      2 LOCAL_PATH:= $(call my-dir)
      3 include $(CLEAR_VARS)
      4 
      5 # Build the unit tests.
      6 test_src_files := \
      7     TreeManager_test.cpp
      8 
      9 shared_libraries := \
     10     libcutils \
     11     libwebcore \
     12     libskia \
     13     libstlport
     14 
     15 static_libraries := \
     16     libgtest \
     17     libgtest_main
     18 
     19 c_includes := \
     20     bionic \
     21     bionic/libstdc++/include \
     22     external/gtest/include \
     23     external/stlport/stlport \
     24     external/skia/include/core \
     25     external/icu4c/common \
     26     $(LOCAL_PATH)/../../JavaScriptCore \
     27     $(LOCAL_PATH)/../../JavaScriptCore/wtf \
     28     $(LOCAL_PATH)/.. \
     29     $(LOCAL_PATH)/../platform/graphics \
     30     $(LOCAL_PATH)/../platform/graphics/transforms \
     31     $(LOCAL_PATH)/../platform/graphics/android
     32 
     33     # external/webkit/Source/WebCore/platform/graphics/android
     34 
     35 module_tags := eng tests
     36 
     37 $(foreach file,$(test_src_files), \
     38     $(eval include $(CLEAR_VARS)) \
     39     $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
     40     $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
     41     $(eval LOCAL_C_INCLUDES := $(c_includes)) \
     42     $(eval LOCAL_SRC_FILES := $(file)) \
     43     $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
     44     $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
     45     $(eval include $(BUILD_EXECUTABLE)) \
     46 )
     47 
     48 # Build the manual test programs.
     49 include $(call all-makefiles-under, $(LOCAL_PATH))
     50