Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2030)

Issue 1207903002: Windows precompiled header support in GN (Closed)

Created:
5 years, 5 months ago by brettw
Modified:
5 years, 5 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Windows precompiled header support in GN. Introduces aprecompiled_header_type flag on a tool to say whether it supports precompiled headers, and flags on configs/targets that allow one to specify which header is precompiled. This does not implement GCC precompiled headers, but the type flag will allow future expansion (the implementation will be mostly separate). Renames SOURCE_CC to SOURCE_CPP to avoid confusion with Toolchain::TYPE_CC (which is actually the C compiler). BUG=297678 Committed: https://crrev.com/3dab5fe87ddb0efe646f6ab393ab07533d75237d Cr-Commit-Position: refs/heads/master@{#336674}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : Scott's grammar nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+935 lines, -195 lines) Patch
M build/config/BUILD.gn View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tools/gn/BUILD.gn View 1 2 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/config_values.h View 1 2 3 chunks +19 lines, -0 lines 0 comments Download
M tools/gn/config_values_extractors.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/config_values_generator.h View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/config_values_generator.cc View 1 2 3 4 5 6 2 chunks +31 lines, -0 lines 0 comments Download
M tools/gn/filesystem_utils.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/function_toolchain.cc View 1 2 3 4 4 chunks +35 lines, -1 line 0 comments Download
M tools/gn/header_checker.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/ninja_binary_target_writer.h View 1 2 3 4 5 6 3 chunks +59 lines, -18 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 1 2 3 4 5 6 10 chunks +394 lines, -114 lines 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 1 2 3 4 10 chunks +96 lines, -33 lines 0 comments Download
M tools/gn/path_output.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M tools/gn/path_output.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/source_file_type.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M tools/gn/source_file_type.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/target.h View 4 chunks +14 lines, -2 lines 0 comments Download
M tools/gn/target.cc View 1 2 3 4 3 chunks +61 lines, -5 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M tools/gn/test_with_scope.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M tools/gn/test_with_scope.cc View 1 2 3 4 2 chunks +10 lines, -13 lines 0 comments Download
M tools/gn/tool.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M tools/gn/tool.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/toolchain.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/variables.h View 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/variables.cc View 1 2 2 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
scottmg
https://codereview.chromium.org/1207903002/diff/60001/tools/gn/config_values_generator.cc File tools/gn/config_values_generator.cc (right): https://codereview.chromium.org/1207903002/diff/60001/tools/gn/config_values_generator.cc#newcode99 tools/gn/config_values_generator.cc:99: "against your #includes rather than a GN-style file name."); ...
5 years, 5 months ago (2015-06-26 22:30:13 UTC) #2
brettw
Ready for real review. https://codereview.chromium.org/1207903002/diff/60001/tools/gn/ninja_binary_target_writer.cc File tools/gn/ninja_binary_target_writer.cc (right): https://codereview.chromium.org/1207903002/diff/60001/tools/gn/ninja_binary_target_writer.cc#newcode323 tools/gn/ninja_binary_target_writer.cc:323: out_ << " /Yc" << ...
5 years, 5 months ago (2015-06-29 21:36:11 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207903002/100001
5 years, 5 months ago (2015-06-29 21:36:36 UTC) #5
scottmg
lgtm https://codereview.chromium.org/1207903002/diff/100001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1207903002/diff/100001/build/config/BUILD.gn#newcode408 build/config/BUILD.gn:408: # Reccommend precompiled headers for targets with more ...
5 years, 5 months ago (2015-06-29 21:49:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207903002/120001
5 years, 5 months ago (2015-06-29 21:55:38 UTC) #9
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-06-29 23:00:22 UTC) #10
commit-bot: I haz the power
5 years, 5 months ago (2015-06-29 23:01:30 UTC) #11
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3dab5fe87ddb0efe646f6ab393ab07533d75237d
Cr-Commit-Position: refs/heads/master@{#336674}

Powered by Google App Engine
This is Rietveld 408576698