| LOCAL_PATH := $(my-dir) |
| |
| include $(LOCAL_PATH)/../../android/build/boost-common-decl.mk |
| |
| ### |
| ### COMMON VARIABLES: if you add to these, be sure to clear |
| ### them at the end of this file |
| ### |
| |
| EXTERNAL_BOOST_CHRONO_COMMON := $(LOCAL_PATH)/android/build/chrono-common.mk |
| EXTERNAL_BOOST_CHRONO_TEST_COMMON := $(LOCAL_PATH)/android/build/chrono-test-common.mk |
| EXTERNAL_BOOST_CHRONO_ALL_TESTS := |
| EXTERNAL_BOOST_LIBBOOST_SRC_FILES := \ |
| src/chrono.cpp \ |
| src/thread_clock.cpp \ |
| src/process_cpu_clocks.cpp |
| |
| ### |
| ### libboost_chrono (shared and static) |
| ### |
| |
| include $(CLEAR_VARS) |
| include $(EXTERNAL_BOOST_CHRONO_COMMON) |
| LOCAL_MODULE := libboost_chrono |
| LOCAL_CFLAGS += -DBOOST_SYSTEM_DYN_LINK=1 |
| LOCAL_SRC_FILES := $(EXTERNAL_BOOST_LIBBOOST_SRC_FILES) |
| LOCAL_SHARED_LIBRARIES := \ |
| libboost_system |
| include $(BUILD_SHARED_LIBRARY) |
| |
| include $(CLEAR_VARS) |
| include $(EXTERNAL_BOOST_CHRONO_COMMON) |
| LOCAL_CFLAGS += -DBOOST_SYSTEM_STATIC_LINK=1 |
| LOCAL_SRC_FILES := $(EXTERNAL_BOOST_LIBBOOST_SRC_FILES) |
| LOCAL_SHARED_LIBRARIES := \ |
| libboost_system |
| LOCAL_MODULE := libboost_chrono |
| include $(BUILD_STATIC_LIBRARY) |
| |
| ### |
| ### UNIT TESTS |
| ### |
| ### This library has a ton of tests. These are essentially a |
| ### port of the tests that are specified in the Jamfile in |
| ### the test folder. |
| ### |
| ### Here's how the scripts work. Most of the tests have a |
| ### single source file and the executable derives its name |
| ### from the source file's name. |
| ### |
| ### DEST - this is the root folder where the tests |
| ### should be installed. |
| ### SUITE - a grouping of tests, the output executable |
| ### name will be preceeded with this name. |
| ### SOURCES - the list of source files used to create |
| ### this executable test. |
| ### NAME - in some cases, the name of the test needs |
| ### to be different from the source file name. |
| ### |
| ### While all of the test cases support DEST, SUITE, and |
| ### SOURCES... only a few support NAME. Many of these will |
| ### output multiple executables. All of them will be added |
| ### to EXTERNAL_BOOST_CHRONO_ALL_TESTS. |
| ### |
| |
| DEST := $(TARGET_OUT_DATA_NATIVE_TESTS)/boost-chrono |
| SUITE := examples |
| SOURCES := example/cycle_count.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/runtime_resolution.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/xtime.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/saturating.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/min_time_point.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := example/i_dont_like_the_default_duration_behavior.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/simulated_thread_interface_demo.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := example/timeval_demo.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/chrono_unit_test.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := example/explore_limits.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/test_duration.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/test_clock.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := example/miscellaneous.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/test_special_values.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := example/manipulate_clock_object.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := example/test_thread_clock.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-mt.mk |
| SOURCES := example/rounding.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| |
| SUITE := traits |
| SOURCES := test/traits/common_type_duration_pass.cpp |
| NAME := traits_common_type_duration_p |
| include $(LOCAL_PATH)/android/build/chrono-compile2.mk |
| SOURCES := test/traits/common_type_time_point_pass.cpp |
| NAME := traits_common_type_time_point_p |
| include $(LOCAL_PATH)/android/build/chrono-compile2.mk |
| SOURCES := test/traits/treat_as_floating_point_pass.cpp |
| NAME := traits_treat_as_floating_point_p |
| include $(LOCAL_PATH)/android/build/chrono-compile2.mk |
| SOURCES := test/traits/duration_values_pass.cpp |
| NAME := traits_duration_values_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| |
| # NOTE: skipping the "compile-fail" tests |
| SUITE := duration |
| SOURCES := test/duration/default_ratio_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-compile.mk |
| SOURCES := test/duration/types_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-compile.mk |
| SOURCES := test/duration/ratio_alias_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-compile.mk |
| SOURCES := test/duration/typedefs_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-compile.mk |
| SOURCES := test/duration/arithmetic_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := test/duration/duration_cast_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := test/duration/comparisons_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := test/duration/constructor_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := test/duration/duration_values_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| SOURCES := test/duration/rounding_pass.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run-header.mk |
| |
| # NOTE: skipping the "compile-fail" tests |
| SUITE := time_point |
| SOURCES := test/time_point/default_duration_pass.cpp |
| NAME := time_point_default_duration_p |
| include $(LOCAL_PATH)/android/build/chrono-compile2.mk |
| SOURCES := test/time_point/arithmetic_pass.cpp |
| NAME := time_point_arithmetic_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| SOURCES := test/time_point/arithmetic_ext_pass.cpp |
| NAME := time_point_arithmetic_ext_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| SOURCES := test/time_point/time_point_cast_pass.cpp |
| NAME := time_point_time_point_cast_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| SOURCES := test/time_point/comparisons_pass.cpp |
| NAME := time_point_comparisons_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| SOURCES := test/time_point/constructor_pass.cpp |
| NAME := time_point_constructor_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| SOURCES := test/time_point/min_max_pass.cpp |
| NAME := time_point_min_max_p |
| include $(LOCAL_PATH)/android/build/chrono-run-header2.mk |
| |
| SUITE := clock |
| SOURCES := test/clock/clock_pass.cpp |
| NAME := clock_clock_p |
| include $(LOCAL_PATH)/android/build/chrono-run2-mt.mk |
| # CURRENTLY FTBFS: |
| SOURCES := test/one_obj.cpp test/another_obj.cpp |
| NAME := two_obj_p |
| include $(LOCAL_PATH)/android/build/chrono-run2-mt.mk |
| |
| SUITE := io_ex |
| SOURCES := example/io_ex1.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run.mk |
| SOURCES := example/io_ex2.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run-header.mk |
| SOURCES := example/io_ex3.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run.mk |
| SOURCES := example/io_ex4.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run.mk |
| SOURCES := example/io_ex5.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run.mk |
| SOURCES := example/french.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run.mk |
| |
| SUITE := io |
| SOURCES := test/io/duration_input.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run-header.mk |
| SOURCES := test/io/duration_output.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run-header.mk |
| SOURCES := test/io/time_point_input.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run-header.mk |
| SOURCES := test/io/time_point_output.cpp |
| include $(LOCAL_PATH)/android/build/chrono-v1-v2-run-header.mk |
| SOURCES := test/test_7868.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := test/test_11006.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| SOURCES := test/test_11012.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| |
| SUITE := win32 |
| SOURCES := test/win32_test.cpp |
| include $(LOCAL_PATH)/android/build/chrono-run.mk |
| |
| include $(CLEAR_VARS) |
| LOCAL_MODULE := boost-chrono/bin/boost-generic-test-runner.sh |
| LOCAL_SRC_FILES := ../../android/test/boost-generic-test-runner.sh |
| LOCAL_MODULE_CLASS := EXECUTABLES |
| LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS) |
| include $(BUILD_PREBUILT) |
| |
| include $(CLEAR_VARS) |
| LOCAL_MODULE := boost-chrono-tests.sh |
| LOCAL_SRC_FILES := android/test/boost-chrono-tests.sh |
| LOCAL_REQUIRED_MODULES := \ |
| boost-chrono/bin/boost-generic-test-runner.sh \ |
| $(EXTERNAL_BOOST_CHRONO_ALL_TESTS) |
| LOCAL_MODULE_CLASS := EXECUTABLES |
| LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/boost-chrono |
| include $(BUILD_PREBUILT) |
| |
| ### |
| ### Clean the environment -- the EPA loves us! |
| ### |
| |
| DEST := |
| SUITE := |
| SOURCES := |
| NAME := |
| EXTERNAL_BOOST_CHRONO_COMMON := |
| EXTERNAL_BOOST_CHRONO_TEST_COMMON := |
| EXTERNAL_BOOST_CHRONO_ALL_TESTS := |
| EXTERNAL_BOOST_LIBBOOST_SRC_FILES := |