|
GYP generator for GN.
This creates a GYP generator for GN. The GN build is run twice, once for debug and once for release mode. The resulting targets are paired to find the debug/release version of each one, and we write out the results as a GYP file.
Since a GN build can change anything based on the debug/release status, including changing the file list, and GYP can't there are a bunch of checks to make sure that the source files and deps don't vary between the debug and release version of the same target.
I split the Setup class apart so I can make duplicate Setup classes base on an original one (I use this to configure a release build based on the debug one). I added some copy constructors to the necessary classes so this would work.
This reads in the GYP_DEFINES and configures the GN build in the same way. The mapping between GYP_DEFINES and gl flags is hardcoded. I had to write some parsing code for the GYP_DEFINES which is unfortunate.
I added a new GN variable "gyp_file" for targets to set the GYP file that they should be written to.
I added a parameter for the Windows SDK path that matches the GYP build.
This removes the old "GYP" command.
I commented out all of the grit rules. These aren't helping anything right now and just slow down testing.
BUG= 307571
R=scottmg@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228933
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1203 lines, -505 lines) |
Patch |
 |
M |
tools/gn/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/args.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/args.cc
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/gn/build_settings.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+2 lines, -15 lines |
0 comments
|
Download
|
 |
M |
tools/gn/build_settings.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/command_gyp.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+251 lines, -298 lines |
0 comments
|
Download
|
 |
M |
tools/gn/escape.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/escape.cc
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/gn.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/gyp_binary_target_writer.h
|
View
|
1
2
3
4
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/gyp_binary_target_writer.cc
|
View
|
1
2
3
4
|
1 chunk |
+291 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/gyp_helper.h
|
View
|
1
2
3
4
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/gyp_helper.cc
|
View
|
1
2
|
1 chunk |
+105 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/gyp_target_writer.h
|
View
|
1
2
3
4
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/gyp_target_writer.cc
|
View
|
1
2
3
4
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_binary_target_writer.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_build_writer.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_target_writer.cc
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/build/config/BUILDCONFIG.gn
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/build/config/win/BUILD.gn
|
View
|
1
2
3
4
5
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/chrome/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+106 lines, -106 lines |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/net/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/gn/secondary/testing/BUILD.gn
|
View
|
2
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/setup.h
|
View
|
1
2
3
4
|
3 chunks |
+56 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/gn/setup.cc
|
View
|
1
2
3
4
|
3 chunks |
+68 lines, -27 lines |
0 comments
|
Download
|
 |
M |
tools/gn/source_dir.cc
|
View
|
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/source_file.cc
|
View
|
|
1 chunk |
+7 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/target_generator.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target_generator.cc
|
View
|
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/variables.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/variables.cc
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|