gn ls out/dir:列出所有的target; gn ls out/dir "//:hello_word*":列出匹配的target; gn desc out/dir "//:hello_word":查看指定target的描述信息,包括src源码文件、依赖的lib、编译选项等; gn refs out/dir 文件:查看依赖该文件的target; gn refs out/dir //:hello_word:查看依赖该target的target 。
1、产品解决方案代码是如何被调用编译的 在文件build\lite\BUILD.gn配置文件中的构建目标//build/lite:product的代码片段如下,可以看出产品解决方案是被//build/lite:product调用的。其中⑴处的ohos_build_target,由hb build -T XX 构建参数指定,一般不指定时为空。 group("product") { deps = [] # build p...
static_library("libcurl_static") { sources = curl_source deps = [ "//third_party/mbedtls" ] deps += [ "//third_party/nghttp2/lib:nghttp2_lib_static" ] configs += [ ":curl_config", ":curl_config_public", ] public_configs = [ ":curl_config_public" ] } } els...
jim@ubuntu:~/0_Git/third_party_gn/examples/simple_build$ tree out/ out/ ├── args.gn ├── build.ninja ├── build.ninja.d ├── obj │ ├── hello.ninja │ ├── hello_shared.ninja │ └── hello_static.ninja └── toolchain.ninja 1 directory, 7 files jim@ubuntu:~/...
BUILD.gn 复制 static_library(test){sources=["component.c"]include_dirs=["//commonlibrary/utils_lite/include"]} 1. 2. 3. 4. 5. 6. 7. 8. 定义组件: 在build/lite/components/创建application1.json编写如下代码: 复制 {"components":[{"component":"myComponent","description":"a test componen...
angle_static_library(target_name) { sources = invoker.sources configs += [ ":angle_common_config", ":debug_annotations_config", ] deps = [ ":xxhash" ] public_deps = [ ":angle_abseil", ":includes", ] public_configs += [ ":angle_common_config" ] if (angle_has...
skia_static_library("pathkit") { check_includes = false public_configs = [ ":skia_public" ] configs = skia_library_configs deps = [ ":arm64", ":armv7", ":avx", ":crc32", ":hsw", ":none", ":sse2", ":sse41", ...
if (component_mode == "shared_library") { component("v8") { sources = [ "src/v8dll-main.cc", ] if (v8_use_external_startup_data) { deps = [ ":v8_base", ":v8_external_snapshot", ] } else if (v8_use_snapshot) { deps = [ ":v8_base", ":v8_snapshot", ] } else {...
There a few issues to fix to make it work with crashpad, but in general the GN library types (static, shared, source_set, group, loadable_module) should be able to map onto the ones in CMake (static, shared, object, interface, module). Something to note for this approach is that a...
./base/startup/syspara_lite/frameworks/token/BUILD.gn:47: deps = [ "$ohos_product_adapter_dir/utils/token:hal_token_static" ] 4、board_adapter_dir 芯片开发板适配目录 在开发产品时,有哪些子系统或部件需要在芯片开发板适配目录里放置适配文件呢?我们在 OpenHarmony 代码目录下执行 grep ohos_board...