aboutsummaryrefslogtreecommitdiff
path: root/zh-cn/guide/project_examples.md
diff options
context:
space:
mode:
Diffstat (limited to 'zh-cn/guide/project_examples.md')
-rw-r--r--zh-cn/guide/project_examples.md28
1 files changed, 26 insertions, 2 deletions
diff --git a/zh-cn/guide/project_examples.md b/zh-cn/guide/project_examples.md
index 092a09fb..ab8892f8 100644
--- a/zh-cn/guide/project_examples.md
+++ b/zh-cn/guide/project_examples.md
@@ -339,13 +339,37 @@ target("usbview")
## MFC程序
+### MFC静态库
+
+```lua
+target("test")
+ add_rules("win.sdk.mfc.static")
+ add_files("src/*.c")
+```
+
+### MFC动态库
+
+```lua
+target("test")
+ add_rules("win.sdk.mfc.shared")
+ add_files("src/*.c")
+```
+
+### MFC应用程序(静态链接)
+
```lua
target("test")
- add_rules("win.sdk.mfc")
+ add_rules("win.sdk.mfc.static_app")
add_files("src/*.c")
```
-更多详情可以参考:[#201](https://github.com/xmake-io/xmake/issues/201)
+### MFC应用程序(动态链接)
+
+```lua
+target("test")
+ add_rules("win.sdk.mfc.shared_app")
+ add_files("src/*.c")
+```
## Protobuf程序