blob: dccf47b88552144c80b21969b1290d90dad7f4bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
build
-----
```bash
// build for linux-x86 debug
cd ./xmake/core
[make f PLAT=linux ARCH=x86 DEBUG=y] => optional
make r
// build for linux-x64 release
cd ./xmake/core
[make f PLAT=linux ARCH=x64 DEBUG=n] => optional
make r
// build for linux and add cflags and ldflags
cd ./xmake/core
make f PLAT=linux CFLAG="-I." LDFLAG="-L. -lxxx"
make r
// build for mac
cd ./xmake/core
[make f PLAT=mac ARCH=x64] => optional
make r
// build for ios-armv7, using sdk7.1 framework
cd ./xmake/core
make f PLAT=ios ARCH=armv7 SDK=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
make r
// build for ios armv7 and arm64 universal version
cd ./xmake/core
make lipo ARCH1=armv7 ARCH2=arm64 SDK=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
// build for android-armv5te, need set the ndk and toolchains directory
cd ./xmake/core
make f PLAT=android ARCH=armv5te SDK=/home/xxxx/android-ndk-r9d BIN=/home/xxxx/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin
make r
// build for android-armv6, if ndk and toolchains have been setted
cd ./xmake/core
make f PLAT=android ARCH=armv6
make r
// build for windows using msvc
cd ./xmake/core
run ./msys.bat
[make f PLAT=msvc ARCH=x86] => optional
make r
// build for windows using mingw and need link libgcc.a from mingw
run msys
cd ./xmake/core
[make f PLAT=mingw ARCH=x86] => optional
make r
// build for windows using cygwin
run cygwin
cd ./xmake/core
[make f PLAT=cygwin ARCH=x86] => optional
make r
// build for windows and custom complier path and prefix and need link libgcc.a from mingw
run cygwin
cd ./xmake/core
make f PLAT=mingw ARCH=x86 BIN="/home/xxx/bin" PRE="i386-mingw32-"
make r
```
|