tree: 92a38b2d47ed85d5b672a7ca17a22dfbe3ecbb3a [path history] [tgz]
  1. bin/
  2. bootstrap/
  3. docs/
  4. example/
  5. format_test_data/
  6. misc/
  7. tutorial/
  8. action_target_generator.cc
  9. action_target_generator.h
  10. action_target_generator_unittest.cc
  11. action_values.cc
  12. action_values.h
  13. args.cc
  14. args.h
  15. args_unittest.cc
  16. binary_target_generator.cc
  17. binary_target_generator.h
  18. BUILD.gn
  19. build_settings.cc
  20. build_settings.h
  21. builder.cc
  22. builder.h
  23. builder_record.cc
  24. builder_record.h
  25. builder_unittest.cc
  26. c_include_iterator.cc
  27. c_include_iterator.h
  28. c_include_iterator_unittest.cc
  29. command_args.cc
  30. command_check.cc
  31. command_clean.cc
  32. command_desc.cc
  33. command_format.cc
  34. command_format_unittest.cc
  35. command_gen.cc
  36. command_help.cc
  37. command_ls.cc
  38. command_refs.cc
  39. commands.cc
  40. commands.h
  41. config.cc
  42. config.h
  43. config_values.cc
  44. config_values.h
  45. config_values_extractors.cc
  46. config_values_extractors.h
  47. config_values_extractors_unittest.cc
  48. config_values_generator.cc
  49. config_values_generator.h
  50. copy_target_generator.cc
  51. copy_target_generator.h
  52. deps_iterator.cc
  53. deps_iterator.h
  54. err.cc
  55. err.h
  56. escape.cc
  57. escape.h
  58. escape_unittest.cc
  59. exec_process.cc
  60. exec_process.h
  61. exec_process_unittest.cc
  62. filesystem_utils.cc
  63. filesystem_utils.h
  64. filesystem_utils_unittest.cc
  65. function_exec_script.cc
  66. function_foreach.cc
  67. function_foreach_unittest.cc
  68. function_get_label_info.cc
  69. function_get_label_info_unittest.cc
  70. function_get_path_info.cc
  71. function_get_path_info_unittest.cc
  72. function_get_target_outputs.cc
  73. function_get_target_outputs_unittest.cc
  74. function_process_file_template.cc
  75. function_process_file_template_unittest.cc
  76. function_read_file.cc
  77. function_rebase_path.cc
  78. function_rebase_path_unittest.cc
  79. function_set_default_toolchain.cc
  80. function_set_defaults.cc
  81. function_template.cc
  82. function_toolchain.cc
  83. function_write_file.cc
  84. function_write_file_unittest.cc
  85. functions.cc
  86. functions.h
  87. functions_target.cc
  88. functions_target_unittest.cc
  89. functions_unittest.cc
  90. generate_test_gn_data.cc
  91. gn.gyp
  92. gn_main.cc
  93. group_target_generator.cc
  94. group_target_generator.h
  95. header_checker.cc
  96. header_checker.h
  97. header_checker_unittest.cc
  98. import_manager.cc
  99. import_manager.h
  100. inherited_libraries.cc
  101. inherited_libraries.h
  102. inherited_libraries_unittest.cc
  103. input_conversion.cc
  104. input_conversion.h
  105. input_conversion_unittest.cc
  106. input_file.cc
  107. input_file.h
  108. input_file_manager.cc
  109. input_file_manager.h
  110. item.cc
  111. item.h
  112. label.cc
  113. label.h
  114. label_pattern.cc
  115. label_pattern.h
  116. label_pattern_unittest.cc
  117. label_ptr.h
  118. label_unittest.cc
  119. last_commit_position.py
  120. loader.cc
  121. loader.h
  122. loader_unittest.cc
  123. location.cc
  124. location.h
  125. ninja_action_target_writer.cc
  126. ninja_action_target_writer.h
  127. ninja_action_target_writer_unittest.cc
  128. ninja_binary_target_writer.cc
  129. ninja_binary_target_writer.h
  130. ninja_binary_target_writer_unittest.cc
  131. ninja_build_writer.cc
  132. ninja_build_writer.h
  133. ninja_copy_target_writer.cc
  134. ninja_copy_target_writer.h
  135. ninja_copy_target_writer_unittest.cc
  136. ninja_group_target_writer.cc
  137. ninja_group_target_writer.h
  138. ninja_group_target_writer_unittest.cc
  139. ninja_target_writer.cc
  140. ninja_target_writer.h
  141. ninja_target_writer_unittest.cc
  142. ninja_toolchain_writer.cc
  143. ninja_toolchain_writer.h
  144. ninja_toolchain_writer_unittest.cc
  145. ninja_utils.cc
  146. ninja_utils.h
  147. ninja_writer.cc
  148. ninja_writer.h
  149. operators.cc
  150. operators.h
  151. operators_unittest.cc
  152. ordered_set.h
  153. output_file.cc
  154. output_file.h
  155. OWNERS
  156. parse_tree.cc
  157. parse_tree.h
  158. parse_tree_unittest.cc
  159. parser.cc
  160. parser.h
  161. parser_unittest.cc
  162. path_output.cc
  163. path_output.h
  164. path_output_unittest.cc
  165. pattern.cc
  166. pattern.h
  167. pattern_unittest.cc
  168. README.md
  169. runtime_deps.cc
  170. runtime_deps.h
  171. runtime_deps_unittest.cc
  172. scheduler.cc
  173. scheduler.h
  174. scope.cc
  175. scope.h
  176. scope_per_file_provider.cc
  177. scope_per_file_provider.h
  178. scope_per_file_provider_unittest.cc
  179. scope_unittest.cc
  180. settings.cc
  181. settings.h
  182. setup.cc
  183. setup.h
  184. source_dir.cc
  185. source_dir.h
  186. source_dir_unittest.cc
  187. source_file.cc
  188. source_file.h
  189. source_file_type.cc
  190. source_file_type.h
  191. standard_out.cc
  192. standard_out.h
  193. string_utils.cc
  194. string_utils.h
  195. string_utils_unittest.cc
  196. substitution_list.cc
  197. substitution_list.h
  198. substitution_pattern.cc
  199. substitution_pattern.h
  200. substitution_pattern_unittest.cc
  201. substitution_type.cc
  202. substitution_type.h
  203. substitution_writer.cc
  204. substitution_writer.h
  205. substitution_writer_unittest.cc
  206. switches.cc
  207. switches.h
  208. target.cc
  209. target.h
  210. target_generator.cc
  211. target_generator.h
  212. target_generator_unittest.cc
  213. target_unittest.cc
  214. template.cc
  215. template.h
  216. template_unittest.cc
  217. test_with_scope.cc
  218. test_with_scope.h
  219. token.cc
  220. token.h
  221. tokenizer.cc
  222. tokenizer.h
  223. tokenizer_unittest.cc
  224. tool.cc
  225. tool.h
  226. toolchain.cc
  227. toolchain.h
  228. trace.cc
  229. trace.h
  230. unique_vector.h
  231. unique_vector_unittest.cc
  232. value.cc
  233. value.h
  234. value_extractors.cc
  235. value_extractors.h
  236. value_unittest.cc
  237. variables.cc
  238. variables.h
  239. visibility.cc
  240. visibility.h
  241. visibility_unittest.cc
