azure-sdk-for-c icon indicating copy to clipboard operation
azure-sdk-for-c copied to clipboard

Make AzureSDK to automatically fetch and use VCPKG to get dependencies

Open vhvb1989 opened this issue 3 years ago • 11 comments

By using the latest featues from vcpkg for caching and for manifest mode, we can automate pullging vcpkg automatically with cmake and use a vcpkg manifest to declare the library dependencies. This would delegate vcpkg cache and 3rd party dependencies installation to Vcpkg.

After this change, users no longer need to worry about getting vcpkg, installing dependencies and setting environment variables as a prerequisite for building the Azure SDK.

Users can still use vcpkg classic mode if they set VCPKG_ROOT

Note. This is the current approach for using Vcpkg in the azure sdk for cpp.

vhvb1989 avatar Jul 23 '22 00:07 vhvb1989

/azp run c - client

vhvb1989 avatar Jul 23 '22 01:07 vhvb1989

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 23 '22 01:07 azure-pipelines[bot]

/azp run c - client

weshaggard avatar Jul 25 '22 16:07 weshaggard

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 25 '22 16:07 azure-pipelines[bot]

/azp run c - client

vhvb1989 avatar Jul 25 '22 18:07 vhvb1989

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 25 '22 18:07 azure-pipelines[bot]

/azp run c - client - tests

danieljurek avatar Jul 25 '22 19:07 danieljurek

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 25 '22 19:07 azure-pipelines[bot]

Live tests (after updating pipeline variables) -- https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1732473&view=results

danieljurek avatar Jul 25 '22 19:07 danieljurek

Live tests (after updating pipeline variables) -- https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1732473&view=results

image

beautiful!!! vcpkg cache working :)

vhvb1989 avatar Jul 25 '22 19:07 vhvb1989

Live tests passed, FYI.

danieljurek avatar Jul 25 '22 21:07 danieljurek

/azp run c - client - ci

danewalton-msft avatar Sep 13 '22 23:09 danewalton-msft

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 13 '22 23:09 azure-pipelines[bot]

@vhvb1989 - Can we merge this?

danieljurek avatar Sep 14 '22 14:09 danieljurek