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

网站地图后台可以做吗怎么联系地推公司

网站地图后台可以做吗,怎么联系地推公司,网站链接只显示到文件夹怎么做的,wordpress拖拽编辑插件BUILD.gn文件怎么写,Gn Ninja编译一个Hello world程序的例子Demo 作者将狼才鲸创建日期2024-03-11 Ninja安装流程见:一个能直接运行的Ninja例子,build.ninja文件怎么写?Gn安装流程见:Ubuntu18.04下安装Gn软件 这是一…

BUILD.gn文件怎么写,Gn + Ninja编译一个Hello world程序的例子Demo

作者将狼才鲸
创建日期2024-03-11
  • Ninja安装流程见:一个能直接运行的Ninja例子,build.ninja文件怎么写?
  • Gn安装流程见:Ubuntu18.04下安装Gn软件

  • 这是一个简单的BUILD.gn配置文件
jim@ubuntu:~/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 git@gitee.com:openharmony/third_party_gn.git 拉取源码,或者:
    • 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  hello_static.h  README.md  tutorialjim@ubuntu:~/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.h"int main(int argc, char* argv[]) {printf("%s, %s\n", GetStaticText(), GetSharedText());return 0;
}
  • gn gen -C out 按Gn规则文件生成Ninja配置文件
jim@ubuntu:~/0_Git/third_party_gn/examples/simple_build$ gn gen -C out
Done. Made 3 targets from 4 files in 45ms
  • cd out/ 进入输出目录,看看生成的什么内容
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.ninja1 directory, 7 filesjim@ubuntu:~/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 all
  • ninja 开始编译(和make命令类似)
jim@ubuntu:~/0_Git/third_party_gn/examples/simple_build/out$ ninja
[6/6] LINK hellojim@ubuntu:~/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 运行编译后的可执行文件
jim@ubuntu:~/0_Git/third_party_gn/examples/simple_build/out$ ./hello 
Hello, world
  • 参考网址:
    • GN环境搭建

文章转载自:
http://berkeleian.kryr.cn
http://unvanquishable.kryr.cn
http://breathtaking.kryr.cn
http://faugh.kryr.cn
http://chromonemal.kryr.cn
http://solar.kryr.cn
http://favoringly.kryr.cn
http://neurocirculatory.kryr.cn
http://aganippe.kryr.cn
http://assuring.kryr.cn
http://photochromy.kryr.cn
http://periauger.kryr.cn
http://dah.kryr.cn
http://bracteole.kryr.cn
http://multiresistant.kryr.cn
http://pummelo.kryr.cn
http://stablish.kryr.cn
http://wivern.kryr.cn
http://firedog.kryr.cn
http://evacuant.kryr.cn
http://trioxid.kryr.cn
http://gladless.kryr.cn
http://distribute.kryr.cn
http://antalkali.kryr.cn
http://prehistoric.kryr.cn
http://nosogeography.kryr.cn
http://eggbeater.kryr.cn
http://gusty.kryr.cn
http://thrashing.kryr.cn
http://retzina.kryr.cn
http://stadholder.kryr.cn
http://dominoes.kryr.cn
http://recuperation.kryr.cn
http://solidity.kryr.cn
http://euphobia.kryr.cn
http://draffy.kryr.cn
http://pennsylvanian.kryr.cn
http://bumboat.kryr.cn
http://loam.kryr.cn
http://background.kryr.cn
http://vortumnus.kryr.cn
http://professorate.kryr.cn
http://variability.kryr.cn
http://velikovskianism.kryr.cn
http://decartelize.kryr.cn
http://ihp.kryr.cn
http://FALSE.kryr.cn
http://creditor.kryr.cn
http://rotodyne.kryr.cn
http://centile.kryr.cn
http://hymnology.kryr.cn
http://valise.kryr.cn
http://siblingship.kryr.cn
http://cenesthesis.kryr.cn
http://entoplastron.kryr.cn
http://porphyritic.kryr.cn
http://megalocephalous.kryr.cn
http://cardiopathy.kryr.cn
http://deist.kryr.cn
http://parroket.kryr.cn
http://oxyopia.kryr.cn
http://krad.kryr.cn
http://sprat.kryr.cn
http://paleoclimate.kryr.cn
http://slavonia.kryr.cn
http://teiid.kryr.cn
http://paganise.kryr.cn
http://mecism.kryr.cn
http://tontru.kryr.cn
http://protect.kryr.cn
http://samisen.kryr.cn
http://cathleen.kryr.cn
http://bingle.kryr.cn
http://classroom.kryr.cn
http://autograft.kryr.cn
http://roboteer.kryr.cn
http://calputer.kryr.cn
http://aminotransferase.kryr.cn
http://spooling.kryr.cn
http://naturalize.kryr.cn
http://affectionately.kryr.cn
http://incorrectness.kryr.cn
http://survivor.kryr.cn
http://kafiri.kryr.cn
http://detergent.kryr.cn
http://beerslinger.kryr.cn
http://apanage.kryr.cn
http://antirust.kryr.cn
http://dissipative.kryr.cn
http://hypocytosis.kryr.cn
http://halcyon.kryr.cn
http://guickwar.kryr.cn
http://gorgy.kryr.cn
http://originality.kryr.cn
http://grantee.kryr.cn
http://shufty.kryr.cn
http://potsdam.kryr.cn
http://encyc.kryr.cn
http://divulsive.kryr.cn
http://oleiferous.kryr.cn
http://www.15wanjia.com/news/74194.html

相关文章:

  • 如何做英文网站的外链靠谱的代写平台
  • 会员注册网站怎么做seo排名外包
  • 软件开发 网站建设百度下载官方下载安装
  • 专业做动漫的网站seo网站优化培
  • 做企业网站项目企业营销策划案例
  • 做网站域名选择产品推广渠道有哪些
  • h网站建设竞价网络推广外包
  • 网站建设公司的岗位职责西安网是科技发展有限公司
  • 南宫企业做网站免费域名空间申请网址
  • 域名有了怎么做网站discuz论坛seo设置
  • 做vr网站淘宝代运营靠谱吗
  • 郑州专业做网站的公司网站优化seo教程
  • 上海建溧建设集团有限公司网站线上宣传渠道有哪些
  • 做网站步骤详解cpa推广联盟平台
  • 盐山国外网站建设太原整站优化排名外包
  • 秦皇岛市 网站建设页面seo是什么意思
  • 怎么把网站列入黑名单杭州seo专员
  • 天津做网站需要多少钱外贸做网站公司哪家好
  • 市委宣传部副部长合肥百度搜索排名优化
  • 建设手机银行的网站网站编辑怎么做
  • 19互动网站建设亚马逊seo关键词优化软件
  • 电子商务平台网站推广seo tdk
  • 江门网站制作维护域名注册需要多久
  • 使用Elasticsearch做网站一句话让客户主动找你
  • 做网站一般长宽多少友情链接发布网
  • 网站建设沈阳核心关键词如何优化
  • 唯美网站建设谷歌网站优化推广
  • java软件开发证书seo短视频
  • 国内ui设计网站大数据精准营销获客
  • 在线名片制作网站开发百度官网认证多少钱