diff options
| author | Alexander Neumann <alexander.neumann@hamburg.de> | 2019-09-20 12:24:23 +0200 |
|---|---|---|
| committer | Alexander Neumann <alexander.neumann@hamburg.de> | 2019-09-20 12:24:23 +0200 |
| commit | 5b1e426929b40a9b60809284993b424b841a28fc (patch) | |
| tree | bd12300ad859bababb7d4acc03700fd31949fddc /ports/cpputest | |
| parent | 279e25aecfe30f55296881ea9b0236c1d6ee030a (diff) | |
| parent | 358ec0954d9b71b0def4fd4b4dbafdd0b8478d81 (diff) | |
| download | vcpkg-5b1e426929b40a9b60809284993b424b841a28fc.tar.gz vcpkg-5b1e426929b40a9b60809284993b424b841a28fc.zip | |
Merge remote-tracking branch 'upstream/master' into path_separator
# Conflicts:
# scripts/cmake/vcpkg_common_definitions.cmake
Diffstat (limited to 'ports/cpputest')
| -rw-r--r-- | ports/cpputest/CONTROL | 4 | ||||
| -rw-r--r-- | ports/cpputest/fix-arm-build-error.patch | 20 | ||||
| -rw-r--r-- | ports/cpputest/portfile.cmake | 35 |
3 files changed, 59 insertions, 0 deletions
diff --git a/ports/cpputest/CONTROL b/ports/cpputest/CONTROL new file mode 100644 index 000000000..cecf6e221 --- /dev/null +++ b/ports/cpputest/CONTROL @@ -0,0 +1,4 @@ +Source: cpputest
+Version: 2019-9-16
+Homepage: https://github.com/cpputest/cpputest
+Description: CppUTest unit testing and mocking framework for C/C++.
\ No newline at end of file diff --git a/ports/cpputest/fix-arm-build-error.patch b/ports/cpputest/fix-arm-build-error.patch new file mode 100644 index 000000000..5b017cb63 --- /dev/null +++ b/ports/cpputest/fix-arm-build-error.patch @@ -0,0 +1,20 @@ +diff --git a/tests/CppUTest/CMakeLists.txt b/tests/CppUTest/CMakeLists.txt
+index 7df07c1..d7317aa 100644
+--- a/tests/CppUTest/CMakeLists.txt
++++ b/tests/CppUTest/CMakeLists.txt
+@@ -56,4 +56,4 @@ add_executable(CppUTestTests ${CppUTestTests_src})
+ cpputest_normalize_test_output_location(CppUTestTests)
+ target_link_libraries(CppUTestTests CppUTest ${THREAD_LIB})
+
+-cpputest_buildtime_discover_tests(CppUTestTests)
++#cpputest_buildtime_discover_tests(CppUTestTests)
+diff --git a/tests/CppUTestExt/CMakeLists.txt b/tests/CppUTestExt/CMakeLists.txt
+index b83ceb2..2abf274 100644
+--- a/tests/CppUTestExt/CMakeLists.txt
++++ b/tests/CppUTestExt/CMakeLists.txt
+@@ -37,4 +37,4 @@ endif (MINGW)
+ add_executable(CppUTestExtTests ${CppUTestExtTests_src})
+ cpputest_normalize_test_output_location(CppUTestExtTests)
+ target_link_libraries(CppUTestExtTests CppUTest CppUTestExt ${THREAD_LIB} ${CPPUNIT_EXTERNAL_LIBRARIES})
+-cpputest_buildtime_discover_tests(CppUTestExtTests)
++#cpputest_buildtime_discover_tests(CppUTestExtTests)
diff --git a/ports/cpputest/portfile.cmake b/ports/cpputest/portfile.cmake new file mode 100644 index 000000000..904f1d0b1 --- /dev/null +++ b/ports/cpputest/portfile.cmake @@ -0,0 +1,35 @@ +include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cpputest/cpputest
+ REF 4699da9942a1bdcc33e2a8c8a48e863b0f18188e
+ SHA512 6f588691f1b4092b3be8167ab09f3a4a64c34715ac9397210724121d161024a43b12a88198b02b0cc8da7d72406670daaf375bb64cc4cf92c8bd2479e7a881bc
+ HEAD_REF master
+ PATCHES fix-arm-build-error.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/CppUTest/cmake TARGET_PATH share/CppUTest)
+if (EXISTS ${CURRENT_PACKAGES_DIR}/lib/CppUTest)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/CppUTest)
+endif()
+
+if (EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/CppUTest)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/CppUTest)
+endif()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
