From b191fd2f6ffb92ac65d7556713f8562154bb5e45 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 29 Dec 2010 18:42:27 +0100 Subject: [PATCH] build: Added a def file for windows build. This exports the symbols which are needed to get a .lib file. --- src/CMakeLists.txt | 7 +++++++ src/cmockery.def | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/cmockery.def diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 93697ff..65b5762 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,6 +30,13 @@ set(cmockery_SRCS cmockery.c ) +if (WIN32) + set(cmockery_SRCS + ${cmockery_SRCS} + cmockery.def + ) +endif (WIN32) + include_directories( ${CMOCKERY_PUBLIC_INCLUDE_DIRS} ${CMOCKERY_PRIVATE_INCLUDE_DIRS} diff --git a/src/cmockery.def b/src/cmockery.def new file mode 100644 index 0000000..7b050ac --- /dev/null +++ b/src/cmockery.def @@ -0,0 +1,42 @@ +LIBRARY cmockery +EXPORTS + _assert_in_range + _assert_in_set + _assert_int_equal + _assert_int_not_equal + _assert_memory_equal + _assert_memory_not_equal + _assert_not_in_range + _assert_not_in_set + _assert_string_equal + _assert_string_not_equal + _assert_true + _check_expected + _expect_any + _expect_check + _expect_in_range + _expect_in_set + _expect_memory + _expect_not_in_range + _expect_not_in_set + _expect_not_memory + _expect_not_string + _expect_not_value + _expect_string + _expect_value + _fail + _mock + _run_test + _run_tests + _test_calloc + _test_free + _test_malloc + _will_return + fail_if_leftover_values + global_expect_assert_env + global_expecting_assert + mock_assert + print_error + print_message + vprint_error + vprint_message -- 2.34.1