Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: add clib package manager support #397

Closed
RaZeR-RBI opened this issue Apr 13, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@RaZeR-RBI
Copy link
Contributor

commented Apr 13, 2019

What do you think about adding support for clib package manager? I've used it for a small project, seems very simple to use and install, but it doesn't provide any ways to compile the dependencies. It has a package.json definition which looks similar to npm one, which should be not very hard to parse.

I can try to implement it myself and send a PR if you don't mind 😃

@waruqi

This comment has been minimized.

Copy link
Member

commented Apr 13, 2019

Ok, you can refer to https://github.com/xmake-io/xmake/tree/master/xmake/modules/package/manager/conan

Then implement modules /package/manager/clib/find_package.lua and install_package.lua

And run

cd projectdir
xmake l package.manager.find_package xxx

to test these module interfaces.

@waruqi waruqi added this to the v2.2.6 milestone Apr 15, 2019

waruqi added a commit that referenced this issue Apr 15, 2019

@waruqi

This comment has been minimized.

Copy link
Member

commented Apr 15, 2019

#398
#339

Example:

add_requires("clib::clibs/bytes@0.0.4", {alias = "bytes"})

target("xmake-test")
    set_kind("binary")
    add_files("clib/bytes/*.c")
    add_files("src/*.c") 
    add_packages("bytes")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.