aboutsummaryrefslogtreecommitdiff
path: root/ports/azure-macro-utils-c
diff options
context:
space:
mode:
authorewertons <ewertons@microsoft.com>2019-05-20 10:27:45 -0700
committerRobert Schumacher <roschuma@microsoft.com>2019-05-20 10:27:45 -0700
commite290fc43fa571934ab5c6c6a3e4db834831316d1 (patch)
treee72ba0b403470986c0f15839e35128b5d008206a /ports/azure-macro-utils-c
parent94d1e2ef09be313e8b4e730fd5d1c6709d0f9546 (diff)
downloadvcpkg-e290fc43fa571934ab5c6c6a3e4db834831316d1.tar.gz
vcpkg-e290fc43fa571934ab5c6c6a3e4db834831316d1.zip
[azure] Update vcpkgs (add new port dependencies) (#6511)
* [azure] Update vcpkgs (add new port dependencies) * [azure-iot-sdk-c] Bump CONTROL versions and normalize tabs/spaces * [azure] ACR of Update vcpkgs (add new port dependencies)
Diffstat (limited to 'ports/azure-macro-utils-c')
-rw-r--r--ports/azure-macro-utils-c/CONTROL5
-rw-r--r--ports/azure-macro-utils-c/portfile.cmake32
2 files changed, 37 insertions, 0 deletions
diff --git a/ports/azure-macro-utils-c/CONTROL b/ports/azure-macro-utils-c/CONTROL
new file mode 100644
index 000000000..3905f38a6
--- /dev/null
+++ b/ports/azure-macro-utils-c/CONTROL
@@ -0,0 +1,5 @@
+Source: azure-macro-utils-c
+Version: 2019-04-11-1
+Description: A library of macros for the Azure IoT SDK Suite
+Build-Depends:
+
diff --git a/ports/azure-macro-utils-c/portfile.cmake b/ports/azure-macro-utils-c/portfile.cmake
new file mode 100644
index 000000000..d516e59e9
--- /dev/null
+++ b/ports/azure-macro-utils-c/portfile.cmake
@@ -0,0 +1,32 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Azure/azure-macro-utils-c
+ REF 38729b4b7ac3ea8b7d71e394782b861ecb25193e
+ SHA512 c9c820e74aee403d45f257359318d3435e5d6534afe821da5679bc462e26ad256dd01ed253a80ba1c58343f850ef1026280533a152c4b0465527f6537b3092d3
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -Drun_int_tests=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/azure_macro_utils_c)
+
+file(COPY ${SOURCE_PATH}/inc/azure_macro_utils/macro_utils.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/azure_macro_utils_c/include/azure_macro_utils)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug)
+
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/azure-macro-utils-c/copyright COPYONLY)
+
+vcpkg_copy_pdbs()
+
+