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

Side by Side Diff: build/common.gypi

Issue 9288078: build/common.gypi: split out filename exclude rules (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ok Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/filename_rules.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 ], 1320 ],
1321 }], 1321 }],
1322 [ 'OS=="mac"', { 1322 [ 'OS=="mac"', {
1323 'xcode_settings': { 1323 'xcode_settings': {
1324 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', 1324 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
1325 'WARNING_CFLAGS!': ['-Wall', '-Wextra'], 1325 'WARNING_CFLAGS!': ['-Wall', '-Wextra'],
1326 }, 1326 },
1327 }], 1327 }],
1328 ], 1328 ],
1329 }, { 1329 }, {
1330 'includes': [
1331 # Rules for excluding e.g. foo_win.cc from the build on non-Windows.
1332 'filename_rules.gypi',
1333 ],
1330 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the 1334 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the
1331 # C99 macros on Mac and Linux. 1335 # C99 macros on Mac and Linux.
1332 'defines': [ 1336 'defines': [
1333 '__STDC_FORMAT_MACROS', 1337 '__STDC_FORMAT_MACROS',
1334 ], 1338 ],
1335 'conditions': [ 1339 'conditions': [
1336 ['OS!="win"', {
1337 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
1338 ['exclude', '(^|/)win/'],
1339 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
1340 }],
1341 ['OS!="mac"', {
1342 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
1343 ['exclude', '(^|/)(cocoa|mac)/'],
1344 ['exclude', '\\.mm?$' ] ],
1345 }],
1346 ['use_x11!=1', {
1347 'sources/': [
1348 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
1349 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
1350 ],
1351 }],
1352 ['toolkit_uses_gtk!=1', {
1353 'sources/': [
1354 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
1355 ['exclude', '(^|/)gtk/'],
1356 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
1357 ],
1358 }],
1359 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
1360 'sources/': [
1361 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
1362 ],
1363 }],
1364 ['use_wayland!=1', {
1365 'sources/': [
1366 ['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'],
1367 ['exclude', '(^|/)wayland/'],
1368 ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'],
1369 ],
1370 }],
1371 # Do not exclude the linux files on *BSD since most of them can be
1372 # shared at this point.
1373 # In case a file is not needed, it is going to be excluded later on.
1374 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
1375 'sources/': [
1376 ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
1377 ['exclude', '(^|/)linux/'],
1378 ],
1379 }],
1380 ['OS!="android"', {
1381 'sources/': [
1382 ['exclude', '_android(_unittest)?\\.cc$'],
1383 ['exclude', '(^|/)android/'],
1384 ],
1385 }],
1386 # We use "POSIX" to refer to all non-Windows operating systems.
1387 ['OS=="win"', { 1340 ['OS=="win"', {
1388 'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ],
1389 # turn on warnings for signed/unsigned mismatch on chromium code. 1341 # turn on warnings for signed/unsigned mismatch on chromium code.
1390 'msvs_settings': { 1342 'msvs_settings': {
1391 'VCCLCompilerTool': { 1343 'VCCLCompilerTool': {
1392 'AdditionalOptions': ['/we4389'], 1344 'AdditionalOptions': ['/we4389'],
1393 }, 1345 },
1394 }, 1346 },
1395 }], 1347 }],
1396 ['OS=="win" and component=="shared_library"', { 1348 ['OS=="win" and component=="shared_library"', {
1397 'msvs_disabled_warnings': [ 1349 'msvs_disabled_warnings': [
1398 4251, # class 'std::xx' needs to have dll-interface. 1350 4251, # class 'std::xx' needs to have dll-interface.
1399 ], 1351 ],
1400 }], 1352 }],
1401 ['chromeos!=1', {
1402 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
1403 }],
1404 ['toolkit_views==0', {
1405 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
1406 }],
1407 ['use_aura==0', {
1408 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
1409 ['exclude', '(^|/)aura/'],
1410 ]
1411 }],
1412 ['use_aura==0 or use_x11==0', {
1413 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
1414 }],
1415 ['use_aura==0 or OS!="win"', {
1416 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
1417 }],
1418 ], 1353 ],
1419 }], 1354 }],
1420 ], # target_conditions for 'target_defaults' 1355 ], # target_conditions for 'target_defaults'
1421 'default_configuration': 'Debug', 1356 'default_configuration': 'Debug',
1422 'configurations': { 1357 'configurations': {
1423 # VCLinkerTool LinkIncremental values below: 1358 # VCLinkerTool LinkIncremental values below:
1424 # 0 == default 1359 # 0 == default
1425 # 1 == /INCREMENTAL:NO 1360 # 1 == /INCREMENTAL:NO
1426 # 2 == /INCREMENTAL 1361 # 2 == /INCREMENTAL
1427 # Debug links incremental, Release does not. 1362 # Debug links incremental, Release does not.
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2811 # settings in target dicts. SYMROOT is a special case, because many other 2746 # settings in target dicts. SYMROOT is a special case, because many other
2812 # Xcode variables depend on it, including variables such as 2747 # Xcode variables depend on it, including variables such as
2813 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2748 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2814 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2749 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2815 # files to appear (when present) in the UI as actual files and not red 2750 # files to appear (when present) in the UI as actual files and not red
2816 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2751 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2817 # and therefore SYMROOT, needs to be set at the project level. 2752 # and therefore SYMROOT, needs to be set at the project level.
2818 'SYMROOT': '<(DEPTH)/xcodebuild', 2753 'SYMROOT': '<(DEPTH)/xcodebuild',
2819 }, 2754 },
2820 } 2755 }
OLDNEW
« no previous file with comments | « no previous file | build/filename_rules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698