Chromium Code Reviews| 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. |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 'chromeos%': '<(chromeos)', | 40 'chromeos%': '<(chromeos)', |
| 41 'use_aura%': '<(use_aura)', | 41 'use_aura%': '<(use_aura)', |
| 42 'use_ash%': '<(use_ash)', | 42 'use_ash%': '<(use_ash)', |
| 43 'use_cras%': '<(use_cras)', | 43 'use_cras%': '<(use_cras)', |
| 44 'use_ozone%': '<(use_ozone)', | 44 'use_ozone%': '<(use_ozone)', |
| 45 'embedded%': '<(embedded)', | 45 'embedded%': '<(embedded)', |
| 46 | 46 |
| 47 # Whether we are using Views Toolkit | 47 # Whether we are using Views Toolkit |
| 48 'toolkit_views%': 0, | 48 'toolkit_views%': 0, |
| 49 | 49 |
| 50 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 | 50 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 |
|
wtc
2014/03/20 21:14:56
Please update this comment. At least, the "Under d
haavardm
2014/03/24 18:48:52
Done.
| |
| 51 'use_openssl%': 0, | 51 'use_openssl%': 0, |
| 52 | 52 |
| 53 # Use OpenSSL for certificate handling. | |
|
Ryan Sleevi
2014/03/21 19:47:51
I'm a little confused here, when reading both this
haavardm
2014/03/24 18:48:52
The way it is currently implemented, use_openssl_c
| |
| 54 'use_openssl_certs%': 0, | |
| 55 | |
| 53 # Disable viewport meta tag by default. | 56 # Disable viewport meta tag by default. |
| 54 'enable_viewport%': 0, | 57 'enable_viewport%': 0, |
| 55 | 58 |
| 56 # Enable HiDPI support. | 59 # Enable HiDPI support. |
| 57 'enable_hidpi%': 0, | 60 'enable_hidpi%': 0, |
| 58 | 61 |
| 59 # Override buildtype to select the desired build flavor. | 62 # Override buildtype to select the desired build flavor. |
| 60 # Dev - everyday build for development/testing | 63 # Dev - everyday build for development/testing |
| 61 # Official - release build (generally implies additional processing) | 64 # Official - release build (generally implies additional processing) |
| 62 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 65 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 }, | 120 }, |
| 118 # Copy conditionally-set variables out one scope. | 121 # Copy conditionally-set variables out one scope. |
| 119 'chromeos%': '<(chromeos)', | 122 'chromeos%': '<(chromeos)', |
| 120 'desktop_linux%': '<(desktop_linux)', | 123 'desktop_linux%': '<(desktop_linux)', |
| 121 'use_aura%': '<(use_aura)', | 124 'use_aura%': '<(use_aura)', |
| 122 'use_ash%': '<(use_ash)', | 125 'use_ash%': '<(use_ash)', |
| 123 'use_cras%': '<(use_cras)', | 126 'use_cras%': '<(use_cras)', |
| 124 'use_ozone%': '<(use_ozone)', | 127 'use_ozone%': '<(use_ozone)', |
| 125 'embedded%': '<(embedded)', | 128 'embedded%': '<(embedded)', |
| 126 'use_openssl%': '<(use_openssl)', | 129 'use_openssl%': '<(use_openssl)', |
| 130 'use_openssl_certs%': '<(use_openssl_certs)', | |
| 127 'use_system_fontconfig%': '<(use_system_fontconfig)', | 131 'use_system_fontconfig%': '<(use_system_fontconfig)', |
| 128 'enable_viewport%': '<(enable_viewport)', | 132 'enable_viewport%': '<(enable_viewport)', |
| 129 'enable_hidpi%': '<(enable_hidpi)', | 133 'enable_hidpi%': '<(enable_hidpi)', |
| 130 'buildtype%': '<(buildtype)', | 134 'buildtype%': '<(buildtype)', |
| 131 'branding%': '<(branding)', | 135 'branding%': '<(branding)', |
| 132 'host_arch%': '<(host_arch)', | 136 'host_arch%': '<(host_arch)', |
| 133 | 137 |
| 134 'target_subarch%': '', | 138 'target_subarch%': '', |
| 135 | 139 |
| 136 # This is set when building the Android WebView inside the Android | 140 # This is set when building the Android WebView inside the Android |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 244 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
| 241 'desktop_linux%': '<(desktop_linux)', | 245 'desktop_linux%': '<(desktop_linux)', |
| 242 'use_aura%': '<(use_aura)', | 246 'use_aura%': '<(use_aura)', |
| 243 'use_ash%': '<(use_ash)', | 247 'use_ash%': '<(use_ash)', |
| 244 'use_cras%': '<(use_cras)', | 248 'use_cras%': '<(use_cras)', |
| 245 'use_ozone%': '<(use_ozone)', | 249 'use_ozone%': '<(use_ozone)', |
| 246 'use_ozone_evdev%': '<(use_ozone_evdev)', | 250 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| 247 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 251 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
| 248 'embedded%': '<(embedded)', | 252 'embedded%': '<(embedded)', |
| 249 'use_openssl%': '<(use_openssl)', | 253 'use_openssl%': '<(use_openssl)', |
| 254 'use_openssl_certs%': '<(use_openssl_certs)', | |
| 250 'use_system_fontconfig%': '<(use_system_fontconfig)', | 255 'use_system_fontconfig%': '<(use_system_fontconfig)', |
| 251 'enable_viewport%': '<(enable_viewport)', | 256 'enable_viewport%': '<(enable_viewport)', |
| 252 'enable_hidpi%': '<(enable_hidpi)', | 257 'enable_hidpi%': '<(enable_hidpi)', |
| 253 'android_webview_build%': '<(android_webview_build)', | 258 'android_webview_build%': '<(android_webview_build)', |
| 254 'use_goma%': '<(use_goma)', | 259 'use_goma%': '<(use_goma)', |
| 255 'gomadir%': '<(gomadir)', | 260 'gomadir%': '<(gomadir)', |
| 256 'enable_app_list%': '<(enable_app_list)', | 261 'enable_app_list%': '<(enable_app_list)', |
| 257 'use_default_render_theme%': '<(use_default_render_theme)', | 262 'use_default_render_theme%': '<(use_default_render_theme)', |
| 258 'buildtype%': '<(buildtype)', | 263 'buildtype%': '<(buildtype)', |
| 259 'branding%': '<(branding)', | 264 'branding%': '<(branding)', |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 527 }], | 532 }], |
| 528 | 533 |
| 529 # A flag for BSD platforms | 534 # A flag for BSD platforms |
| 530 ['OS=="freebsd" or OS=="openbsd"', { | 535 ['OS=="freebsd" or OS=="openbsd"', { |
| 531 'os_bsd%': 1, | 536 'os_bsd%': 1, |
| 532 }, { | 537 }, { |
| 533 'os_bsd%': 0, | 538 'os_bsd%': 0, |
| 534 }], | 539 }], |
| 535 | 540 |
| 536 # NSS usage. | 541 # NSS usage. |
| 537 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { | 542 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { |
|
wtc
2014/03/20 21:14:56
Nit: ideally this should be combined with the new
haavardm
2014/03/21 13:08:21
I had that at first, but the result got quite nest
Ryan Sleevi
2014/03/21 19:47:51
Yeah, as we transition towards OpenSSL, we can sim
| |
| 538 'use_nss%': 1, | 543 'use_nss%': 1, |
| 539 }, { | 544 }, { |
| 540 'use_nss%': 0, | 545 'use_nss%': 0, |
| 541 }], | 546 }], |
| 542 | 547 |
| 548 # When OpenSSL is used for SSL on unix like systems, turn on OpenSSL | |
|
wtc
2014/03/20 21:14:56
This should be "for SSL and crypto".
| |
| 549 # certificate handling for now. | |
| 550 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', { | |
| 551 'use_openssl_certs%': 1, | |
|
wtc
2014/03/20 21:14:56
Should we also add an "else" block that set use_op
Ryan Sleevi
2014/03/21 19:47:51
+1 for consistency.
haavardm
2014/03/24 18:48:52
Done.
| |
| 552 }], | |
| 543 # libudev usage. This currently only affects the content layer. | 553 # libudev usage. This currently only affects the content layer. |
| 544 ['OS=="linux" and embedded==0', { | 554 ['OS=="linux" and embedded==0', { |
| 545 'use_udev%': 1, | 555 'use_udev%': 1, |
| 546 }, { | 556 }, { |
| 547 'use_udev%': 0, | 557 'use_udev%': 0, |
| 548 }], | 558 }], |
| 549 | 559 |
| 550 # Flags to use X11 on non-Mac POSIX platforms. | 560 # Flags to use X11 on non-Mac POSIX platforms. |
| 551 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { | 561 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { |
| 552 'use_x11%': 0, | 562 'use_x11%': 0, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 890 'buildtype%': '<(buildtype)', | 900 'buildtype%': '<(buildtype)', |
| 891 'target_arch%': '<(target_arch)', | 901 'target_arch%': '<(target_arch)', |
| 892 'target_subarch%': '<(target_subarch)', | 902 'target_subarch%': '<(target_subarch)', |
| 893 'host_arch%': '<(host_arch)', | 903 'host_arch%': '<(host_arch)', |
| 894 'toolkit_views%': '<(toolkit_views)', | 904 'toolkit_views%': '<(toolkit_views)', |
| 895 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 905 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
| 896 'use_aura%': '<(use_aura)', | 906 'use_aura%': '<(use_aura)', |
| 897 'use_ash%': '<(use_ash)', | 907 'use_ash%': '<(use_ash)', |
| 898 'use_cras%': '<(use_cras)', | 908 'use_cras%': '<(use_cras)', |
| 899 'use_openssl%': '<(use_openssl)', | 909 'use_openssl%': '<(use_openssl)', |
| 910 'use_openssl_certs%': '<(use_openssl_certs)', | |
| 900 'use_nss%': '<(use_nss)', | 911 'use_nss%': '<(use_nss)', |
| 901 'use_udev%': '<(use_udev)', | 912 'use_udev%': '<(use_udev)', |
| 902 'os_bsd%': '<(os_bsd)', | 913 'os_bsd%': '<(os_bsd)', |
| 903 'os_posix%': '<(os_posix)', | 914 'os_posix%': '<(os_posix)', |
| 904 'use_dbus%': '<(use_dbus)', | 915 'use_dbus%': '<(use_dbus)', |
| 905 'use_glib%': '<(use_glib)', | 916 'use_glib%': '<(use_glib)', |
| 906 'use_pango%': '<(use_pango)', | 917 'use_pango%': '<(use_pango)', |
| 907 'use_cairo%': '<(use_cairo)', | 918 'use_cairo%': '<(use_cairo)', |
| 908 'use_ozone%': '<(use_ozone)', | 919 'use_ozone%': '<(use_ozone)', |
| 909 'use_ozone_evdev%': '<(use_ozone_evdev)', | 920 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| (...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2512 'defines': ['ENABLE_IPC_FUZZER=1'], | 2523 'defines': ['ENABLE_IPC_FUZZER=1'], |
| 2513 }], | 2524 }], |
| 2514 ['video_hole==1', { | 2525 ['video_hole==1', { |
| 2515 'defines': ['VIDEO_HOLE=1'], | 2526 'defines': ['VIDEO_HOLE=1'], |
| 2516 }], | 2527 }], |
| 2517 ], # conditions for 'target_defaults' | 2528 ], # conditions for 'target_defaults' |
| 2518 'target_conditions': [ | 2529 'target_conditions': [ |
| 2519 ['<(use_openssl)==1 or >(nacl_untrusted_build)==1', { | 2530 ['<(use_openssl)==1 or >(nacl_untrusted_build)==1', { |
| 2520 'defines': ['USE_OPENSSL=1'], | 2531 'defines': ['USE_OPENSSL=1'], |
| 2521 }], | 2532 }], |
| 2533 ['<(use_openssl_certs)==1 or >(nacl_untrusted_build)==1', { | |
| 2534 'defines': ['USE_OPENSSL_CERTS=1'], | |
| 2535 }], | |
| 2522 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { | 2536 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { |
| 2523 'defines': ['USE_NSS=1'], | 2537 'defines': ['USE_NSS=1'], |
| 2524 }], | 2538 }], |
| 2525 ['enable_wexit_time_destructors==1', { | 2539 ['enable_wexit_time_destructors==1', { |
| 2526 'conditions': [ | 2540 'conditions': [ |
| 2527 [ 'clang==1', { | 2541 [ 'clang==1', { |
| 2528 'cflags': [ | 2542 'cflags': [ |
| 2529 '-Wexit-time-destructors', | 2543 '-Wexit-time-destructors', |
| 2530 ], | 2544 ], |
| 2531 'xcode_settings': { | 2545 'xcode_settings': { |
| (...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5064 # settings in target dicts. SYMROOT is a special case, because many other | 5078 # settings in target dicts. SYMROOT is a special case, because many other |
| 5065 # Xcode variables depend on it, including variables such as | 5079 # Xcode variables depend on it, including variables such as |
| 5066 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5080 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5067 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5081 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5068 # files to appear (when present) in the UI as actual files and not red | 5082 # files to appear (when present) in the UI as actual files and not red |
| 5069 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5083 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5070 # and therefore SYMROOT, needs to be set at the project level. | 5084 # and therefore SYMROOT, needs to be set at the project level. |
| 5071 'SYMROOT': '<(DEPTH)/xcodebuild', | 5085 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5072 }, | 5086 }, |
| 5073 } | 5087 } |
| OLD | NEW |