| LOCAL_PATH := $(my-dir) |
| |
| ### |
| ### COMMON VARIABLES: if you add a variable, make sure to clear it |
| ### at the end of this file. |
| ### |
| |
| GOOGLE_DOUBLE_CONVERSION_COMMON := $(LOCAL_PATH)/android/build/google-double-conversion-common.mk |
| GOOGLE_DOUBLE_CONVERSION_TEST_ROOT := $(TARGET_OUT_DATA_NATIVE_TESTS)/google-double-conversion |
| |
| ### |
| ### libdouble-conversion |
| ### |
| |
| include $(CLEAR_VARS) |
| include $(GOOGLE_DOUBLE_CONVERSION_COMMON) |
| LOCAL_MODULE := libdouble-conversion |
| LOCAL_SRC_FILES := \ |
| src/strtod.cc \ |
| src/fast-dtoa.cc \ |
| src/fixed-dtoa.cc \ |
| src/bignum-dtoa.cc \ |
| src/cached-powers.cc \ |
| src/bignum.cc \ |
| src/double-conversion.cc \ |
| src/diy-fp.cc \ |
| |
| include $(BUILD_SHARED_LIBRARY) |
| |
| ### |
| ### unit tests |
| ### |
| |
| include $(CLEAR_VARS) |
| include $(GOOGLE_DOUBLE_CONVERSION_COMMON) |
| LOCAL_MODULE := cctest |
| LOCAL_C_INCLUDES += \ |
| $(LOCAL_PATH)/src \ |
| $(LOCAL_PATH)/test/cctest |
| LOCAL_SRC_FILES := \ |
| test/cctest/cctest.cc \ |
| test/cctest/gay-fixed.cc \ |
| test/cctest/gay-precision.cc \ |
| test/cctest/gay-shortest.cc \ |
| test/cctest/gay-shortest-single.cc \ |
| test/cctest/test-bignum.cc \ |
| test/cctest/test-bignum-dtoa.cc \ |
| test/cctest/test-conversions.cc \ |
| test/cctest/test-diy-fp.cc \ |
| test/cctest/test-dtoa.cc \ |
| test/cctest/test-fast-dtoa.cc \ |
| test/cctest/test-fixed-dtoa.cc \ |
| test/cctest/test-ieee.cc \ |
| test/cctest/test-strtod.cc |
| LOCAL_SHARED_LIBRARIES += libdouble-conversion |
| LOCAL_MODULE_PATH := $(GOOGLE_DOUBLE_CONVERSION_TEST_ROOT)/bin |
| include $(BUILD_EXECUTABLE) |
| |
| include $(CLEAR_VARS) |
| LOCAL_MODULE := google-double-conversion-tests.sh |
| LOCAL_SRC_FILES := android/test/google-double-conversion-tests.sh |
| LOCAL_REQUIRED_MODULES := cctest |
| LOCAL_MODULE_CLASS := EXECUTABLES |
| LOCAL_MODULE_PATH := $(GOOGLE_DOUBLE_CONVERSION_TEST_ROOT) |
| include $(BUILD_PREBUILT) |
| |
| ### |
| ### Clean the environment -- the EPA loves us! |
| ### |
| |
| GOOGLE_DOUBLE_CONVERSION_COMMON := |
| GOOGLE_DOUBLE_CONVERSION_TEST_ROOT := |