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

add xmake.lua file to make it easier to build libuv #1464

Closed
wants to merge 1 commit into from

Conversation

waruqi
Copy link

@waruqi waruqi commented Aug 6, 2017

Hi, I found that libuv uses different build systems to build for different platforms. So I wrote a xmake.lua file to make it easier to build libuv.

We can use the following command to build and run tests.

For the current host platform (windows/macos/linux):

$ xmake
$ xmake run test

For the android platform:

$ xmake f -p android --ndk=/home/android-ndk-r10e
$ xmake

For the iphoneos platform:

$ xmake f -p iphoneos -a [arm64|armv7]
$ xmake

For the watchos platform:

$ xmake f -p watchos
$ xmake

For the cross toolchains platform:

$ xmake f -p cross --sdk=/home/xxx/toolchains/sdk
$ xmake

For the other platform(aix/sunos/os390/freebsd/openbsd/...):

$ xmake f -p [aix|sunos|os390|...] --sdk=/home/xxx/toolchains/sdk --cross=.. 
$ xmake

More cross compilation info, please see xmake.io and cross-compilation

Or generate vs project file and makefile:

$ xmake project -k vs2017 -m "debug,release"
$ xmake project -k makefile

If you feel that this does not help the libuv, please ignore this PR. 😄

@saghul
Copy link
Member

saghul commented Aug 6, 2017

Hi there! Welcome to libuv!

So, a similar thing happened yesterday, when someone submitted a gradle build system. Here is the answer: #1462 (comment)

TLDR: we have enough build systems, sorry. Please do reach out next time before working on such things so you can avoid doing the work if it's not going to be merged.

@saghul saghul closed this Aug 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants