OLD | NEW |
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. |
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': [ | 20 'includes': [ |
21 'use_skia_on_mac.gypi', | 21 'use_skia_on_mac.gypi', |
22 ], | 22 ], |
23 'variables': { | 23 'variables': { |
24 # Whether we're building a ChromeOS build. | 24 # Whether we're building a ChromeOS build. |
25 'chromeos%': 0, | 25 'chromeos%': 0, |
26 | 26 |
27 # Whether we are using Views Toolkit | 27 # Whether we are using Views Toolkit |
28 'toolkit_views%': 0, | 28 'toolkit_views%': 0, |
29 | 29 |
30 # Whether the compositor is enabled on views. | |
31 'views_compositor%': 0, | |
32 | |
33 # Whether or not we are using the Aura windowing framework. | 30 # Whether or not we are using the Aura windowing framework. |
34 'use_aura%': 0, | 31 'use_aura%': 0, |
35 | 32 |
36 # Whether or not we are building the Ash shell. | 33 # Whether or not we are building the Ash shell. |
37 'use_ash%': 0, | 34 'use_ash%': 0, |
38 | 35 |
39 # 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 |
40 'use_openssl%': 0, | 37 'use_openssl%': 0, |
41 | 38 |
42 # Disable Virtual keyboard support by default. | 39 # Disable Virtual keyboard support by default. |
43 'use_virtual_keyboard%': 0, | 40 'use_virtual_keyboard%': 0, |
44 | 41 |
45 # Default setting for use_skia on mac platform. | 42 # Default setting for use_skia on mac platform. |
46 # This is typically overridden in use_skia_on_mac.gypi. | 43 # This is typically overridden in use_skia_on_mac.gypi. |
47 'use_skia_on_mac%': 0, | 44 'use_skia_on_mac%': 0, |
48 }, | 45 }, |
49 # Copy conditionally-set variables out one scope. | 46 # Copy conditionally-set variables out one scope. |
50 'chromeos%': '<(chromeos)', | 47 'chromeos%': '<(chromeos)', |
51 'views_compositor%': '<(views_compositor)', | |
52 'use_aura%': '<(use_aura)', | 48 'use_aura%': '<(use_aura)', |
53 'use_ash%': '<(use_ash)', | 49 'use_ash%': '<(use_ash)', |
54 'use_openssl%': '<(use_openssl)', | 50 'use_openssl%': '<(use_openssl)', |
55 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 51 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
56 'use_skia_on_mac%': '<(use_skia_on_mac)', | 52 'use_skia_on_mac%': '<(use_skia_on_mac)', |
57 | 53 |
58 # Compute the architecture that we're building on. | 54 # Compute the architecture that we're building on. |
59 'conditions': [ | 55 'conditions': [ |
60 [ 'OS=="win" or OS=="mac"', { | 56 [ 'OS=="win" or OS=="mac"', { |
61 'host_arch%': 'ia32', | 57 'host_arch%': 'ia32', |
62 }, { | 58 }, { |
63 # This handles the Unix platforms for which there is some support. | 59 # This handles the Unix platforms for which there is some support. |
64 # Anything else gets passed through, which probably won't work very | 60 # Anything else gets passed through, which probably won't work very |
65 # well; such hosts should pass an explicit target_arch to gyp. | 61 # well; such hosts should pass an explicit target_arch to gyp. |
66 'host_arch%': | 62 'host_arch%': |
67 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', | 63 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', |
68 }], | 64 }], |
69 | 65 |
70 # Ash requires Aura. | 66 # Ash requires Aura. |
71 ['use_ash==1', { | 67 ['use_ash==1', { |
72 'use_aura%': 1, | 68 'use_aura%': 1, |
73 }], | 69 }], |
74 | 70 |
75 # Set default value of toolkit_views based on OS. | 71 # Set default value of toolkit_views based on OS. |
76 ['OS=="win" or chromeos==1 or use_aura==1', { | 72 ['OS=="win" or chromeos==1 or use_aura==1', { |
77 'toolkit_views%': 1, | 73 'toolkit_views%': 1, |
78 }, { | 74 }, { |
79 'toolkit_views%': 0, | 75 'toolkit_views%': 0, |
80 }], | 76 }], |
81 | |
82 # Use the views compositor when using the Aura window manager. | |
83 ['use_aura==1', { | |
84 'views_compositor%': 1, | |
85 }], | |
86 ], | 77 ], |
87 }, | 78 }, |
88 | 79 |
89 # Copy conditionally-set variables out one scope. | 80 # Copy conditionally-set variables out one scope. |
90 'chromeos%': '<(chromeos)', | 81 'chromeos%': '<(chromeos)', |
91 'host_arch%': '<(host_arch)', | 82 'host_arch%': '<(host_arch)', |
92 'toolkit_views%': '<(toolkit_views)', | 83 'toolkit_views%': '<(toolkit_views)', |
93 'views_compositor%': '<(views_compositor)', | |
94 'use_aura%': '<(use_aura)', | 84 'use_aura%': '<(use_aura)', |
95 'use_ash%': '<(use_ash)', | 85 'use_ash%': '<(use_ash)', |
96 'use_openssl%': '<(use_openssl)', | 86 'use_openssl%': '<(use_openssl)', |
97 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 87 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
98 'use_skia_on_mac%': '<(use_skia_on_mac)', | 88 'use_skia_on_mac%': '<(use_skia_on_mac)', |
99 | 89 |
100 # We used to provide a variable for changing how libraries were built. | 90 # We used to provide a variable for changing how libraries were built. |
101 # This variable remains until we can clean up all the users. | 91 # This variable remains until we can clean up all the users. |
102 # This needs to be one nested variables dict in so that dependent | 92 # This needs to be one nested variables dict in so that dependent |
103 # gyp files can make use of it in their outer variables. (Yikes!) | 93 # gyp files can make use of it in their outer variables. (Yikes!) |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 'webui_task_manager%': 1, | 359 'webui_task_manager%': 1, |
370 }], | 360 }], |
371 | 361 |
372 ['OS=="android"', { | 362 ['OS=="android"', { |
373 'proprietary_codecs%': 1, | 363 'proprietary_codecs%': 1, |
374 'enable_webrtc%': 0, | 364 'enable_webrtc%': 0, |
375 }], | 365 }], |
376 | 366 |
377 # Use GPU accelerated cross process image transport by default | 367 # Use GPU accelerated cross process image transport by default |
378 # on linux builds with the Aura window manager | 368 # on linux builds with the Aura window manager |
379 ['views_compositor==1 and OS=="linux"', { | 369 ['use_aura==1 and OS=="linux"', { |
380 'ui_compositor_image_transport%': 1, | 370 'ui_compositor_image_transport%': 1, |
381 }, { | 371 }, { |
382 'ui_compositor_image_transport%': 0, | 372 'ui_compositor_image_transport%': 0, |
383 }], | 373 }], |
384 | 374 |
385 # Turn precompiled headers on by default for VS 2010. | 375 # Turn precompiled headers on by default for VS 2010. |
386 ['OS=="win" and MSVS_VERSION=="2010"', { | 376 ['OS=="win" and MSVS_VERSION=="2010"', { |
387 'chromium_win_pch%': 1 | 377 'chromium_win_pch%': 1 |
388 }], | 378 }], |
389 | 379 |
390 ['use_aura==1 or chromeos==1', { | 380 ['use_aura==1 or chromeos==1', { |
391 'enable_plugin_installation%': 0, | 381 'enable_plugin_installation%': 0, |
392 }, { | 382 }, { |
393 'enable_plugin_installation%': 1, | 383 'enable_plugin_installation%': 1, |
394 }], | 384 }], |
395 ], | 385 ], |
396 }, | 386 }, |
397 | 387 |
398 # Copy conditionally-set variables out one scope. | 388 # Copy conditionally-set variables out one scope. |
399 'branding%': '<(branding)', | 389 'branding%': '<(branding)', |
400 'buildtype%': '<(buildtype)', | 390 'buildtype%': '<(buildtype)', |
401 'target_arch%': '<(target_arch)', | 391 'target_arch%': '<(target_arch)', |
402 'host_arch%': '<(host_arch)', | 392 'host_arch%': '<(host_arch)', |
403 'library%': 'static_library', | 393 'library%': 'static_library', |
404 'toolkit_views%': '<(toolkit_views)', | 394 'toolkit_views%': '<(toolkit_views)', |
405 'views_compositor%': '<(views_compositor)', | |
406 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 395 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
407 'use_webkit_compositor%': '<(use_webkit_compositor)', | 396 'use_webkit_compositor%': '<(use_webkit_compositor)', |
408 'use_aura%': '<(use_aura)', | 397 'use_aura%': '<(use_aura)', |
409 'use_ash%': '<(use_ash)', | 398 'use_ash%': '<(use_ash)', |
410 'use_openssl%': '<(use_openssl)', | 399 'use_openssl%': '<(use_openssl)', |
411 'use_nss%': '<(use_nss)', | 400 'use_nss%': '<(use_nss)', |
412 'os_bsd%': '<(os_bsd)', | 401 'os_bsd%': '<(os_bsd)', |
413 'os_posix%': '<(os_posix)', | 402 'os_posix%': '<(os_posix)', |
414 'use_glib%': '<(use_glib)', | 403 'use_glib%': '<(use_glib)', |
415 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 404 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 # TODO(dpranke): We can't incrementally link chrome when | 1026 # TODO(dpranke): We can't incrementally link chrome when |
1038 # content is being built as a DLL because chrome links in | 1027 # content is being built as a DLL because chrome links in |
1039 # webkit_glue and webkit_glue depends on symbols defined in | 1028 # webkit_glue and webkit_glue depends on symbols defined in |
1040 # content. We can remove this when we fix glue. | 1029 # content. We can remove this when we fix glue. |
1041 # See http://code.google.com/p/chromium/issues/detail?id=98755 . | 1030 # See http://code.google.com/p/chromium/issues/detail?id=98755 . |
1042 'defines': ['COMPILE_CONTENT_STATICALLY'], | 1031 'defines': ['COMPILE_CONTENT_STATICALLY'], |
1043 }], | 1032 }], |
1044 ['toolkit_views==1', { | 1033 ['toolkit_views==1', { |
1045 'defines': ['TOOLKIT_VIEWS=1'], | 1034 'defines': ['TOOLKIT_VIEWS=1'], |
1046 }], | 1035 }], |
1047 ['views_compositor==1', { | |
1048 'defines': ['VIEWS_COMPOSITOR=1'], | |
1049 }], | |
1050 ['ui_compositor_image_transport==1', { | 1036 ['ui_compositor_image_transport==1', { |
1051 'defines': ['UI_COMPOSITOR_IMAGE_TRANSPORT'], | 1037 'defines': ['UI_COMPOSITOR_IMAGE_TRANSPORT'], |
1052 }], | 1038 }], |
1053 ['use_webkit_compositor==1', { | 1039 ['use_webkit_compositor==1', { |
1054 'defines': ['USE_WEBKIT_COMPOSITOR=1'], | 1040 'defines': ['USE_WEBKIT_COMPOSITOR=1'], |
1055 }], | 1041 }], |
1056 ['use_aura==1', { | 1042 ['use_aura==1', { |
1057 'defines': ['USE_AURA=1'], | 1043 'defines': ['USE_AURA=1'], |
1058 }], | 1044 }], |
1059 ['use_ash==1', { | 1045 ['use_ash==1', { |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2748 # settings in target dicts. SYMROOT is a special case, because many other | 2734 # settings in target dicts. SYMROOT is a special case, because many other |
2749 # Xcode variables depend on it, including variables such as | 2735 # Xcode variables depend on it, including variables such as |
2750 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2736 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2751 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2737 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2752 # files to appear (when present) in the UI as actual files and not red | 2738 # files to appear (when present) in the UI as actual files and not red |
2753 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2739 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2754 # and therefore SYMROOT, needs to be set at the project level. | 2740 # and therefore SYMROOT, needs to be set at the project level. |
2755 'SYMROOT': '<(DEPTH)/xcodebuild', | 2741 'SYMROOT': '<(DEPTH)/xcodebuild', |
2756 }, | 2742 }, |
2757 } | 2743 } |
OLD | NEW |