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

Issue 788193003: Create a build_config header file. (Closed)

Created:
6 years ago by teravest
Modified:
5 years, 11 months ago
CC:
native-client-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Create a build_config header file. This introduces a build_config.h which provides some preprocessor defines provided by build systems. Defines from the build system still take precedence as a means for rolling this out slowly. BUG=https://code.google.com/p/chromium/issues/detail?id=440012 Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=916e3c83dcf343d00aff40621afcc58860419648

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fixes for mseaborn, rebase w hidehiko's change #

Patch Set 3 : Fix for pnacl-translator build failure #

Patch Set 4 : Support scons windows as well. #

Total comments: 2

Patch Set 5 : Move to forced includes (unresolved external errors on Win) #

Patch Set 6 : Set ASFLAGS on all platforms #

Patch Set 7 : Include build_config from nacl_asm #

Patch Set 8 : Restore original mac ASFLAGS #

Patch Set 9 : initial gypi change #

Patch Set 10 : windows gypi fix #

Patch Set 11 : attempted ARM fix #

Patch Set 12 : mac gypi #

Patch Set 13 : mac gypi2 #

Total comments: 15

Patch Set 14 : fixes for mseaborn except untrusted #

Patch Set 15 : #

Patch Set 16 : force include for nacl_env #

Patch Set 17 : Fix includability test with FilterOut #

Patch Set 18 : no os defines in sconstruct #

Patch Set 19 : Build errors when removing arch/subarch for nacl_env #

Patch Set 20 : Support __pnacl__ in build_config #

Patch Set 21 : pnacl fix? #

Patch Set 22 : Restore NACL_BUILD_ARCH / NACL_BUILD_SUBARCH for nacl_env #

Patch Set 23 : pnacl bias #

Patch Set 24 : Restore NACL_BUILD_ARCH / NACL_BUILD_SUBARCH for nacl_env #

Total comments: 15

