lewissbaker / cppcoro

A library of C++ coroutine abstractions for the coroutines TS
MIT License
3.36k stars 462 forks source link

build system #200

Open icegood opened 3 years ago

icegood commented 3 years ago

What the purpose to choose cake as the build system for a general purpose library? Could you please support building via cmake as well as the user normally do not want add non-necessary dependencies...

Next, if the cake is supposed to be something new then it is a good idea at least to work against python 3.0, not 2.x.

hanhiver commented 3 years ago

+1

jeanga commented 3 years ago

This library is also available via vcpkg https://github.com/microsoft/vcpkg (for Window,Linux&MacOS). Also, don't expect too much an answer... this library does not look like it is maintained anymore.

salimp2009 commented 2 years ago

This library is also available via vcpkg https://github.com/microsoft/vcpkg (for Window,Linux&MacOS). Also, don't expect too much an answer... this library does not look like it is maintained anymore.

Any idead if vcpkg mess the python versions when installing on Windows ...i use python 3.9 and dont want to install...if it does maybe i will try to modify the python files :)

waruqi commented 2 years ago

This library is also available via xmake/xrepo https://github.com/xmake-io/xmake

we need only write a simple xmake.lua file

xmake.lua

add_requires("cppcoro")
target("test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("cppcoro")
    set_languages("c++17")
    add_cxxflags("/await")

then we run xmake to build your project with cppcoro.

or we can also use xrepo to install this library directly

 $ xrepo install cppcoro

it's package configuration in xmake-repo

https://github.com/xmake-io/xmake-repo/blob/master/packages/c/cppcoro/xmake.lua

If you accept pr, I can also submit a xmake.lua to the project root directory and use the xmake build system to maintain this library.