tools/gn/README.md

What is GN?

GN is a meta-build system that generates NinjaBuild files. It's meant to be faster and simpler than GYP. It outputs only Ninja build files.

Why bother with GN?

  1. We believe GN files are more readable and more maintainable than GYP files.
  2. GN is fast:
  • GN is 20x faster than GYP (as of mid November, building 80% of what GYP builds, in one configuration rather than two, takes 500ms on a z620 running Ubuntu Trusty. GYP takes 20 seconds. We see similar speedups on Mac and Windows).
  • GN supports automatically re-running itself as needed by Ninja as part of the build. This eliminates the need to remember to re-run GN when you change a build file.
  1. GN gives us better tools for enforcing dependencies (see gn check and the visibility, public_deps, and data_deps options for some examples).
  2. GN gives us tools for querying the build graph; you can ask “what does X depend on” and “who depends on Y”, for example.

What's the status?

as of 8 Feb 2015:

Chrome and most of the major test suites link on Linux and ChromeOS. There's probably <1000 objects left to build, in a few test suites and a bunch of utillities and helper binaries. We will probably have everything converted in another couple weeks.

Chrome also links on Android and Windows, and bringing up the remaining test suites should be mostly straightforward. There's some work left to enable NaCl on Windows but it should also be straightforward.

Mac and iOS have not progressed much as attention has been focused on Linux and Windows; we still need support for bundles and frameworks before it can get to parity w/ the other platforms.

When are you going to be done?

as of 8 Feb 2015:

We're currently shooting for having the main developer configurations working and usable by the end of March 2015. There will probably be a fair amount of verification of flags, bug fixes, etc over the next couple months, but hopefully we will be flipping configurations from GYP to GN throughout Q2, targeting having everything done by the end of Q2.

What does “done” mean?

Ideally we're done when all of the GYP files have been deleted from Chromium and no one misses them.

We will be “mostly” done when the following are true:

  • All of the bots maintained by the Chrome infra team for Chromium and downstream of Chromium have been switched to GN. (Upstream projects like Skia and V8 can choose to stay on GYP if they like).
  • Any developer configurations we care about that don‘t have bots also work (Generally speaking, we’re aiming to not have any of these.
  • Configurations we care about should have bots to ensure they don't break). We have verified that all of the tests pass. We have verified that the command lines match in the above configurations as much as possible, and we accept any differences. We have reviewed any binary differences that result in the official builds and accepted them. The GN files are the “source of truth” for the build, and normal chromium developers normally do not need to touch GYP files to keep things working. We have replacements for the hybrid “msvs-ninja” and “xcode-ninja” configurations that GYP can currently build.

The difference between “mostly done” and “done” exists to cover any issues we haven't yet identified :)

We do not currently plan to support full native XCode or Visual Studio generation from GN. It is theoretically possible to support such things, so we would at least look at patches adding the functionality.

How can I help?

Check to see if your targets build under GN yet. If they don't, volunteer to help convert them!

17 Nov 2014. We are updating the stuff we use to track progress. Watch this space and chromium-dev@ for more info!.

I want more info on GN!

Read these links: