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

Try building project and support cross-compilation using third-party buildsystem #192

Closed
16 of 17 tasks
waruqi opened this issue Aug 23, 2018 · 2 comments
Closed
16 of 17 tasks

Comments

@waruqi
Copy link
Member

waruqi commented Aug 23, 2018

We can try building project using third-party buildsystem when xmake.lua not found.

Roadmap

  • autotools
    • support cross-compilation
  • xcodebuild
  • cmake
  • make
  • msbuild
  • scons
  • meson
  • bazel
  • ndkbuild
  • ninja

Usage:

  • Detect buildsystem and build project automatically (default)
$ xmake 
note: CMakeLists.txt found, try building it (pass -y or --confirm=y/n/d to skip confirm)?
please input: y (y/n)
-- Symbol prefix:
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruki/Downloads/libpng-1.6.35/build
[  7%] Built target png-fix-itxt
[ 21%] Built target genfiles
[ 81%] Built target png
[ 83%] Built target png_static
...
output to /Users/ruki/Downloads/libpng-1.6.35/build/artifacts
build ok!
  • Select the given buildsystem to build project
$ xmake f --trybuild=[autotools|cmake|make|msbuild| ..]
$ xmake
  • Support cross-compilation and other platform

Uses autotools to build android platform target.

$ xmake f -p android --trybuild=autotools
$ xmake

Uses cmake to do cross-compilation

$ xmake f -p cross --trybuild=cmake --sdk=/xxxx --cross=arm-linux- 
$ xmake
  • Support clean and rebuild
$ xmake f --trybuild=autotools
$ xmake clean
$ xmake --rebuild
  • Uses xmake-repo/package/xmake.lua to build project

https://github.com/xmake-io/xmake-repo

$ cd zlib
$ xmake f --trybuild=xmake-repo/zlib
$ xmake 
  • Set extra user configs to the third-party buildsystem.
$ xmake f --trybuild=autotools --tryconfigs="--enable-shared=no"
$ xmake
@waruqi waruqi added this to the v2.2.2 milestone Aug 23, 2018
@waruqi waruqi modified the milestones: v2.2.2, v2.2.3 Oct 10, 2018
@waruqi waruqi modified the milestones: v2.2.3, todo Nov 20, 2018
@waruqi waruqi modified the milestones: todo, v2.3.0 Feb 18, 2020
@waruqi waruqi changed the title Add $xmake --try to try building project using third-party buildsystem Try building project and support cross-compilation using third-party buildsystem Feb 18, 2020
@waruqi waruqi pinned this issue Feb 18, 2020
@waruqi
Copy link
Member Author

waruqi commented Feb 20, 2020

就先这样吧,凑活着用用 可以了 回头有时间了再完善下 把cmake的交叉编译补上

@waruqi waruqi closed this as completed Feb 20, 2020
@waruqi
Copy link
Member Author

waruqi commented Feb 20, 2020

Support build jni/Android.mk

cd android_app_project
xmake f -p android --trybuild=ndkbuild
xmake

android_app_project/jni/Android.mk

@waruqi waruqi unpinned this issue May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant