defines = [ "PANDA_ENABLE_LTO" ] if (ark_standalone_build) { defines += [ "STANDALONE_MODE" ] } cflags_cc = [ "-Wall", "-Wshadow", "-Werror", "-Wextra", "-pedantic", "-Wno-invalid-offsetof", "-Wno-gnu-statement-expression", "-pipe", "-Wdate-time",...
defines = [ "USE_ARES" ] } subsystem_name = "thirdparty" part_name = "curl" } ohos_source_set("curl_http3") { configs = [ ":curl_config" ] if (netstack_feature_http3) { configs += [ "//vendor/open_source/quiche/quiche:quiche_config" ] configs += [ "//vendo...
在独立的gn文件中定义编译使用的工具链; 在项目根目录下创建BUILD.gn文件,指定编译的目标。 3. gn命令 gn gen out/dir [--args="..."]:创建新的编译目录,会自动创建args.gn文件作为编译参数。 gn args --list out/dir:列出可选的编译参数。 gn ls out/dir:列出所有的target; gn ls out/dir "//:h...
defines = [ "ENABLE_HILOG" ] include_dirs = [ "//base/hiviewdfx/hilog/interfaces/native/innerkits/include" ] } } config("ark_jsruntime_common_config") { defines = [ "PANDA_ENABLE_LTO" ] cflags_cc = [ "-Wall", "-Wshadow", "-Werror", "-Wextra", "...
defines += [ "__LITEOS_A__" ] if (!defined(LOSCFG_DEBUG_VERSION)) { defines += [ "NDEBUG" ] } cflags = [ "-fno-pic", "-fno-builtin", "-fms-extensions", "-fno-strict-aliasing", "-fno-common", "-fsigned-char", ...
https://gitee.com/openharmony/third_party_gn/repository/archive/master.zip 下载源码 cd examples/simple_build/ 下载源码后进入其中的子目录 ls 先看看里面的文件 jim@ubuntu:~/0_Git/third_party_gn/examples/simple_build$ ls build BUILD.gn hello.cc hello_shared.cc hello_shared.h hello_static.cc ...
import("etc/gn/openthread.gni") config("openthread_config") { defines=[] if(openthread_config_file!="") { defines+=["OPENTHREAD_CONFIG_FILE=${openthread_config_file}"] } include_dirs=openthread_project_include_dirs include_dirs+=[
defines += [ "NDEBUG" ] } cflags = [ "-fno-pic", "-fno-builtin", "-fms-extensions", "-fno-strict-aliasing", "-fno-common", "-fsigned-char", "-ffunction-sections", "-fdata-sections", "-fno-exceptions", ...
defines = [] if (!is_mingw) { defines += [ "ECMASCRIPT_SUPPORT_CPUPROFILER", "ECMASCRIPT_SUPPORT_SNAPSHOT", "ECMASCRIPT_SUPPORT_DEBUGGER", ] } include_dirs = [ "//ark/js_runtime", "$ark_root", ] } intl_sources = [ "ecmascript/builtins/builtins_collator....
openharmony\build\lite\config\BUILDCONFIG.gn包含导入import。该文件的代码片段如下,我们主要看下配置的...