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

Side by Side Diff: build/common.gypi

Issue 8716011: Move use_skia_on_mac setting into its own gypi file, so that WebKit scripts can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/use_skia_on_mac.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) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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.
11 'variables': { 11 'variables': {
12 # Putting a variables dict inside another variables dict looks kind of 12 # Putting a variables dict inside another variables dict looks kind of
13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as
14 # variables within the outer variables dict here. This is necessary 14 # variables within the outer variables dict here. This is necessary
15 # to get these variables defined for the conditions within this variables 15 # to get these variables defined for the conditions within this variables
16 # dict that operate on these variables (e.g., for setting 'toolkit_views', 16 # dict that operate on these variables (e.g., for setting 'toolkit_views',
17 # we need to have 'chromeos' already set). 17 # we need to have 'chromeos' already set).
18 'variables': { 18 'variables': {
19 'variables': { 19 'variables': {
20 'includes': [
21 'use_skia_on_mac.gypi',
22 ],
20 'variables': { 23 'variables': {
21 # Whether we're building a ChromeOS build. 24 # Whether we're building a ChromeOS build.
22 'chromeos%': 0, 25 'chromeos%': 0,
23 26
24 # Whether we are using Views Toolkit 27 # Whether we are using Views Toolkit
25 'toolkit_views%': 0, 28 'toolkit_views%': 0,
26 29
27 # Whether the compositor is enabled on views. 30 # Whether the compositor is enabled on views.
28 'views_compositor%': 0, 31 'views_compositor%': 0,
29 32
30 # Whether or not we are building with the Aura window manager. 33 # Whether or not we are building with the Aura window manager.
31 'use_aura%': 0, 34 'use_aura%': 0,
32 35
33 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 36 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803
34 'use_openssl%': 0, 37 'use_openssl%': 0,
35 38
36 # Disable Virtual keyboard support by default. 39 # Disable Virtual keyboard support by default.
37 'use_virtual_keyboard%': 0, 40 'use_virtual_keyboard%': 0,
41
42 # Default setting for use_skia on mac platform.
43 # This is typically overridden in use_skia_on_mac.gypi.
44 'use_skia_on_mac%': 0,
38 }, 45 },
39 # Copy conditionally-set variables out one scope. 46 # Copy conditionally-set variables out one scope.
40 'chromeos%': '<(chromeos)', 47 'chromeos%': '<(chromeos)',
41 'views_compositor%': '<(views_compositor)', 48 'views_compositor%': '<(views_compositor)',
42 'use_aura%': '<(use_aura)', 49 'use_aura%': '<(use_aura)',
43 'use_openssl%': '<(use_openssl)', 50 'use_openssl%': '<(use_openssl)',
44 'use_virtual_keyboard%': '<(use_virtual_keyboard)', 51 'use_virtual_keyboard%': '<(use_virtual_keyboard)',
52 'use_skia_on_mac%': '<(use_skia_on_mac)',
45 53
46 # WebKit compositor for ui 54 # WebKit compositor for ui
47 'use_webkit_compositor%': 0, 55 'use_webkit_compositor%': 0,
48 56
49 # Compute the architecture that we're building on. 57 # Compute the architecture that we're building on.
50 'conditions': [ 58 'conditions': [
51 [ 'OS=="win" or OS=="mac"', { 59 [ 'OS=="win" or OS=="mac"', {
52 'host_arch%': 'ia32', 60 'host_arch%': 'ia32',
53 }, { 61 }, {
54 # This handles the Unix platforms for which there is some support. 62 # This handles the Unix platforms for which there is some support.
(...skipping 19 matching lines...) Expand all
74 82
75 # Copy conditionally-set variables out one scope. 83 # Copy conditionally-set variables out one scope.
76 'chromeos%': '<(chromeos)', 84 'chromeos%': '<(chromeos)',
77 'host_arch%': '<(host_arch)', 85 'host_arch%': '<(host_arch)',
78 'toolkit_views%': '<(toolkit_views)', 86 'toolkit_views%': '<(toolkit_views)',
79 'views_compositor%': '<(views_compositor)', 87 'views_compositor%': '<(views_compositor)',
80 'use_webkit_compositor%': '<(use_webkit_compositor)', 88 'use_webkit_compositor%': '<(use_webkit_compositor)',
81 'use_aura%': '<(use_aura)', 89 'use_aura%': '<(use_aura)',
82 'use_openssl%': '<(use_openssl)', 90 'use_openssl%': '<(use_openssl)',
83 'use_virtual_keyboard%': '<(use_virtual_keyboard)', 91 'use_virtual_keyboard%': '<(use_virtual_keyboard)',
92 'use_skia_on_mac%': '<(use_skia_on_mac)',
84 93
85 # The variable touchui is still present (until all clean up is done). 94 # The variable touchui is still present (until all clean up is done).
86 'touchui%': 0, 95 'touchui%': 0,
87 96
88 # We used to provide a variable for changing how libraries were built. 97 # We used to provide a variable for changing how libraries were built.
89 # This variable remains until we can clean up all the users. 98 # This variable remains until we can clean up all the users.
90 # This needs to be one nested variables dict in so that dependent 99 # This needs to be one nested variables dict in so that dependent
91 # gyp files can make use of it in their outer variables. (Yikes!) 100 # gyp files can make use of it in their outer variables. (Yikes!)
92 # http://code.google.com/p/chromium/issues/detail?id=83308 101 # http://code.google.com/p/chromium/issues/detail?id=83308
93 'library%': 'static_library', 102 'library%': 'static_library',
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 # infrastructure (trybots etc.). Enable by setting to 1 in 237 # infrastructure (trybots etc.). Enable by setting to 1 in
229 # ~/.gyp/include.gypi or via the GYP command line for ~20-25% 238 # ~/.gyp/include.gypi or via the GYP command line for ~20-25%
230 # faster builds. 239 # faster builds.
231 'chromium_win_pch%': 0, 240 'chromium_win_pch%': 0,
232 241
233 'conditions': [ 242 'conditions': [
234 # TODO(epoger): Figure out how to set use_skia=1 for Mac outside of 243 # TODO(epoger): Figure out how to set use_skia=1 for Mac outside of
235 # the 'conditions' clause. Initial attempts resulted in chromium and 244 # the 'conditions' clause. Initial attempts resulted in chromium and
236 # webkit disagreeing on its setting. 245 # webkit disagreeing on its setting.
237 ['OS=="mac"', { 246 ['OS=="mac"', {
238 'use_skia%': 0, 247 'use_skia%': '<(use_skia_on_mac)',
239 # Mac uses clang by default, so turn on the plugin as well. 248 # Mac uses clang by default, so turn on the plugin as well.
240 'clang_use_chrome_plugins%': 1, 249 'clang_use_chrome_plugins%': 1,
241 }, { 250 }, {
242 'use_skia%': 1, 251 'use_skia%': 1,
243 }], 252 }],
244 253
245 # A flag for POSIX platforms 254 # A flag for POSIX platforms
246 ['OS=="win"', { 255 ['OS=="win"', {
247 'os_posix%': 0, 256 'os_posix%': 0,
248 }, { 257 }, {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 368 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
360 'use_skia%': '<(use_skia)', 369 'use_skia%': '<(use_skia)',
361 'use_x11%': '<(use_x11)', 370 'use_x11%': '<(use_x11)',
362 'use_gnome_keyring%': '<(use_gnome_keyring)', 371 'use_gnome_keyring%': '<(use_gnome_keyring)',
363 'linux_fpic%': '<(linux_fpic)', 372 'linux_fpic%': '<(linux_fpic)',
364 'enable_flapper_hacks%': '<(enable_flapper_hacks)', 373 'enable_flapper_hacks%': '<(enable_flapper_hacks)',
365 'enable_pepper_threading%': '<(enable_pepper_threading)', 374 'enable_pepper_threading%': '<(enable_pepper_threading)',
366 'chromeos%': '<(chromeos)', 375 'chromeos%': '<(chromeos)',
367 'touchui%': '<(touchui)', 376 'touchui%': '<(touchui)',
368 'use_virtual_keyboard%': '<(use_virtual_keyboard)', 377 'use_virtual_keyboard%': '<(use_virtual_keyboard)',
378 'use_skia_on_mac%': '<(use_skia_on_mac)',
369 'use_xi2_mt%':'<(use_xi2_mt)', 379 'use_xi2_mt%':'<(use_xi2_mt)',
370 'file_manager_extension%': '<(file_manager_extension)', 380 'file_manager_extension%': '<(file_manager_extension)',
371 'webui_task_manager%': '<(webui_task_manager)', 381 'webui_task_manager%': '<(webui_task_manager)',
372 'inside_chromium_build%': '<(inside_chromium_build)', 382 'inside_chromium_build%': '<(inside_chromium_build)',
373 'fastbuild%': '<(fastbuild)', 383 'fastbuild%': '<(fastbuild)',
374 'strip_tests%': '<(strip_tests)', 384 'strip_tests%': '<(strip_tests)',
375 'dcheck_always_on%': '<(dcheck_always_on)', 385 'dcheck_always_on%': '<(dcheck_always_on)',
376 'python_ver%': '<(python_ver)', 386 'python_ver%': '<(python_ver)',
377 'armv7%': '<(armv7)', 387 'armv7%': '<(armv7)',
378 'arm_neon%': '<(arm_neon)', 388 'arm_neon%': '<(arm_neon)',
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2647 # settings in target dicts. SYMROOT is a special case, because many other 2657 # settings in target dicts. SYMROOT is a special case, because many other
2648 # Xcode variables depend on it, including variables such as 2658 # Xcode variables depend on it, including variables such as
2649 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2659 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2650 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2660 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2651 # files to appear (when present) in the UI as actual files and not red 2661 # files to appear (when present) in the UI as actual files and not red
2652 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2662 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2653 # and therefore SYMROOT, needs to be set at the project level. 2663 # and therefore SYMROOT, needs to be set at the project level.
2654 'SYMROOT': '<(DEPTH)/xcodebuild', 2664 'SYMROOT': '<(DEPTH)/xcodebuild',
2655 }, 2665 },
2656 } 2666 }
OLDNEW
« no previous file with comments | « no previous file | build/use_skia_on_mac.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698