Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 'variables': { | 20 'variables': { |
| 21 # Whether we're building a ChromeOS build. | 21 # Whether we're building a ChromeOS build. |
| 22 'chromeos%': 0, | 22 'chromeos%': 0, |
| 23 | 23 |
| 24 # Whether we are using Views Toolkit | 24 # Whether we are using Views Toolkit |
| 25 'toolkit_views%': 0, | 25 'toolkit_views%': 0, |
| 26 | 26 |
| 27 # Disable touch support by default. | |
| 28 'touchui%': 0, | |
| 29 | |
| 30 # Whether the compositor is enabled on views. | 27 # Whether the compositor is enabled on views. |
| 31 'views_compositor%': 0, | 28 'views_compositor%': 0, |
| 32 | 29 |
| 33 # Whether or not we are building with the Aura window manager. | 30 # Whether or not we are building with the Aura window manager. |
| 34 'use_aura%': 0, | 31 'use_aura%': 0, |
| 35 | 32 |
| 36 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 | 33 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 |
| 37 'use_openssl%': 0, | 34 'use_openssl%': 0, |
| 35 | |
| 36 # Disable Virtual keyboard support by default. | |
| 37 'use_virtual_keyboard%': 0, | |
| 38 }, | 38 }, |
| 39 # Copy conditionally-set variables out one scope. | 39 # Copy conditionally-set variables out one scope. |
| 40 'chromeos%': '<(chromeos)', | 40 'chromeos%': '<(chromeos)', |
| 41 'touchui%': '<(touchui)', | |
| 42 'views_compositor%': '<(views_compositor)', | 41 'views_compositor%': '<(views_compositor)', |
| 43 'use_aura%': '<(use_aura)', | 42 'use_aura%': '<(use_aura)', |
| 44 'use_openssl%': '<(use_openssl)', | 43 'use_openssl%': '<(use_openssl)', |
| 44 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | |
| 45 | 45 |
| 46 # WebKit compositor for ui | 46 # WebKit compositor for ui |
| 47 'use_webkit_compositor%': 0, | 47 'use_webkit_compositor%': 0, |
| 48 | 48 |
| 49 # Compute the architecture that we're building on. | 49 # Compute the architecture that we're building on. |
| 50 'conditions': [ | 50 'conditions': [ |
| 51 [ 'OS=="win" or OS=="mac"', { | 51 [ 'OS=="win" or OS=="mac"', { |
| 52 'host_arch%': 'ia32', | 52 'host_arch%': 'ia32', |
| 53 }, { | 53 }, { |
| 54 # This handles the Unix platforms for which there is some support. | 54 # This handles the Unix platforms for which there is some support. |
| 55 # Anything else gets passed through, which probably won't work very | 55 # Anything else gets passed through, which probably won't work very |
| 56 # well; such hosts should pass an explicit target_arch to gyp. | 56 # well; such hosts should pass an explicit target_arch to gyp. |
| 57 'host_arch%': | 57 'host_arch%': |
| 58 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")', | 58 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")', |
| 59 }], | 59 }], |
| 60 | 60 |
| 61 # Set default value of toolkit_views on for Windows, Chrome OS, | 61 # Set default value of toolkit_views based on OS. |
| 62 # Touch and PureView. | 62 ['OS=="win" or chromeos==1 or use_aura==1', { |
| 63 ['OS=="win" or chromeos==1 or touchui==1 or use_aura==1', { | |
| 64 'toolkit_views%': 1, | 63 'toolkit_views%': 1, |
| 65 }, { | 64 }, { |
| 66 'toolkit_views%': 0, | 65 'toolkit_views%': 0, |
| 67 }], | 66 }], |
| 68 | 67 |
| 69 # Use virtual keyboard by default in TouchUI builds. | 68 # Use the views compositor when using the Aura window manager. |
| 70 ['touchui==1', { | 69 ['use_aura==1', { |
| 71 'use_virtual_keyboard%': 1, | |
| 72 }, { | |
| 73 'use_virtual_keyboard%': 0, | |
| 74 }], | |
| 75 | |
| 76 # Use the views compositor when using the Aura window manager or | |
| 77 # touch. | |
| 78 ['use_aura==1 or touchui==1', { | |
| 79 'views_compositor%': 1, | 70 'views_compositor%': 1, |
| 80 }], | 71 }], |
| 81 ], | 72 ], |
| 82 }, | 73 }, |
| 83 | 74 |
| 84 # Copy conditionally-set variables out one scope. | 75 # Copy conditionally-set variables out one scope. |
| 85 'chromeos%': '<(chromeos)', | 76 'chromeos%': '<(chromeos)', |
| 86 'touchui%': '<(touchui)', | |
| 87 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | |
| 88 'host_arch%': '<(host_arch)', | 77 'host_arch%': '<(host_arch)', |
| 89 'toolkit_views%': '<(toolkit_views)', | 78 'toolkit_views%': '<(toolkit_views)', |
| 90 'views_compositor%': '<(views_compositor)', | 79 'views_compositor%': '<(views_compositor)', |
| 91 'use_webkit_compositor%': '<(use_webkit_compositor)', | 80 'use_webkit_compositor%': '<(use_webkit_compositor)', |
| 92 'use_aura%': '<(use_aura)', | 81 'use_aura%': '<(use_aura)', |
| 93 'use_openssl%': '<(use_openssl)', | 82 'use_openssl%': '<(use_openssl)', |
| 83 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | |
| 84 | |
| 85 # The variable touchui is still present (until all clean up is done). | |
|
Nico
2011/11/21 22:45:02
Instead:
# TODO(saintlou): Remove all reference
| |
| 86 'touchui%': 0, | |
| 94 | 87 |
| 95 # We used to provide a variable for changing how libraries were built. | 88 # We used to provide a variable for changing how libraries were built. |
| 96 # This variable remains until we can clean up all the users. | 89 # This variable remains until we can clean up all the users. |
| 97 # This needs to be one nested variables dict in so that dependent | 90 # This needs to be one nested variables dict in so that dependent |
| 98 # gyp files can make use of it in their outer variables. (Yikes!) | 91 # gyp files can make use of it in their outer variables. (Yikes!) |
| 99 # http://code.google.com/p/chromium/issues/detail?id=83308 | 92 # http://code.google.com/p/chromium/issues/detail?id=83308 |
| 100 'library%': 'static_library', | 93 'library%': 'static_library', |
| 101 | 94 |
| 102 # Override branding to select the desired branding flavor. | 95 # Override branding to select the desired branding flavor. |
| 103 'branding%': 'Chromium', | 96 'branding%': 'Chromium', |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 308 'use_titlecase_in_grd_files%': 1, | 301 'use_titlecase_in_grd_files%': 1, |
| 309 }], | 302 }], |
| 310 | 303 |
| 311 # Enable some hacks to support Flapper only on Chrome OS. | 304 # Enable some hacks to support Flapper only on Chrome OS. |
| 312 ['chromeos==1', { | 305 ['chromeos==1', { |
| 313 'enable_flapper_hacks%': 1, | 306 'enable_flapper_hacks%': 1, |
| 314 }, { | 307 }, { |
| 315 'enable_flapper_hacks%': 0, | 308 'enable_flapper_hacks%': 0, |
| 316 }], | 309 }], |
| 317 | 310 |
| 318 # Enable file manager extension on Chrome OS, Touch, PureView, Aura. | 311 # Enable file manager extension on Chrome OS or Aura. |
| 319 ['chromeos==1 or touchui==1 or use_aura==1', { | 312 ['chromeos==1 or use_aura==1', { |
| 320 'file_manager_extension%': 1, | 313 'file_manager_extension%': 1, |
| 321 }, { | 314 }, { |
| 322 'file_manager_extension%': 0, | 315 'file_manager_extension%': 0, |
| 323 }], | 316 }], |
| 324 | 317 |
| 325 # ... except on Windows even with Aura. | 318 # ... except on Windows even with Aura. |
| 326 ['use_aura==1 and OS=="win"', { | 319 ['use_aura==1 and OS=="win"', { |
| 327 'file_manager_extension%': 0, | 320 'file_manager_extension%': 0, |
| 328 }], | 321 }], |
| 329 | 322 |
| 330 # Enable WebUI TaskManager always on Chrome OS, Touch or PureView. | 323 # Enable WebUI TaskManager always on Chrome OS or Aura. |
| 331 ['chromeos==1 or touchui==1 or use_aura==1', { | 324 ['chromeos==1 or use_aura==1', { |
| 332 'webui_task_manager%': 1, | 325 'webui_task_manager%': 1, |
| 333 }], | 326 }], |
| 334 | 327 |
| 335 ['OS=="android"', { | 328 ['OS=="android"', { |
| 336 'proprietary_codecs%': 1, | 329 'proprietary_codecs%': 1, |
| 337 'enable_webrtc%': 0, | 330 'enable_webrtc%': 0, |
| 338 }], | 331 }], |
| 339 | 332 |
| 340 # Use GPU accelerated cross process image transport by default | 333 # Use GPU accelerated cross process image transport by default |
| 341 # on TOUCH_UI and linux builds with the Aura window manager | 334 # on linux builds with the Aura window manager |
| 342 ['views_compositor==1 and OS=="linux"', { | 335 ['views_compositor==1 and OS=="linux"', { |
| 343 'ui_compositor_image_transport%': 1, | 336 'ui_compositor_image_transport%': 1, |
| 344 }, { | 337 }, { |
| 345 'ui_compositor_image_transport%': 0, | 338 'ui_compositor_image_transport%': 0, |
| 346 }], | 339 }], |
| 347 ], | 340 ], |
| 348 }, | 341 }, |
| 349 | 342 |
| 350 # Copy conditionally-set variables out one scope. | 343 # Copy conditionally-set variables out one scope. |
| 351 'branding%': '<(branding)', | 344 'branding%': '<(branding)', |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 814 }], | 807 }], |
| 815 ['toolkit_views==1', { | 808 ['toolkit_views==1', { |
| 816 'grit_defines': ['-D', 'toolkit_views'], | 809 'grit_defines': ['-D', 'toolkit_views'], |
| 817 }], | 810 }], |
| 818 ['use_aura==1', { | 811 ['use_aura==1', { |
| 819 'grit_defines': ['-D', 'use_aura'], | 812 'grit_defines': ['-D', 'use_aura'], |
| 820 }], | 813 }], |
| 821 ['use_nss==1', { | 814 ['use_nss==1', { |
| 822 'grit_defines': ['-D', 'use_nss'], | 815 'grit_defines': ['-D', 'use_nss'], |
| 823 }], | 816 }], |
| 824 ['touchui==1', { | |
| 825 'grit_defines': ['-D', 'touchui'], | |
| 826 }], | |
| 827 ['use_virtual_keyboard==1', { | 817 ['use_virtual_keyboard==1', { |
| 828 'grit_defines': ['-D', 'use_virtual_keyboard'], | 818 'grit_defines': ['-D', 'use_virtual_keyboard'], |
| 829 }], | 819 }], |
| 830 ['file_manager_extension==1', { | 820 ['file_manager_extension==1', { |
| 831 'grit_defines': ['-D', 'file_manager_extension'], | 821 'grit_defines': ['-D', 'file_manager_extension'], |
| 832 }], | 822 }], |
| 833 ['webui_task_manager==1', { | 823 ['webui_task_manager==1', { |
| 834 'grit_defines': ['-D', 'webui_task_manager'], | 824 'grit_defines': ['-D', 'webui_task_manager'], |
| 835 }], | 825 }], |
| 836 ['remoting==1', { | 826 ['remoting==1', { |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 848 }], | 838 }], |
| 849 ['OS=="android"', { | 839 ['OS=="android"', { |
| 850 'grit_defines': ['-D', 'android'], | 840 'grit_defines': ['-D', 'android'], |
| 851 }], | 841 }], |
| 852 ['clang_use_chrome_plugins==1', { | 842 ['clang_use_chrome_plugins==1', { |
| 853 'clang_chrome_plugins_flags': | 843 'clang_chrome_plugins_flags': |
| 854 '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)', | 844 '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)', |
| 855 }], | 845 }], |
| 856 | 846 |
| 857 # Set use_ibus to 1 to enable ibus support. | 847 # Set use_ibus to 1 to enable ibus support. |
| 858 ['touchui==1 and chromeos==1', { | 848 ['use_virtual_keyboard==1 and chromeos==1', { |
| 859 'use_ibus%': 1, | 849 'use_ibus%': 1, |
| 860 }, { | 850 }, { |
| 861 'use_ibus%': 0, | 851 'use_ibus%': 0, |
| 862 }], | 852 }], |
| 863 | 853 |
| 864 ['enable_register_protocol_handler==1', { | 854 ['enable_register_protocol_handler==1', { |
| 865 'grit_defines': ['-D', 'enable_register_protocol_handler'], | 855 'grit_defines': ['-D', 'enable_register_protocol_handler'], |
| 866 }], | 856 }], |
| 867 | 857 |
| 868 ['enable_web_intents==1', { | 858 ['enable_web_intents==1', { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 990 }], | 980 }], |
| 991 ['use_nss==1', { | 981 ['use_nss==1', { |
| 992 'defines': ['USE_NSS=1'], | 982 'defines': ['USE_NSS=1'], |
| 993 }], | 983 }], |
| 994 ['toolkit_uses_gtk==1', { | 984 ['toolkit_uses_gtk==1', { |
| 995 'defines': ['TOOLKIT_USES_GTK=1'], | 985 'defines': ['TOOLKIT_USES_GTK=1'], |
| 996 }], | 986 }], |
| 997 ['chromeos==1', { | 987 ['chromeos==1', { |
| 998 'defines': ['OS_CHROMEOS=1'], | 988 'defines': ['OS_CHROMEOS=1'], |
| 999 }], | 989 }], |
| 1000 ['touchui==1', { | |
| 1001 'defines': ['TOUCH_UI=1'], | |
| 1002 }], | |
| 1003 ['use_virtual_keyboard==1', { | 990 ['use_virtual_keyboard==1', { |
| 1004 'defines': ['USE_VIRTUAL_KEYBOARD=1'], | 991 'defines': ['USE_VIRTUAL_KEYBOARD=1'], |
| 1005 }], | 992 }], |
| 1006 ['use_xi2_mt!=0', { | 993 ['use_xi2_mt!=0', { |
| 1007 'defines': ['USE_XI2_MT=<(use_xi2_mt)'], | 994 'defines': ['USE_XI2_MT=<(use_xi2_mt)'], |
| 1008 }], | 995 }], |
| 1009 ['use_wayland==1', { | 996 ['use_wayland==1', { |
| 1010 'defines': ['USE_WAYLAND=1', 'WL_EGL_PLATFORM=1'], | 997 'defines': ['USE_WAYLAND=1', 'WL_EGL_PLATFORM=1'], |
| 1011 }], | 998 }], |
| 1012 ['file_manager_extension==1', { | 999 ['file_manager_extension==1', { |
| (...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2632 # settings in target dicts. SYMROOT is a special case, because many other | 2619 # settings in target dicts. SYMROOT is a special case, because many other |
| 2633 # Xcode variables depend on it, including variables such as | 2620 # Xcode variables depend on it, including variables such as |
| 2634 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2621 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 2635 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2622 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 2636 # files to appear (when present) in the UI as actual files and not red | 2623 # files to appear (when present) in the UI as actual files and not red |
| 2637 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2624 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 2638 # and therefore SYMROOT, needs to be set at the project level. | 2625 # and therefore SYMROOT, needs to be set at the project level. |
| 2639 'SYMROOT': '<(DEPTH)/xcodebuild', | 2626 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 2640 }, | 2627 }, |
| 2641 } | 2628 } |
| OLD | NEW |