mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 23:59:08 +08:00
13e7f60bca
* new versions for azure-iot-sdk-c, azure-c-shared-utility, azure-uamqp-c, azure-umqtt-c, azure-uhttp-c * [azure-iot-sdk-c] Modernize & Cleanup * fix for x64-windows
118 lines
4.1 KiB
Diff
118 lines
4.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a8011fb..9fc05c7 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -155,17 +155,6 @@ endif()
|
|
# Use solution folders.
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
-# build the parson library for json parsing
|
|
-add_library(parson
|
|
- ./deps/parson/parson.c
|
|
- ./deps/parson/parson.h
|
|
-)
|
|
-if (MSVC)
|
|
- set_source_files_properties(../deps/parson/parson.c PROPERTIES COMPILE_FLAGS "/wd4244 /wd4232")
|
|
-endif()
|
|
-set(parson_h_install_files ./deps/parson/parson.h)
|
|
-set(parson_install_libs parson)
|
|
-
|
|
if (IN_OPENWRT)
|
|
ADD_DEFINITIONS("$ENV{TARGET_LDFLAGS}" "$ENV{TARGET_CPPFLAGS}" "$ENV{TARGET_CFLAGS}")
|
|
INCLUDE_DIRECTORIES("$ENV{TOOLCHAIN_DIR}/usr/include" "$ENV{TARGET_LDFLAGS}" "$ENV{TARGET_CPPFLAGS}" "$ENV{TARGET_CFLAGS}")
|
|
diff --git a/configs/azure_iot_sdksConfig.cmake b/configs/azure_iot_sdksConfig.cmake
|
|
index b9c62e8..edf5847 100644
|
|
--- a/configs/azure_iot_sdksConfig.cmake
|
|
+++ b/configs/azure_iot_sdksConfig.cmake
|
|
@@ -1,5 +1,10 @@
|
|
#Copyright (c) Microsoft. All rights reserved.
|
|
#Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
+include(CMakeFindDependencyMacro)
|
|
+find_dependency(unofficial-parson)
|
|
+find_dependency(uamqp)
|
|
+find_dependency(umqtt)
|
|
+find_dependency(azure_c_shared_utility)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/azure_iot_sdksTargets.cmake")
|
|
|
|
diff --git a/dependencies.cmake b/dependencies.cmake
|
|
index fd06df6..c0e06fa 100644
|
|
--- a/dependencies.cmake
|
|
+++ b/dependencies.cmake
|
|
@@ -18,6 +18,9 @@ if(${use_installed_dependencies})
|
|
endif ()
|
|
endif ()
|
|
|
|
+ find_package(unofficial-parson REQUIRED)
|
|
+ link_libraries(unofficial::parson::parson)
|
|
+
|
|
else ()
|
|
add_subdirectory(c-utility)
|
|
|
|
diff --git a/iothub_client/tests/iothubclient_amqp_dt_e2e/CMakeLists.txt b/iothub_client/tests/iothubclient_amqp_dt_e2e/CMakeLists.txt
|
|
index 161872a..d53e111 100644
|
|
--- a/iothub_client/tests/iothubclient_amqp_dt_e2e/CMakeLists.txt
|
|
+++ b/iothub_client/tests/iothubclient_amqp_dt_e2e/CMakeLists.txt
|
|
@@ -31,12 +31,10 @@ set(${theseTestsName}_nuget_c_files
|
|
|
|
set(${theseTestsName}_c_files
|
|
../../../certs/certs.c
|
|
- ../../../deps/parson/parson.c
|
|
)
|
|
|
|
set(${theseTestsName}_h_files
|
|
../../../certs/certs.h
|
|
- ../../../deps/parson/parson.h
|
|
../common_dt_e2e/iothubclient_common_dt_e2e.h
|
|
)
|
|
|
|
diff --git a/iothub_client/tests/iothubclient_mqtt_dt_e2e/CMakeLists.txt b/iothub_client/tests/iothubclient_mqtt_dt_e2e/CMakeLists.txt
|
|
index d472161..b0291e8 100644
|
|
--- a/iothub_client/tests/iothubclient_mqtt_dt_e2e/CMakeLists.txt
|
|
+++ b/iothub_client/tests/iothubclient_mqtt_dt_e2e/CMakeLists.txt
|
|
@@ -31,12 +31,10 @@ set(${theseTestsName}_nuget_c_files
|
|
|
|
set(${theseTestsName}_c_files
|
|
../../../certs/certs.c
|
|
- ../../../deps/parson/parson.c
|
|
)
|
|
|
|
set(${theseTestsName}_h_files
|
|
../../../certs/certs.h
|
|
- ../../../deps/parson/parson.h
|
|
../common_dt_e2e/iothubclient_common_dt_e2e.h
|
|
)
|
|
|
|
diff --git a/iothub_client/tests/iothubclient_mqtt_dt_e2e_sfc/CMakeLists.txt b/iothub_client/tests/iothubclient_mqtt_dt_e2e_sfc/CMakeLists.txt
|
|
index d05d654..5872c8d 100644
|
|
--- a/iothub_client/tests/iothubclient_mqtt_dt_e2e_sfc/CMakeLists.txt
|
|
+++ b/iothub_client/tests/iothubclient_mqtt_dt_e2e_sfc/CMakeLists.txt
|
|
@@ -31,12 +31,10 @@ set(${theseTestsName}_nuget_c_files
|
|
|
|
set(${theseTestsName}_c_files
|
|
../../../certs/certs.c
|
|
- ../../../deps/parson/parson.c
|
|
)
|
|
|
|
set(${theseTestsName}_h_files
|
|
../../../certs/certs.h
|
|
- ../../../deps/parson/parson.h
|
|
../common_dt_e2e/iothubclient_common_dt_e2e.h
|
|
)
|
|
|
|
diff --git a/iothub_service_client/CMakeLists.txt b/iothub_service_client/CMakeLists.txt
|
|
index e47473e..b073513 100644
|
|
--- a/iothub_service_client/CMakeLists.txt
|
|
+++ b/iothub_service_client/CMakeLists.txt
|
|
@@ -81,9 +81,7 @@ endif()
|
|
setSdkTargetBuildProperties(iothub_service_client)
|
|
|
|
if(NOT ${nuget_e2e_tests})
|
|
- target_link_libraries(iothub_service_client uamqp parson)
|
|
-else()
|
|
- target_link_libraries(iothub_service_client parson)
|
|
+ target_link_libraries(iothub_service_client uamqp)
|
|
endif()
|
|
|
|
if (NOT ${ARCHITECTURE} STREQUAL "ARM")
|