google构建工具gn 三子命令

常用命令

# 生成ninja文件
# gn gen [--check] [] 
gn help gen
gn gen out/debug
gn gen --ide=vs2013 --sln=test       out/debug_test
gn gen --ide=xcode  --workspace=test out/debug_test

# 显示或配置build参数
# gn args  [--list] [--short] [--args] [--overrides-only]
# current_cpu = ""
# current_os = ""
# host_cpu = "x64"
# host_os = "win | mac | linux"
# target_cpu = ""
# target_os = ""
gn args out/debug
gn args out/Debug --list --short
gn args out/Debug --list=target_cpu
gn help host_os
### 配置文件格式如下:
### is_debug = false
### is_component_build = false

 

你可能感兴趣的:(工具)