Questions tagged [gn]

For questions related to Google's GN build system.

Google's GN is a meta build system for generating low-level ninja build scripts. The name GN derives from "Generate-Ninja". GN is used by major Google projects such as Chromium, Skia and Fuchsia.

Reference: https://gn.googlesource.com/gn/

96 questions
0
votes
0 answers

How to fix this Build error for Chromium browser in Windows?

I've built the Chromium browser on my Windows from its official source code by following this documentation. I made some changes and executed my first build and ran into some errors. The error are as follows: THE ERROR ON EVERY BUILD: [298/50478]…
Paras
  • 9
  • 4
0
votes
1 answer

Electron build - FileNotFoundError test_sample_json_converter.h

Following this instruction page - https://www.electronjs.org/docs/development/build-instructions-gn to build electron. I made testing build config successfully using gn gen out/Testing --args="import(\"//electron/build/args/testing.gn\")" In the…
The_ehT
  • 1,202
  • 17
  • 32
0
votes
0 answers

Electron Build ERROR at //v8/BUILD.gn:503:30: Undefined identifier

I'm trying to build electron source using command - gn gen out/Testing --args="import(\"//electron/build/args/testing.gn\")" Keep getting this error - ERROR at //v8/BUILD.gn:503:30: Undefined identifier if (!is_component_build && is_electron_build)…
The_ehT
  • 1,202
  • 17
  • 32
0
votes
1 answer

How to include a shared library in gn

I have a BUILD.gn in which I want to include a shared library which is located in usr/lib. I have taken reference from this topic How to include a shared library in chromium's gn file? But the .so file is not getting linked with the main function.…
Vaibhav Angi
  • 57
  • 1
  • 4
0
votes
1 answer

Build and test V8 from AOSP for the older version on Ubuntu 18.04.5 LTS

I am trying to run the unit tests for the V8 present in the AOSP's lollipop release: external/chromium_org/v8 by following the documentation from https://v8.dev/docs/build. But the build itself is constantly failing. Steps followed: Export the…
0
votes
1 answer

how can i fix this download chromium prob

i try to downwload chromium code . i'm currently at the command $ gn gen out/Default but its show me this error : C:\Users\sapir\Downloads\depot_tools\chromium\src>gn gen out/Default Traceback (most recent call last): File…
sapir
  • 3
  • 2
0
votes
0 answers

How to import class from dll in chromium gn build

I have build a dll(syncDemo.dll,syncDemo.lib) which has class and functions. I add syncDemo.lib into my chromium gn file. libs = ["syncDemo.lib"] After include .h head file, I can use the function in the .lib. But when I use the class in the .lib…
0
votes
1 answer

How to add prebuilt/precompiled *.o object files to executable in GN

I have a prebuild object done by 3rd party library, I need to add it to the final executable build by GN. Is any way to add prebuild object that source is missing directly to GN executable target? I see GN has precompioed_source, but seems to be…
tojocky
  • 46
  • 7
0
votes
1 answer

Building precompiled header with GN

I'm trying to write a GN file that generates .gch files. I've gone through the GN documentation here I just don't understand how to implement this, i am novice when it comes to GN. So let me explain what i'm trying to achieve. I want GN to create…
0
votes
1 answer

GN build guide for cobalt

The development site page and the default README.md file describe how to create cobalt based on "GYP". However, I am wondering if it can be made of "GN" like chrome. I found the gn build guide…
Sparkleholic
  • 78
  • 1
  • 6
0
votes
2 answers

Build errors with Ninja and Skia. Unable to find icudtl.dat even though the file exists

Anyone know why i'm getting this error? [1/2620] copy ../../third_party/externals/icu/common/icudtl.dat icudtl.dat FAILED: icudtl.dat python E:/Development/c++/skia/skia/gn/cp.py ../../third_party/externals/icu/common/icudtl.dat…
0
votes
1 answer

Can't build a Skia module (SkPlainTextEditor)

I'm trying to build Skia's modules/skplaintexteditor: https://chromium.googlesource.com/skia/+/master/modules/skplaintexteditor/ I have followed the instructions in README.md: tools/git-sync-deps bin/gn gen out/default ninja -C out/default…
Neat
  • 96
  • 5
0
votes
1 answer

gn+ninja link failed under ubuntu but workable on Arch Linux

At first, the official gn example is workable under ubuntu (gcc 7.3.0). git clone --depth=1 https://gn.googlesource.com/gn cp -a gn/tools/gn/example . cd example gn gen out ninja -C out I have modified the hello.cc as #include #include…
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96
0
votes
1 answer

How to convert a Makefile awk to BUILD.gn

The original Makefile like hello2.cc: hello.cc awk '$1 != "//" { print }' < hello.cc > hello2.cc I'll started from official gn example git clone --depth=1 https://gn.googlesource.com/gn cp -a gn/tools/gn/example . cd example gn gen out ninja -C…
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96
0
votes
2 answers

gn generated Xcode project of WebRTC does not compile

This is the first time I am trying to build something from the source codes. I was trying to make a console program out of WebRTC native code. I followed official guide and checked out the source code. As the guide says, To generate IDE project…
jackxujh
  • 983
  • 10
  • 31