ohos-build

一、文档

https://stackoverflow.com/questions/49102921/how-to-include-a-shared-library-in-chromiums-gn-file
https://gitee.com/openharmony/build

二、流程

Gn配置构建目标(Gn运行后会生成ninja文件)->通过运行ninja来执行编译任务

三、名词

part_name  部件名称
subsystem  子系统名称
deps       部件内模块依赖
module_list gn模块

四、模板类型

ohos_executable
ohos_shared_library
ohos_static_library
ohos_source_set
ohos_prebuilt_executable
ohos_prebuilt_shared_library
ohos_prebuilt_etc

五、示例

sources = []
include_dirs = []
cflags = []
cflags_c = []
cflags_cc = []
ldflags = []
configs = []
module_install_dir
relative_install_dir
install_images = [] 

你可能感兴趣的:(linux,经验分享)