Patch Set 25 : fixes for mseaborn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -48 lines) Patch
M SConstruct View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 9 chunks +17 lines, -30 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 7 chunks +8 lines, -18 lines 0 comments Download
A src/include/build_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +79 lines, -0 lines 0 comments Download
M src/include/nacl_asm.h View 1 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tests/includability/nacl.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (27 generated)
teravest
6 years ago (2014-12-10 16:59:30 UTC) #2
Mark Seaborn
> This change currently only changes the behavior for scons linux builds. Good idea. > ...
6 years ago (2014-12-11 16:11:41 UTC) #3
teravest
My concern about include ordering is that this makes some include sections a little ugly, ...
6 years ago (2014-12-15 20:08:36 UTC) #20
Mark Seaborn
On 15 December 2014 at 12:08, <teravest@chromium.org> wrote: > My concern about include ordering is ...
6 years ago (2014-12-16 18:54:14 UTC) #21
teravest
Oh, gross. :( I tried enabling C4668, but I'm unsurprisingly hitting some include warnings I ...
6 years ago (2014-12-17 17:09:50 UTC) #22
Mark Seaborn
On 17 December 2014 at 09:09, <teravest@chromium.org> wrote: > Oh, gross. :( > I tried ...
6 years ago (2014-12-17 18:59:06 UTC) #23
teravest
On 2014/12/17 18:59:06, Mark Seaborn wrote: > On 17 December 2014 at 09:09, <mailto:teravest@chromium.org> wrote: ...
6 years ago (2014-12-18 16:49:32 UTC) #24
Mark Seaborn
On 18 December 2014 at 08:49, <teravest@chromium.org> wrote: > On 2014/12/17 18:59:06, Mark Seaborn wrote: ...
6 years ago (2014-12-18 17:46:35 UTC) #25
teravest
I've modified this change to use build_config.h for scons Windows builds as well. It now ...
6 years ago (2014-12-19 17:35:07 UTC) #26
Mark Seaborn
https://codereview.chromium.org/788193003/diff/360001/SConstruct File SConstruct (right): https://codereview.chromium.org/788193003/diff/360001/SConstruct#newcode2460 SConstruct:2460: '$SOURCE_ROOT/native_client/src/include/build_config.h'] Can you put '/FI' on the same line ...
6 years ago (2014-12-19 17:46:19 UTC) #27
teravest
On 2014/12/19 17:46:19, Mark Seaborn wrote: > https://codereview.chromium.org/788193003/diff/360001/SConstruct > File SConstruct (right): > > https://codereview.chromium.org/788193003/diff/360001/SConstruct#newcode2460 ...
5 years, 11 months ago (2014-12-29 17:25:03 UTC) #35
teravest
On 2014/12/29 17:25:03, teravest wrote: > On 2014/12/19 17:46:19, Mark Seaborn wrote: > > https://codereview.chromium.org/788193003/diff/360001/SConstruct ...
5 years, 11 months ago (2014-12-29 17:25:55 UTC) #36
Mark Seaborn
Don't forget to update the commit message to refer to build_config.h. https://codereview.chromium.org/788193003/diff/660001/SConstruct File SConstruct (right): ...
5 years, 11 months ago (2014-12-29 17:51:04 UTC) #37
teravest
https://codereview.chromium.org/788193003/diff/660001/SConstruct File SConstruct (right): https://codereview.chromium.org/788193003/diff/660001/SConstruct#newcode2460 SConstruct:2460: # build_config.h is injected as a header in all ...
5 years, 11 months ago (2014-12-29 22:29:29 UTC) #39
Mark Seaborn
https://codereview.chromium.org/788193003/diff/660001/SConstruct File SConstruct (right): https://codereview.chromium.org/788193003/diff/660001/SConstruct#newcode3112 SConstruct:3112: ['NACL_BUILD_ARCH', '${BUILD_ARCHITECTURE}' ], On 2014/12/29 22:29:28, teravest wrote: > ...
5 years, 11 months ago (2015-01-02 04:18:31 UTC) #40
teravest
On 2015/01/02 04:18:31, Mark Seaborn wrote: > https://codereview.chromium.org/788193003/diff/660001/SConstruct > File SConstruct (right): > > https://codereview.chromium.org/788193003/diff/660001/SConstruct#newcode3112 ...
5 years, 11 months ago (2015-01-05 16:50:20 UTC) #41
Mark Seaborn
On 5 January 2015 at 08:50, <teravest@chromium.org> wrote: > On 2015/01/02 04:18:31, Mark Seaborn wrote: ...
5 years, 11 months ago (2015-01-05 18:20:20 UTC) #42
teravest
On 2015/01/05 18:20:20, Mark Seaborn wrote: > On 5 January 2015 at 08:50, <mailto:teravest@chromium.org> wrote: ...
5 years, 11 months ago (2015-01-05 22:21:55 UTC) #44
Mark Seaborn
On 5 January 2015 at 14:21, <teravest@chromium.org> wrote: > I removed the OS defines from ...
5 years, 11 months ago (2015-01-06 00:59:19 UTC) #45
teravest
For now, I think I have to set NACL_BUILD_ARCH / NACL_BUILD_SUBARCH in SConstruct for the ...
5 years, 11 months ago (2015-01-06 16:47:55 UTC) #46
Mark Seaborn
On 6 January 2015 at 08:47, <teravest@chromium.org> wrote: > For now, I think I have ...
5 years, 11 months ago (2015-01-06 17:15:37 UTC) #47
teravest
On 2015/01/06 17:15:37, Mark Seaborn wrote: > On 6 January 2015 at 08:47, <mailto:teravest@chromium.org> wrote: ...
5 years, 11 months ago (2015-01-06 18:07:29 UTC) #48
Mark Seaborn
On 6 January 2015 at 10:07, <teravest@chromium.org> wrote: > On 2015/01/06 17:15:37, Mark Seaborn wrote: ...
5 years, 11 months ago (2015-01-06 18:31:54 UTC) #49
teravest
On 2015/01/06 18:31:54, Mark Seaborn wrote: > On 6 January 2015 at 10:07, <mailto:teravest@chromium.org> wrote: ...
5 years, 11 months ago (2015-01-06 21:10:39 UTC) #50
Mark Seaborn
LGTM. Please check that this works OK in Chromium before committing. https://codereview.chromium.org/788193003/diff/910001/SConstruct File SConstruct (left): ...
5 years, 11 months ago (2015-01-07 20:52:39 UTC) #51
Mark Seaborn
https://codereview.chromium.org/788193003/diff/910001/src/include/build_config.h File src/include/build_config.h (right): https://codereview.chromium.org/788193003/diff/910001/src/include/build_config.h#newcode43 src/include/build_config.h:43: !defined(NACL_BUILD_SUBARCH) On 2015/01/07 20:52:39, Mark Seaborn wrote: > Indent ...
5 years, 11 months ago (2015-01-07 23:22:34 UTC) #52
teravest
I patched this into a local chromium build and browser_tests built successfully. https://codereview.chromium.org/788193003/diff/910001/SConstruct File SConstruct ...
5 years, 11 months ago (2015-01-08 17:17:13 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788193003/930001
5 years, 11 months ago (2015-01-08 21:31:02 UTC) #55
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 23:17:37 UTC) #56
Message was sent while issue was closed.
Committed patchset #25 (id:930001) as
http://src.chromium.org/viewvc/native_client?view=rev&revision=916e3c83dcf343...

Powered by Google App Engine
This is Rietveld 408576698