模版实例的名称,则通过target_name来承载,例如,我们定义了模版libaray,那么library(“aysnevent”)的target_name值就是”aysnevent" template(“library”) { assert(defined(invoker.sources), “Need sources in $target_name listing the source files.”) type = “static_library” if (is_win) { type =...
(3)Configs配置 与单个target目标关联的config配置应与target目标同名,并用_config跟在它后面。如 target名称为foo,则对应的config名称为foo_config。 config配置应紧挨着使用它的相应target目标之前出现。 (4)Example 示例src/foo/BUILD.gn如下: 复制 #Copyright2016TheChromiumAuthors.Allrightsreserved....
target_triple = "$arch-liteos-ohos" } else if (ohos_kernel_type == "linux") { target_triple = "$arch-linux-ohos" } if (defined(board_configed_sysroot) && board_configed_sysroot != "") { ohos_current_sysroot = board_configed_sysroot ...
target_type = "angle_shared_library" output_name = "${invoker.output_name}${angle_libs_suffix}" if (angle_egl_extension != "") { output_extension = angle_egl_extension } defines = invoker.defines + [ "LIBEGL_IMPLEMENTATION" ] if (is_win) { defines += [ "EGLAPI=" ] ...
gn refs<out_dir>(||<file>|@<response_file>)* [--all] [--all-toolchains] [--as=...] [--testonly=...] [--type=...] 输入可以是如下这些: Target标签 Config标签 标签模式 文件名 响应文件 这个命令输出依赖于参数中的输入得targets,比如: $ gn refsout/Default/...
target_triple ="$arch-liteos"}elseif(ohos_kernel_type =="linux") { target_triple ="$arch-linux-ohosmusl"} ... template("executable") {#生成可执行文件executable(target_name) { forward_variables_from(invoker, Variables_Executable)if(!defined(invoker.deps)) { ...
arch = "arm" if (ohos_kernel_type == "liteos_a") { target_triple = "$arch-liteos" } else if (ohos_kernel_type == "linux") { target_triple = "$arch-linux-ohosmusl" } ... template("executable") { #生成可执行文件 executable(target_name) { forward_variables_from(invoker, ...
好东西,赞一个
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
target. I'll be in a file, my selected target is the App, but it will disable the code in the TARGET_IS_APP macro and enable it for share extension. The attached image shows an example. My selected build target/scheme is the App. But it's disabling that code and enabling the ...