add new chinese translations
This commit is contained in:
21
pages.zh/common/glib-compile-resources.md
Normal file
21
pages.zh/common/glib-compile-resources.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# glib-compile-resources
|
||||
|
||||
> 将资源文件(例如图像)编译成二进制资源包。
|
||||
> 这些可以通过 GResource API 链接到 GTK 应用程序中。
|
||||
> 更多信息:<https://manned.org/glib-compile-resources>。
|
||||
|
||||
- 将 `file.gresource.xml` 中引用的资源编译为 .gresource 二进制文件:
|
||||
|
||||
`glib-compile-resources {{file.gresource.xml}}`
|
||||
|
||||
- 将 `file.gresource.xml` 中引用的资源编译为 C 源文件:
|
||||
|
||||
`glib-compile-resources --generate-source {{file.gresource.xml}}`
|
||||
|
||||
- 将 `file.gresource.xml` 中的资源编译到指定的目标文件,扩展名可以是 .c、.h 或 .gresource:
|
||||
|
||||
`glib-compile-resources --generate --target={{file.ext}} {{file.gresource.xml}}`
|
||||
|
||||
- 打印 `file.gresource.xml` 中引用的资源文件列表:
|
||||
|
||||
`glib-compile-resources --generate-dependencies {{file.gresource.xml}}`
|
Reference in New Issue
Block a user