summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-29 21:30:38 +0800
committerruki <[email protected]>2016-05-29 21:30:38 +0800
commit5cd11d086e9af8778f7aa6fb190de58e8a73bc2d (patch)
tree0c660067bcd6b7b6b5b71ed41813d3083d47d339
parent44ff3b70c46134bb217d7b91bcb03c3bdae40584 (diff)
modify README
-rwxr-xr-xREADME.md20
1 files changed, 5 insertions, 15 deletions
diff --git a/README.md b/README.md
index a389a3541..5ca332825 100755
--- a/README.md
+++ b/README.md
@@ -24,16 +24,6 @@ It is similar to cmake, automake, premake, but more convenient and easy to use.
7. install target
8. run a given target
9. describe the project file using lua script, more flexible and simple
-
- -- xmake.lua
- target("console")
-
- -- set kind
- set_kind("binary")
-
- -- add files
- add_files("src/*.c")
-
10. custom platforms and toolchains
11. custom rules for package/compiler/linker
@@ -44,7 +34,7 @@ create a c++ console project:
xmake create -l c++ -t 1 console
or xmake create --language=c++ --template=1 console
-project makefile: xmake.lua
+project xmakefile: xmake.lua
target("console")
set_kind("binary")
@@ -106,7 +96,7 @@ or run:
The simple xmake.lua file:
-- the debug mode
- if modes("debug") then
+ if is_mode("debug") then
-- enable the debug symbols
set_symbols("debug")
@@ -116,7 +106,7 @@ The simple xmake.lua file:
end
-- the release mode
- if modes("release") then
+ if is_mode("release") then
-- set the symbols visibility: hidden
set_symbols("hidden")
@@ -282,7 +272,7 @@ XMake是一个跨平台自动构建工具,支持在各种主流平台上构建
####简单例子
-- the debug mode
- if modes("debug") then
+ if is_mode("debug") then
-- enable the debug symbols
set_symbols("debug")
@@ -292,7 +282,7 @@ XMake是一个跨平台自动构建工具,支持在各种主流平台上构建
end
-- the release mode
- if modes("release") then
+ if is_mode("release") then
-- set the symbols visibility: hidden
set_symbols("hidden")