Browse Source

update set_runtimes

ruki 1 year ago
parent
commit
8b12695fd7
2 changed files with 28 additions and 12 deletions
  1. 14 6
      manual/project_target.md
  2. 14 6
      zh-cn/manual/project_target.md

+ 14 - 6
manual/project_target.md

@@ -2812,12 +2812,20 @@ This is a newly added interface since v2.5.1, which is used to abstractly set th
 Some of the currently supported configuration values are described as follows:
 
 
-| Value  | Description                                                  |
-| ------ | -----------------------------------------                    |
-| MT     | msvc runtime library: multithreaded static library           |
-| MTd    | msvc runtime library: multithreaded static library (debug)   |
-| MD     | msvc runtime library: multi-threaded dynamic library         |
-| MDd    | msvc runtime library: multi-threaded dynamic library (debug) |
+| Value          | Description                                                                          |
+| ------         | -----------------------------------------                                            |
+| MT             | msvc runtime library: multithreaded static library                                   |
+| MTd            | msvc runtime library: multithreaded static library (debug)                           |
+| MD             | msvc runtime library: multi-threaded dynamic library                                 |
+| MDd            | msvc runtime library: multi-threaded dynamic library (debug)                         |
+| c++_static     | clang's c++ runtime library, static library                                          |
+| c++_shared     | c++ Runtime Library, Dynamic Libraries                                               |
+| stdc++_static  | c++ runtime library for gcc, static library                                          |
+| stdc++_shared  | c++ runtime library for gcc, dynamic libraries                                       |
+| gnustl_static  | c++ runtime library for android, static libraries, deprecated in higher NDK versions |
+| gnustl_shared  | c++ runtime library, static library for android, deprecated in higher NDK versions   |
+| stlport_static | c++ runtime library, static library for android, deprecated by NDK                   |
+| stlport_static | c++ Runtime Library for android, static library, deprecated in higher NDK versions   |
 
 About vs runtime, you can refer to: [msvc runtime description](https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view =msvc-160)
 

+ 14 - 6
zh-cn/manual/project_target.md

@@ -2814,12 +2814,20 @@ target("test")
 目前支持的一些配置值说明如下:
 
 
-| 值     | 描述                                      |
-| ------ | ----------------------------------------- |
-| MT     | msvc 运行时库:多线程静态库               |
-| MTd    | msvc 运行时库:多线程静态库(调试)       |
-| MD     | msvc 运行时库:多线程动态库               |
-| MDd    | msvc 运行时库:多线程动态库(调试)       |
+| 值             | 描述                                               |
+| ------         | -----------------------------------------          |
+| MT             | msvc 运行时库:多线程静态库                        |
+| MTd            | msvc 运行时库:多线程静态库(调试)                |
+| MD             | msvc 运行时库:多线程动态库                        |
+| MDd            | msvc 运行时库:多线程动态库(调试)                |
+| c++_static     | clang 的 c++ 运行时库,静态库                      |
+| c++_shared     | clang 的 c++ 运行时库,动态库                      |
+| stdc++_static  | gcc 的 c++ 运行时库,静态库                        |
+| stdc++_shared  | gcc 的 c++ 运行时库,动态库                        |
+| gnustl_static  | android 的 c++ 运行时库,静态库,高版本 NDK 已废弃 |
+| gnustl_shared  | android 的 c++ 运行时库,静态库,高版本 NDK 已废弃 |
+| stlport_static | android 的 c++ 运行时库,静态库,高版本 NDK 已废弃 |
+| stlport_static | android 的 c++ 运行时库,静态库,高版本 NDK 已废弃 |
 
 关于 vs 运行时,可以参考:[msvc 运行时说明](https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view=msvc-160)