From a4e7ecaa3920b2fd4928ed95f5f97361be45c354 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 11 Jan 2023 22:32:52 +0800 Subject: update readme --- README.md | 10 ++++++++-- README_zh.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68d6b9dc9..c9add85fe 100644 --- a/README.md +++ b/README.md @@ -113,11 +113,17 @@ If you don't want to use the script to install xmake, see [Installation Guide](h ## Simple description - +```lua +target("hello") + set_kind("binary") + add_files("src/*.cpp") +``` ## Package dependences - +```lua +add_requires("tbox 1.6.*", "zlib", "libpng ~1.6") +``` An official xmake package repository exists at: [xmake-repo](https://github.com/xmake-io/xmake-repo) diff --git a/README_zh.md b/README_zh.md index 49eb8293c..6643770ea 100644 --- a/README_zh.md +++ b/README_zh.md @@ -121,11 +121,17 @@ Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicPars ## 简单的工程描述 - +```lua +target("hello") + set_kind("binary") + add_files("src/*.cpp") +``` ## 包依赖描述 - +```lua +add_requires("tbox 1.6.*", "zlib", "libpng ~1.6") +``` 官方的xmake包管理仓库: [xmake-repo](https://github.com/xmake-io/xmake-repo) -- cgit v1.3.1