build: Added a def file for windows build.
authorAndreas Schneider <asn@cynapses.org>
Wed, 29 Dec 2010 17:42:27 +0000 (18:42 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 17:45:29 +0000 (19:45 +0200)
This exports the symbols which are needed to get a .lib file.

src/CMakeLists.txt
src/cmockery.def [new file with mode: 0644]

index 93697ff..65b5762 100644 (file)
@@ -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 (file)
index 0000000..7b050ac
--- /dev/null
@@ -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