当前位置: 首页 > news >正文

wordpress dosortcode网站建设网站优化相关资讯文章

wordpress dosortcode,网站建设网站优化相关资讯文章,网站 框架网页建设,php建设网站BUILD.gn文件怎么写#xff0c;Gn Ninja编译一个Hello world程序的例子Demo 作者将狼才鲸创建日期2024-03-11 Ninja安装流程见#xff1a;一个能直接运行的Ninja例子#xff0c;build.ninja文件怎么写#xff1f;Gn安装流程见#xff1a;Ubuntu18.04下安装Gn软件 这是一…BUILD.gn文件怎么写Gn Ninja编译一个Hello world程序的例子Demo 作者将狼才鲸创建日期2024-03-11 Ninja安装流程见一个能直接运行的Ninja例子build.ninja文件怎么写Gn安装流程见Ubuntu18.04下安装Gn软件 这是一个简单的BUILD.gn配置文件 jimubuntu:~/0_Git/third_party_gn/examples/simple_build$ cat BUILD.gn # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.executable(hello) {sources [ hello.cc ]deps [:hello_shared,:hello_static,] }shared_library(hello_shared) {sources [hello_shared.cc,hello_shared.h,]defines [ HELLO_SHARED_IMPLEMENTATION ] }static_library(hello_static) {sources [hello_static.cc,hello_static.h,] }这是Gn官方的例子在Gn的源码里面 使用Ubuntu系统安装Git、Ninja、Gn、Clang软件git clone gitgitee.com:openharmony/third_party_gn.git 拉取源码或者https://gitee.com/openharmony/third_party_gn/repository/archive/master.zip 下载源码 cd examples/simple_build/ 下载源码后进入其中的子目录 ls 先看看里面的文件 jimubuntu:~/0_Git/third_party_gn/examples/simple_build$ ls build BUILD.gn hello.cc hello_shared.cc hello_shared.h hello_static.cc hello_static.h README.md tutorialjimubuntu:~/0_Git/third_party_gn/examples/simple_build$ cat hello.cc // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.#include stdio.h#include hello_shared.h #include hello_static.hint main(int argc, char* argv[]) {printf(%s, %s\n, GetStaticText(), GetSharedText());return 0; }gn gen -C out 按Gn规则文件生成Ninja配置文件 jimubuntu:~/0_Git/third_party_gn/examples/simple_build$ gn gen -C out Done. Made 3 targets from 4 files in 45mscd out/ 进入输出目录看看生成的什么内容 jimubuntu:~/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.ninja1 directory, 7 filesjimubuntu:~/0_Git/third_party_gn/examples/simple_build$ cat out/build.ninja ninja_required_version 1.7.2rule gncommand ../../../../../../../usr/bin/gn --root./.. -q --C --regeneration gen .pool consoledescription Regenerating ninja filesbuild build.ninja: gngenerator 1depfile build.ninja.dsubninja toolchain.ninjabuild hello_shared: phony ./libhello_shared.so build hello_static: phony obj/libhello_static.a build $:hello: phony hello build $:hello_shared: phony ./libhello_shared.so build $:hello_static: phony obj/libhello_static.abuild all: phony $hello $./libhello_shared.so $obj/libhello_static.adefault allninja 开始编译和make命令类似 jimubuntu:~/0_Git/third_party_gn/examples/simple_build/out$ ninja [6/6] LINK hellojimubuntu:~/0_Git/third_party_gn/examples/simple_build/out$ tree . ├── args.gn ├── build.ninja ├── build.ninja.d ├── hello ├── libhello_shared.so ├── obj │ ├── hello.hello.o │ ├── hello.ninja │ ├── hello_shared.ninja │ ├── hello_static.ninja │ ├── libhello_shared.hello_shared.o │ ├── libhello_static.a │ └── libhello_static.hello_static.o └── toolchain.ninja1 directory, 13 files./hello 运行编译后的可执行文件 jimubuntu:~/0_Git/third_party_gn/examples/simple_build/out$ ./hello Hello, world参考网址 GN环境搭建
http://www.w-s-a.com/news/866300/

相关文章:

  • 建设网站是主营成本吗wordpress 后台
  • 猎头可以做单的网站企业网站建设
  • 建小程序需要网站吗在putty上怎样安装wordpress
  • 天津智能网站建设找哪家WordPress相册插件pro
  • 电脑网站页面怎么调大小济宁网站建设软件开发
  • 亿玛酷网站建设广州增城区最新消息
  • 企业网站视频栏目建设方案中企动力网站模板
  • 网站页面策划国外注册域名的网站
  • 百中搜如何做网站排名网站维护一年一般多少钱
  • 镇江地区做网站的公司wordpress说说加分类
  • 深圳高端网站设计免费的关键词优化软件
  • 视频网站公司沈阳网站建设服务
  • 网站全屏代码做网站必须用对方服务器
  • 网站速度慢wordpressssl正式申请后wordpress
  • 那个网站做玉石最专业西瓜创客少儿编程加盟
  • 备案时的网站建设方案书免费软件库
  • 惠州外贸网站建设网站模板 兼容ie8
  • 南京淄博网站建设方案php网站开发实训感想
  • 网站设计的含义只做恐怖片的网站
  • 网站改版方案ppt室内装修公司简介
  • 做色网站wordpress twenty ten
  • 马鞍山建设工程监督站建管处网站免费的海报模板网站
  • 类似百度的网站移动端的网站怎么做的
  • 网站开发需要什么文凭网站分析的优劣势
  • 海尔网站建设不足之处山东网站营销
  • 楚雄 网站建设广告设计一般人能学吗
  • 热搜榜排名前十山东seo多少钱
  • 衡水哪有建网站的吗企业信息系统英文
  • 有模板怎么建站wordpress媒体库图片路径
  • 怎么做网站h汉狮企业网站营销的实现方式