Skip to content

[rsasynccpp] Add new port (Rstein.AsyncCpp)#16380

Merged
ras0219-msft merged 6 commits intomicrosoft:masterfrom
renestein:Rstein.AsyncCpp
Feb 25, 2021
Merged

[rsasynccpp] Add new port (Rstein.AsyncCpp)#16380
ras0219-msft merged 6 commits intomicrosoft:masterfrom
renestein:Rstein.AsyncCpp

Conversation

@renestein
Copy link
Copy Markdown
Contributor

@renestein renestein commented Feb 23, 2021

New Port - Rstein.AsyncCpp library.
The RStein.AsyncCpp library is a set of types that should be familiar for anyone who knows the Task Parallel Library (TPL) for .NET (C#). In addition, this library contains simple DataFlow, threadless actors (agents), functional combinators for the Task class, useful async primitives (AsyncSemaphore, AsyncProducerConsumerCollection, CancellationToken, CancellationTokenSource, AsyncMutex, SynchronizationContext, SynchronizationContextScope ...).

Rstein.AsyncCpp

  • Which triplets are supported/not supported? Have you updated the CI baseline?
    I have tested the library on x86-windows and x64-windows. UWP triplets seem to be working as well.

  • Does your PR follow the maintainer guide?
    I am not sure if the feature 'lib-cl-win-legacy-await' is acceptable, but I didn't find a better way.

@ghost
Copy link
Copy Markdown

ghost commented Feb 23, 2021

CLA assistant check
All CLA requirements met.

@renestein renestein force-pushed the Rstein.AsyncCpp branch 4 times, most recently from a1d4bda to 8a37024 Compare February 23, 2021 20:57
@renestein renestein marked this pull request as ready for review February 23, 2021 21:15
@JackBoosY JackBoosY added the category:new-port The issue is requesting a new library to be added; consider making a PR! label Feb 24, 2021
rsasynccpp:arm-uwp=fail
rsasynccpp:x64-linux=fail
rsasynccpp:x64-osx=fail
rsasynccpp:x64-windows-static=fail
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You declared ONLY_STATIC_LIBRARY, but why it failed on x64-windows-static?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JackBoosY I think that '64-windows-static' requires static CRT (/MT switch) and I am not sure if the /MT switch is a good idea.
AFAIK new static library project in Visual Studio ale sets /MD switch.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused.
The result of setting ONLY_STATIC_LIBRARY under dynamic and building should be consistent with the result of windows-static.

Copy link
Copy Markdown
Contributor Author

@renestein renestein Feb 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JackBoosY The similar problem is described here.
#4274
Maybe I am wrong, but it appears to me that vcpkg (some triplets in vcpkg) uses the term 'static' for two related, but different things.

  1. Static library itself (e. g. static build of the rsasynccpp).
  2. Static linkage of the CRT library. (/MT /MTd).

set(VCPKG_CRT_LINKAGE )
set(VCPKG_LIBRARY_LINKAGE)

Copy link
Copy Markdown
Contributor Author

@renestein renestein Feb 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway, I have created new solution configurations and updated the portfile.

@renestein renestein requested a review from JackBoosY February 24, 2021 09:10
@ras0219-msft ras0219-msft merged commit 0cbc579 into microsoft:master Feb 25, 2021
@ras0219-msft
Copy link
Copy Markdown
Contributor

Thanks for the new library!

Jimmy-Hu added a commit to Jimmy-Hu/vcpkg that referenced this pull request Feb 25, 2021
[rsasynccpp] Add new port (Rstein.AsyncCpp) (microsoft#16380)
Comment on lines +1366 to +1369
rsasynccpp:arm64-windows=fail
rsasynccpp:arm-uwp=fail
rsasynccpp:x64-linux=fail
rsasynccpp:x64-osx=fail
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove these codes...

@renestein
Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:new-port The issue is requesting a new library to be added; consider making a PR!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants