forked from xfcanyue/DuiLib_DuiEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake说明.txt
44 lines (30 loc) · 1.16 KB
/
xmake说明.txt
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
1, 清理:xmake clean
2, 配置: xmake f
编译静态库:xmake f -k static
编译动态库:xmake f -k shared
Debug:xmake f -m debug
Release: xmake f -m release
编译x64: xmake f -a x64
编译x86: xmake f -a x86
使用vs2010编译:xmake f --vs=2010
使用vs2019编译:xmake f --vs=2019
编译unicode版本: xmake f --unicode=true
3, 编译:xmake
=============================
//windows
编译2010 x86 release 动态库
xmake f -a x86 -m release -k shared --vs=2010 --unicode=true
编译2010 x86 release 静态库
xmake f -a x86 -m release -k static --vs=2010 --unicode=true
编译2010 x64 release 动态库
xmake f -a x64 -m release -k shared --vs=2010 --unicode=true
编译2010 x64 release 静态库
xmake f -a x64 -m release -k static --vs=2010 --unicode=true
=============================
//Linux
1,进入目录DuiLib/DuiLib
xmake
xmake install --root //需要root权限,默认安装位置为 usr/local/include/DuiLib/ 和 usr/local/lib/
2,进入目录DuiLib/Linux/gcc,生成可执行文件 TestDuiLib
xmake
注意:xmake非常不建议root下编译项目,但是安装似乎不可避免。