cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

build system

Open icegood opened this issue 3 years ago • 4 comments

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.

icegood avatar Jun 05 '21 20:06 icegood

+1

hanhiver avatar Jun 30 '21 11:06 hanhiver

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.

jeanga avatar Jun 30 '21 13:06 jeanga

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 :)

salimp2009 avatar Oct 04 '21 18:10 salimp2009

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.

waruqi avatar Nov 26 '21 10:11 waruqi