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

Issue 20550003: Move nacl_defines to build.common.gypi. (Closed)

Created:
7 years, 5 months ago by yael.aharon
Modified:
7 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move nacl_defines to build/nacl_defines.gypi. Remove the definition of nacl_defines from chrome.gyp. This will allow including these defines in other gyp files which are not in the chrome layer. This is part of an effort to componentize NaCl code. BUG=244791 R=jam@chromium.org, mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214344

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Try to remove extra code #

Patch Set 3 : Move nacl_defines.gypi #

Patch Set 4 : Move nacl_defines to components/nacl #

Total comments: 1

Patch Set 5 : Remove trailing commas #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -45 lines) Patch
M chrome/chrome.gyp View 1 2 3 5 chunks +1 line, -45 lines 0 comments Download
A components/nacl/nacl_defines.gypi View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
yael.aharon1
Adding nacl_defines to buid/common.gypi did not work, so I created a new gypi file for ...
7 years, 4 months ago (2013-07-27 11:29:47 UTC) #1
yael.aharon1
7 years, 4 months ago (2013-07-27 16:14:20 UTC) #2
Mark Seaborn
https://codereview.chromium.org/20550003/diff/35001/build/nacl_defines.gypi File build/nacl_defines.gypi (right): https://codereview.chromium.org/20550003/diff/35001/build/nacl_defines.gypi#newcode5 build/nacl_defines.gypi:5: { Should this file go in components/nacl, to keep ...
7 years, 4 months ago (2013-07-28 00:41:07 UTC) #3
yael.aharon1
On 2013/07/28 00:41:07, Mark Seaborn wrote: > https://codereview.chromium.org/20550003/diff/35001/build/nacl_defines.gypi > File build/nacl_defines.gypi (right): > > https://codereview.chromium.org/20550003/diff/35001/build/nacl_defines.gypi#newcode5 ...
7 years, 4 months ago (2013-07-28 13:20:20 UTC) #4
Mark Seaborn
On 28 July 2013 06:20, <yael.aharon@chromium.org> wrote: > On 2013/07/28 00:41:07, Mark Seaborn wrote: > ...
7 years, 4 months ago (2013-07-29 15:59:21 UTC) #5
yael.aharon1
On 2013/07/29 15:59:21, Mark Seaborn wrote: > On 28 July 2013 06:20, <mailto:yael.aharon@chromium.org> wrote: > ...
7 years, 4 months ago (2013-07-29 16:11:55 UTC) #6
Mark Seaborn
On 29 July 2013 09:11, <yael.aharon@chromium.org> wrote: > On 2013/07/29 15:59:21, Mark Seaborn wrote: > ...
7 years, 4 months ago (2013-07-29 18:30:28 UTC) #7
yael.aharon1
On 2013/07/29 18:30:28, Mark Seaborn wrote: > On 29 July 2013 09:11, <mailto:yael.aharon@chromium.org> wrote: > ...
7 years, 4 months ago (2013-07-29 18:58:33 UTC) #8
Mark Seaborn
LGTM https://codereview.chromium.org/20550003/diff/66001/components/nacl/nacl_defines.gypi File components/nacl/nacl_defines.gypi (right): https://codereview.chromium.org/20550003/diff/66001/components/nacl/nacl_defines.gypi#newcode14 components/nacl/nacl_defines.gypi:14: },], Nit: write as "}]," rather than "},]," ...
7 years, 4 months ago (2013-07-29 19:41:12 UTC) #9
yael.aharon1
jam@ can you please review the changes to chrome.gyp ? thanks
7 years, 4 months ago (2013-07-29 19:48:59 UTC) #10
jam
On 2013/07/29 19:48:59, yael.aharon1 wrote: > jam@ can you please review the changes to chrome.gyp ...
7 years, 4 months ago (2013-07-29 23:01:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yael.aharon@intel.com/20550003/75001
7 years, 4 months ago (2013-07-30 03:14:17 UTC) #12
yael.aharon
Committed patchset #5 manually as r214344 (presubmit successful).
7 years, 4 months ago (2013-07-30 14:15:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yael.aharon@intel.com/20550003/75001
7 years, 4 months ago (2013-07-30 14:36:04 UTC) #14
commit-bot: I haz the power
7 years, 4 months ago (2013-07-30 14:36:10 UTC) #15
Message was sent while issue was closed.
Failed to apply patch for chrome/chrome.gyp:
While running patch -p1 --forward --force --no-backup-if-mismatch;
  patching file chrome/chrome.gyp
  Hunk #1 FAILED at 44.
  Hunk #2 FAILED at 59.
  Hunk #3 FAILED at 87.
  Hunk #4 FAILED at 108.
  Hunk #5 FAILED at 154.
  5 out of 5 hunks FAILED -- saving rejects to file chrome/chrome.gyp.rej

Patch:       chrome/chrome.gyp
Index: chrome/chrome.gyp
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index
b065db8f547132b191b4c7e487e9cf55c948596e..42922e947c0ae43d9fe18d9c46b49546d7923678
100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -44,11 +44,6 @@
         ],
       }],
       ['OS=="win"', {
-        'nacl_defines': [
-          'NACL_WINDOWS=1',
-          'NACL_LINUX=0',
-          'NACL_OSX=0',
-        ],
         'platform_locale_settings_grd':
             'app/resources/locale_settings_win.grd',
       },],
@@ -59,11 +54,6 @@
         ],
       }],
       ['OS=="linux"', {
-        'nacl_defines': [
-          'NACL_WINDOWS=0',
-          'NACL_LINUX=1',
-          'NACL_OSX=0',
-        ],
         'conditions': [
           ['chromeos==1', {
             'conditions': [
@@ -87,11 +77,6 @@
       },],
       ['OS=="mac"', {
         'tweak_info_plist_path': '../build/mac/tweak_info_plist.py',
-        'nacl_defines': [
-          'NACL_WINDOWS=0',
-          'NACL_LINUX=0',
-          'NACL_OSX=1',
-        ],
         'platform_locale_settings_grd':
             'app/resources/locale_settings_mac.grd',
         'conditions': [
@@ -108,36 +93,6 @@
           }],  # branding
         ],  # conditions
       }],  # OS=="mac"
-      # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
-      # we should figure out a way to unify the settings.
-      ['target_arch=="ia32"', {
-        'nacl_defines': [
-          'NACL_TARGET_SUBARCH=32',
-          'NACL_TARGET_ARCH=x86',
-          'NACL_BUILD_SUBARCH=32',
-          'NACL_BUILD_ARCH=x86',
-        ],
-      }],
-      ['target_arch=="x64"', {
-        'nacl_defines': [
-          'NACL_TARGET_SUBARCH=64',
-          'NACL_TARGET_ARCH=x86',
-          'NACL_BUILD_SUBARCH=64',
-          'NACL_BUILD_ARCH=x86',
-        ],
-      }],
-      ['target_arch=="arm"', {
-        'nacl_defines': [
-          'NACL_BUILD_ARCH=arm',
-          'NACL_BUILD_SUBARCH=32',
-          'NACL_TARGET_ARCH=arm',
-          'NACL_TARGET_SUBARCH=32',
-        ],
-      }],
-      ['target_arch=="mipsel"', {
-        'nacl_defines': [
-        ],
-      }],
     ],  # conditions
   },  # variables
   'includes': [
@@ -154,6 +109,7 @@
     'chrome_installer_util.gypi',
     'chrome_tests_unit.gypi',
     'version.gypi',
+    '../components/nacl/nacl_defines.gypi',
   ],
   'conditions': [
     ['OS!="ios"', {

Powered by Google App Engine
This is Rietveld 408576698