diff options
| author | Barath Kannan <barathsotd@gmail.com> | 2017-10-17 20:25:12 +1100 |
|---|---|---|
| committer | Barath Kannan <barathsotd@gmail.com> | 2017-10-17 20:25:12 +1100 |
| commit | 48128e5b4dc964a306737e829affe349d8c6956c (patch) | |
| tree | 414b608b8ad3037d0324bb77c83881c4306ef521 /ports/celero | |
| parent | ddc421acbc8bc9dd1d448190ac173b9d11e942dd (diff) | |
| parent | 7ed8d4f75e903fdad4c02b4e784f2f4bcb30a3b0 (diff) | |
| download | vcpkg-48128e5b4dc964a306737e829affe349d8c6956c.tar.gz vcpkg-48128e5b4dc964a306737e829affe349d8c6956c.zip | |
Merge branch 'master' of https://github.com/Microsoft/vcpkg into qt5_modular
Diffstat (limited to 'ports/celero')
| -rw-r--r-- | ports/celero/CONTROL | 3 | ||||
| -rw-r--r-- | ports/celero/portfile.cmake | 29 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/celero/CONTROL b/ports/celero/CONTROL new file mode 100644 index 000000000..d40c93783 --- /dev/null +++ b/ports/celero/CONTROL @@ -0,0 +1,3 @@ +Source: celero +Version: 2.1.0-1 +Description: Celero is a modern cross-platform (Windows, Linux, MacOS) Microbenchmarking library for C++. diff --git a/ports/celero/portfile.cmake b/ports/celero/portfile.cmake new file mode 100644 index 000000000..c942ca5d8 --- /dev/null +++ b/ports/celero/portfile.cmake @@ -0,0 +1,29 @@ +include(vcpkg_common_functions) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + message(STATUS "Celero currently can only be built statically") + set(VCPKG_LIBRARY_LINKAGE static) +endif() + + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO DigitalInBlue/Celero + REF v2.1.0 + SHA512 30563567255b09a2c810d97896839589ed99d45b6c8d075fd16d1a0068457d70195a199f5c982c84784c2e03284c1eaac565253fa72b81d9e2d4102721b80221 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA # Disable this option if project cannot be built with Ninja + OPTIONS + -DCELERO_ENABLE_EXPERIMENTS=OFF + -DCELERO_ENABLE_TESTS=OFF + -DCELERO_RUN_EXAMPLE_ON_BUILD=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/celero RENAME copyright) |
