Home
last modified time | relevance | path

Searched full:gn (Results 1 – 25 of 4339) sorted by relevance

12345678910>>...174

/aosp_15_r20/external/perfetto/
H A DBUILD53 # GN target: //src/base:perfetto_base_default_platform
68 # GN target: //src/ipc/protoc_plugin:ipc_plugin
79 # GN target: //src/ipc:perfetto_ipc
104 # GN target: //src/protozero/protoc_plugin:cppgen_plugin
115 # GN target: //src/protozero/protoc_plugin:protozero_plugin
126 # GN target: //src/protozero:protozero
155 # GN target: //src/shared_lib:libperfetto_c
262 # GN target: //src/tools/proto_filter:proto_filter
300 # GN target: //src/tools/proto_merger:proto_merger
320 # GN target: //src/trace_processor/rpc:trace_processor_rpc
[all …]
H A DAndroid.bp17 // GN: //src/profiling/memory:heapprofd
186 // GN: //src/profiling/memory:heapprofd_api_noop
207 // GN: //src/profiling/memory:heapprofd_client
240 // GN: //src/profiling/memory:heapprofd_client_api
289 // GN: //src/profiling/memory:heapprofd_standalone_client
473 // GN: //src/ipc/protoc_plugin:ipc_plugin
497 // GN: //:libperfetto
705 // GN: //src/android_internal:libperfetto_android_internal
747 // GN: //src/shared_lib:libperfetto_c
927 // GN: //:libperfetto_client_experimental
[all …]
/aosp_15_r20/external/pigweed/docs/
H A Dbuild_system.rst155 Of the supported build systems, GN is the most full-featured, followed by CMake,
159 A quick note on terminology: the word "target" is overloaded within GN/Bazel (and
160 Pigweed)---it can refer to either a GN/Bazel build target, such as a ``source_set``
164 To avoid confusing the two, we refer to the former as "GN/Bazel targets" and the
167 .. _docs-build-system-gn:
169 GN section in Pigweed's build systems
171 A perhaps unfamiliar name, `GN (Generate Ninja)`_ is a meta-build system that
173 first experimented with GN after hearing about it from another team, and we
174 quickly came to appreciate its speed and simplicity. GN has become Pigweed's
180 .. _GN (Generate Ninja): https://gn.googlesource.com/gn
[all …]
H A Dpython_build.rst4 Pigweed's GN Python Build
9 - :bdg-ref-primary-line:`module-pw_build` for other GN templates available
14 Pigweed uses a custom GN-based build system to manage its Python code. The
20 Pigweed's Python code is exclusively managed by GN, but the GN-based build may
22 setup uses GN to set up the initial Python environment, regardless of the final
23 build system. As needed, non-GN projects can declare just their Python packages
24 in GN.
28 In addition to compiler commands a Pigweed GN build will execute Python scripts
31 :ref:`module-pw_build-pw_python_action` GN template which will ultimately run
39 When a Pigweed GN build starts a single venv is created for use by all
[all …]
/aosp_15_r20/external/skia/site/docs/user/
H A Dbuild.md11 Skia uses [GN](https://chromium.googlesource.com/chromium/src/tools/gn/) to
30 a GN argument that looks something like `skia_use_foo` for appropriate `foo`.
53 `--args='cc="clang" cxx="clang++"'` GN build arguments, as illustrated in
57 If you do not specify `cc` and `cxx` in your gn arguments, Skia will default to
62 Run `gn gen` to generate your build files. As arguments to `gn gen`, pass a name
68 bin/gn gen out/Static --args='is_official_build=true'
74 bin/gn gen out/Shared --args='is_official_build=true is_component_build=true'
77 If you find that you don't have `bin/gn`, make sure you've run:
83 For a list of available build arguments, take a look at `gn/skia.gni`, or run:
86 bin/gn args out/Debug --list
[all …]
/aosp_15_r20/external/pytorch/torch/fx/passes/utils/
H A Dmatcher_utils.py106 def _match_attributes(self, pn: Node, gn: Node) -> bool:
109 assert isinstance(gn.target, str), f"gn.target {gn.target} must be a string."
122 gn_value = _getattr(gn.graph.owning_module, gn.target)
134 def _nodes_are_equal(self, pn: Node, gn: Node) -> bool:
139 if pn.op == gn.op:
143 return self._match_attributes(pn, gn)
144 return pn.target == gn.target
152 … lookup: Dict[Node, Node] = {gn : pn for pn, gn in nodes_map.items() if pn.op != "placeholder"}
154 for gn, pn in lookup.items():
159 for user in gn.users:
[all …]
/aosp_15_r20/external/perfetto/src/profiling/memory/
H A DBUILD.gn15 import("../../../gn/fuzzer.gni")
16 import("../../../gn/perfetto.gni")
17 import("../../../gn/test.gni")
25 "../../../gn:default_deps",
32 "../../../gn:default_deps",
51 # single bp target). However this is not correctly reflected in the gn
58 configs -= [ "//gn/standalone:android_liblog" ] # nogncheck
72 "../../../gn:default_deps",
86 "../../../gn:default_deps",
96 "../../../gn:default_deps",
[all …]
/aosp_15_r20/external/pigweed/pw_build/
H A Dgn.rst1 .. _module-pw_build-gn:
3 GN / Ninja
8 The GN / Ninja build system is the primary build system used for upstream
12 This module's ``build.gn`` file contains a number of C/C++ ``config``
14 compiler defaults. (See Pigweed's ``//BUILDCONFIG.gn``)
16 ``pw_build`` also provides several useful GN templates that are used throughout
22 to using the GN build.
24 Pigweed's root ``BUILD.gn`` file contains a variety of groups to help you
37 There are a variety of other groups in the root ``BUILD.gn`` file that may be
42 build argument. You can set this to ``true`` using ``gn args out`` to try to
[all …]
H A Dpython.rst4 Python GN Templates
9 The Python build is implemented with GN templates defined in
15 GN is built.
16 - The :bdg-ref-primary-line:`module-pw_build` docs for other GN templates
47 GN permits using abbreviated labels when the target name matches the directory
58 Pylint) are done within a single GN toolchain to avoid duplication in
60 ``pw_build_PYTHON_TOOLCHAIN`` GN arg, which defaults to
68 ``pw_build_TEST_TRANSITIVE_PYTHON_DEPS = false`` to your project's ``.gn``
97 It is best to keep these files within the same folder as the ``BUILD.gn``
118 - ``python_deps`` - Dependencies on other pw_python_packages in the GN build.
[all …]
/aosp_15_r20/external/perfetto/tools/
H A Dgen_android_bp16 # This tool translates a collection of BUILD.gn files into a mostly equivalent
18 # JSON description of the GN build definition generated with the following
21 # gn desc out --format=json --all-toolchains "//*" > desc.json
23 # The tool is then given a list of GN labels for which to generate Android.bp
24 # build rules. The dependencies for the GN labels are squashed to the generated
44 # Arguments for the GN output directory.
420 '//gn:default_deps':
422 '//gn:gtest_main':
424 '//gn:protoc':
426 '//gn:base_platform':
[all …]
H A Dgen_bazel16 # This tool translates a collection of BUILD.gn files into a mostly equivalent
18 # JSON description of the GN build definition generated with the following
21 # gn desc out --format=json --all-toolchains "//*" > desc.json
23 # The tool is then given a list of GN labels for which to generate Bazel
47 # Arguments for the GN output directory.
65 # in the GN build files.
150 '//gn:default_deps': [],
151 '//gn:base_platform': ['PERFETTO_CONFIG.deps.base_platform'],
152 '//gn:expat': ['PERFETTO_CONFIG.deps.expat'],
153 '//gn:jsoncpp': ['PERFETTO_CONFIG.deps.jsoncpp'],
[all …]
H A Dgn_utils.py15 # A collection of utilities for extracting build rule information from GN
34 BUILDFLAGS_TARGET = '//gn:gen_buildflags'
36 TARGET_TOOLCHAIN = '//gn/standalone/toolchain:gcc_like_host'
37 HOST_TOOLCHAIN = '//gn/standalone/toolchain:gcc_like_host'
80 """Creates the JSON build description by running GN.
92 _tool_path('gn', system_buildtools) +
99 """Creates the JSON build description by running GN."""
101 _tool_path('gn', system_buildtools) +
108 """Prepares a GN out directory and loads the build description from it.
120 """Runs ninja to build a list of GN targets in the given out directory.
[all …]
/aosp_15_r20/external/pigweed/seed/
H A D0111.rst19 <https://bazel.build/>`_ as its primary build system, replacing `GN
20 <https://gn.googlesource.com/gn/>`_ in that role.
25 files for multiple systems (Bazel, CMake, GN, Soong), as well as other
35 Pigweed's primary build system has been GN, but soon will be Bazel.
40 GN has been Pigweed's primary build system since inception, and we've developed
41 an extensive GN build that was used to successfully ship products at scale. GN
45 But GN has limitations:
47 #. **Small community.** GN is a niche build system: the only major open-source
50 to Pigweed with any past experience with GN.
51 #. **No reusable rulesets.** Pigweed has written and maintains all its GN
[all …]
/aosp_15_r20/external/perfetto/src/trace_processor/util/
H A DBUILD.gn15 import("../../../gn/perfetto.gni")
16 import("../../../gn/perfetto_cc_proto_descriptor.gni")
28 "../../../gn:default_deps",
43 "../../../gn:default_deps",
54 "../../../gn:default_deps",
60 deps += [ "../../../gn:zlib" ]
70 "../../../gn:default_deps",
81 "../../../gn:default_deps",
95 "../../../gn:default_deps",
111 "../../../gn:default_deps",
[all …]
/aosp_15_r20/external/perfetto/buildtools/
H A DBUILD.gn15 import("../gn/perfetto.gni")
16 import("../gn/standalone/libc++/libc++.gni")
17 import("../gn/standalone/sanitizers/vars.gni")
23 # files in src/ or include/ to buildtools. All deps (outside of /gn/*) should
24 # go via the groups defined in gn/BUILD.gn, not directly into buildtools. This
28 "../gn:*",
29 "../gn/standalone:*",
104 configs -= [ "//gn/standalone:extra_warnings" ]
108 deps = [ "//gn:default_deps" ]
114 configs -= [ "//gn/standalone:extra_warnings" ]
[all …]
/aosp_15_r20/external/angle/build/docs/
H A Dwriting_gn_templates.md1 # Writing GN Templates
2 GN and Ninja are documented here:
3 * GN: https://gn.googlesource.com/gn/+/main/docs/
20 understand ninja's "restat" directive, which is used for all GN `action()`s.
33 For action inputs that are not computable during "gn gen", actions can write
37 * Depfiles should not list files that GN already lists as `inputs`.
39 inputs, since removing them from GN does not immediately remove them from
47 ### Ensuring "gn analyze" Knows About your Inputs
48 "gn analyze" is used by bots to run only affected tests and build only affected
51 echo "compute_inputs_for_analyze = true" >> out/Debug/args.gn
[all …]
/aosp_15_r20/external/cronet/build/docs/
H A Dwriting_gn_templates.md1 # Writing GN Templates
2 GN and Ninja are documented here:
3 * GN: https://gn.googlesource.com/gn/+/main/docs/
20 understand ninja's "restat" directive, which is used for all GN `action()`s.
33 For action inputs that are not computable during "gn gen", actions can write
37 * Depfiles should not list files that GN already lists as `inputs`.
39 inputs, since removing them from GN does not immediately remove them from
47 ### Ensuring "gn analyze" Knows About your Inputs
48 "gn analyze" is used by bots to run only affected tests and build only affected
51 echo "compute_inputs_for_analyze = true" >> out/Debug/args.gn
[all …]
/aosp_15_r20/external/mesa3d/.gitlab-ci/container/patches/
H A Dbuild-skqp_fetch_gn.patch1 diff --git a/bin/fetch-gn b/bin/fetch-gn
3 --- a/bin/fetch-gn
4 +++ b/bin/fetch-gn
26 -dst = 'bin/gn.exe' if 'win32' in sys.platform else 'bin/gn'
27 +gnzip = os.path.join(tempfile.mkdtemp(), 'gn.zip')
36 + url = 'https://chrome-infra-packages.appspot.com/dl/gn/gn/{}-{}/+/git_revision:{}'.format(
46 +gn = 'gn.exe' if 'win32' in sys.platform else 'gn'
48 + f.extract(gn, 'bin')
52 - f.write(urllib2.urlopen('https://chromium-gn.storage-download.googleapis.com/' + sha1).read())
53 +gn = os.path.join('bin', gn)
[all …]
/aosp_15_r20/external/perfetto/src/trace_processor/
H A DBUILD.gn15 import("../../gn/fuzzer.gni")
16 import("../../gn/perfetto.gni")
17 import("../../gn/perfetto_cc_proto_descriptor.gni")
18 import("../../gn/perfetto_host_executable.gni")
19 import("../../gn/test.gni")
20 import("../../gn/wasm.gni")
39 "../../gn:default_deps",
56 "../../gn:default_deps",
76 "../../gn:default_deps",
97 "../../gn:default_deps",
[all …]
/aosp_15_r20/external/cronet/components/cronet/tools/
H A Dutils.py8 GN and Ninja commands.
21 _GN_PATH = os.path.join(REPOSITORY_ROOT, 'buildtools/linux64/gn')
49 def gn(out_dir, gn_args, gn_extra=None, **kwargs): function
50 """ Executes `gn gen`.
52 Runs `gn gen |out_dir| |gn_args + gn_extra|` which will generate
53 a GN configuration that lives under |out_dir|. This is done
57 out_dir (str): Path to delegate to `gn gen`.
62 Exit code of running `gn gen` command with argument provided.
105 the target |build_target| for the GN configuration living under |out_dir|.
118 """Runs `gn gen` using Cronet's android gn_args.
[all …]
/aosp_15_r20/external/pytorch/test/dynamo/
H A Dtest_activation_checkpointing.py204 def gn(x, y): function
209 gn, torch.sin(x), y, use_reentrant=True
224 def gn(x, y): function
229 return checkpoint(gn, torch.sin(x), y, use_reentrant=True)
243 def gn(x, y): function
248 gn, torch.sin(x), y, use_reentrant=True, preserve_rng_state=False
263 def gn(x): function
271 x = torch.utils.checkpoint.checkpoint(gn, x)
272 x = torch.utils.checkpoint.checkpoint(gn, x)
288 def gn(x, y): function
[all …]
/aosp_15_r20/external/libyuv/docs/
H A Dgetting_started.md62 call gn gen out\Release "--args=is_debug=false target_cpu=\"x64\""
63 call gn gen out\Debug "--args=is_debug=true target_cpu=\"x64\""
67 call gn gen out\Release "--args=is_debug=false target_cpu=\"x86\""
68 call gn gen out\Debug "--args=is_debug=true target_cpu=\"x86\""
74 gn gen out/Release "--args=is_debug=false"
75 gn gen out/Debug "--args=is_debug=true"
79 ### Building Offical with GN
81 gn gen out/Official "--args=is_debug=false is_official_build=true is_chrome_branded=true"
91gn gen out/Release "--args=is_debug=false target_os=\"ios\" ios_enable_code_signing=false target_c…
92gn gen out/Debug "--args=is_debug=true target_os=\"ios\" ios_enable_code_signing=false target_cpu=…
[all …]
/aosp_15_r20/external/libchrome/build/
H A Dgn_helpers.py5 """Helper functions useful when writing scripts that integrate with GN.
8 serialized GN veriables and Python variables.
27 """Returns a stringified GN equivalent of the Python value.
30 to GN scopes. This is only possible at the top level, you can't nest a
31 GN scope in a list, so this should be set to False for recursive calls."""
63 raise GNException("Unsupported type when printing to GN.")
67 """Converts the input string from a GN serialized value to Python values.
71 If your GN script did:
79 You can parse this into a Python list using GN rules with:
82 will not handle GN escaping properly, nor GN booleans. You should use this
[all …]
/aosp_15_r20/external/openthread/script/
H A Dcheck-gn-build39 # Check GN build for OT1.1
40 rm gn-out -r || true
41 gn gen --check gn-out
42 gn args gn-out --list
43 ninja -C gn-out
44 test -f gn-out/obj/src/core/libopenthread-ftd.a
46 # Check GN build for OT1.3
47 rm gn-out -r || true
48 mkdir gn-out
49 echo 'openthread_config_thread_version = "1.3"' >gn-out/args.gn
[all …]
/aosp_15_r20/external/cronet/base/allocator/partition_allocator/
H A Dbuild_config.md5 [GN args][gn-declare-args], which propagate via
11 * [`//base/allocator/partition_allocator/BUILD.gn`][pa-build-gn],
12 * Everything else ending in `.gn` or `.gni` in
15 * [`//base/allocator/BUILD.gn`][base-allocator-build-gn], and
16 * [`//base/BUILD.gn`][base-build-gn].
34 ## Select GN Args
45 it was logically identical to wholly disabling it in Chromium. This GN
90 Over time, the above list should evolve into a list of macros / GN args
94 [gn-declare-args]: https://gn.googlesource.com/gn/+/refs/heads/main/docs/reference.md#func_declare_…
96 [pa-build-gn]: https://source.chromium.org/chromium/chromium/src/+/main:base/allocator/partition_al…
[all …]

12345678910>>...174