Commits

Anonymous committed 40dc635

Add a static version of the test.

Merge from internal master.

(cherry-picked from 4052fe181a499f52729b7178f11ae91212823682)

Change-Id: I90d1320e8d8032d82909a2a7435fda9ee3ec1fdb

Comments (0)

Files changed (1)

libc_test/Android.mk

 # Copyright 2013 The Android Open Source Project
 LOCAL_PATH:= $(call my-dir)
+
+src_files = \
+	main.cpp \
+
 include $(CLEAR_VARS)
 
 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
-# Add any strcmp or memcpy implementation files below.
-LOCAL_SRC_FILES:= \
-	main.cpp \
+LOCAL_SRC_FILES:= $(src_files)
 
 LOCAL_MODULE := libc_test
 LOCAL_MODULE_TAGS := debug
 endif # arm
 
 include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(src_files)
+
+LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
+LOCAL_MODULE_TAGS := debug
+LOCAL_MODULE := libc_test_static
+LOCAL_STATIC_LIBRARIES := libc libm
+LOCAL_FORCE_STATIC_EXECUTABLE := true
+
+ifeq ($(TARGET_ARCH),arm)
+LOCAL_ASFLAGS := -mthumb
+endif # arm
+
+include $(BUILD_EXECUTABLE)