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 as underlying SSL protocol. |
wtc
2014/03/25 17:18:28
Nit: "protocol" should be changed to "implementati
haavardm
2014/03/26 12:25:18
Done.
haavardm
2014/03/26 12:25:18
Done.
| |
51 # Certificate verification will in most cases be handled by the OS. | |
52 # If openssl also is used for certificate verification, or the OS | |
53 # uses OpenSSLL's struct X509 to represent certificates, | |
wtc
2014/03/25 17:18:28
Typo: "OpenSSLL" has an extra L.
I think the "ope
haavardm
2014/03/26 12:25:18
Done.
| |
54 # use_openssl_certs must be set. | |
51 'use_openssl%': 0, | 55 'use_openssl%': 0, |
52 | 56 |
57 # Typedef fX509Certificate::OSCertHandle to OpenSSL's struct X509*. | |
wtc
2014/03/25 17:18:28
Remove the "f" before "X509Certificate".
haavardm
2014/03/26 12:25:18
Done.
| |
58 'use_openssl_certs%': 0, | |
59 | |
53 # Disable viewport meta tag by default. | 60 # Disable viewport meta tag by default. |
54 'enable_viewport%': 0, | 61 'enable_viewport%': 0, |
55 | 62 |
56 # Enable HiDPI support. | 63 # Enable HiDPI support. |
57 'enable_hidpi%': 0, | 64 'enable_hidpi%': 0, |
58 | 65 |
59 # Override buildtype to select the desired build flavor. | 66 # Override buildtype to select the desired build flavor. |
60 # Dev - everyday build for development/testing | 67 # Dev - everyday build for development/testing |
61 # Official - release build (generally implies additional processing) | 68 # Official - release build (generally implies additional processing) |
62 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 69 # 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 }, | 124 }, |
118 # Copy conditionally-set variables out one scope. | 125 # Copy conditionally-set variables out one scope. |
119 'chromeos%': '<(chromeos)', | 126 'chromeos%': '<(chromeos)', |
120 'desktop_linux%': '<(desktop_linux)', | 127 'desktop_linux%': '<(desktop_linux)', |
121 'use_aura%': '<(use_aura)', | 128 'use_aura%': '<(use_aura)', |
122 'use_ash%': '<(use_ash)', | 129 'use_ash%': '<(use_ash)', |
123 'use_cras%': '<(use_cras)', | 130 'use_cras%': '<(use_cras)', |
124 'use_ozone%': '<(use_ozone)', | 131 'use_ozone%': '<(use_ozone)', |
125 'embedded%': '<(embedded)', | 132 'embedded%': '<(embedded)', |
126 'use_openssl%': '<(use_openssl)', | 133 'use_openssl%': '<(use_openssl)', |
134 'use_openssl_certs%': '<(use_openssl_certs)', | |
127 'use_system_fontconfig%': '<(use_system_fontconfig)', | 135 'use_system_fontconfig%': '<(use_system_fontconfig)', |
128 'enable_viewport%': '<(enable_viewport)', | 136 'enable_viewport%': '<(enable_viewport)', |
129 'enable_hidpi%': '<(enable_hidpi)', | 137 'enable_hidpi%': '<(enable_hidpi)', |
130 'buildtype%': '<(buildtype)', | 138 'buildtype%': '<(buildtype)', |
131 'branding%': '<(branding)', | 139 'branding%': '<(branding)', |
132 'host_arch%': '<(host_arch)', | 140 'host_arch%': '<(host_arch)', |
133 | 141 |
134 'target_subarch%': '', | 142 'target_subarch%': '', |
135 | 143 |
136 # This is set when building the Android WebView inside the Android | 144 # 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)', | 248 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
241 'desktop_linux%': '<(desktop_linux)', | 249 'desktop_linux%': '<(desktop_linux)', |
242 'use_aura%': '<(use_aura)', | 250 'use_aura%': '<(use_aura)', |
243 'use_ash%': '<(use_ash)', | 251 'use_ash%': '<(use_ash)', |
244 'use_cras%': '<(use_cras)', | 252 'use_cras%': '<(use_cras)', |
245 'use_ozone%': '<(use_ozone)', | 253 'use_ozone%': '<(use_ozone)', |
246 'use_ozone_evdev%': '<(use_ozone_evdev)', | 254 'use_ozone_evdev%': '<(use_ozone_evdev)', |
247 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 255 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
248 'embedded%': '<(embedded)', | 256 'embedded%': '<(embedded)', |
249 'use_openssl%': '<(use_openssl)', | 257 'use_openssl%': '<(use_openssl)', |
258 'use_openssl_certs%': '<(use_openssl_certs)', | |
250 'use_system_fontconfig%': '<(use_system_fontconfig)', | 259 'use_system_fontconfig%': '<(use_system_fontconfig)', |
251 'enable_viewport%': '<(enable_viewport)', | 260 'enable_viewport%': '<(enable_viewport)', |
252 'enable_hidpi%': '<(enable_hidpi)', | 261 'enable_hidpi%': '<(enable_hidpi)', |
253 'android_webview_build%': '<(android_webview_build)', | 262 'android_webview_build%': '<(android_webview_build)', |
254 'use_goma%': '<(use_goma)', | 263 'use_goma%': '<(use_goma)', |
255 'gomadir%': '<(gomadir)', | 264 'gomadir%': '<(gomadir)', |
256 'enable_app_list%': '<(enable_app_list)', | 265 'enable_app_list%': '<(enable_app_list)', |
257 'use_default_render_theme%': '<(use_default_render_theme)', | 266 'use_default_render_theme%': '<(use_default_render_theme)', |
258 'buildtype%': '<(buildtype)', | 267 'buildtype%': '<(buildtype)', |
259 'branding%': '<(branding)', | 268 'branding%': '<(branding)', |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 'os_bsd%': 0, | 556 'os_bsd%': 0, |
548 }], | 557 }], |
549 | 558 |
550 # NSS usage. | 559 # NSS usage. |
551 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { | 560 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { |
552 'use_nss%': 1, | 561 'use_nss%': 1, |
553 }, { | 562 }, { |
554 'use_nss%': 0, | 563 'use_nss%': 0, |
555 }], | 564 }], |
556 | 565 |
566 # When OpenSSL is used for SSL and crypto on unix like systems, use | |
wtc
2014/03/25 17:18:28
Nit: unix like => Unix-like
haavardm
2014/03/26 12:25:18
Done.
| |
567 # OpenSSL's certificate definition. | |
568 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', { | |
569 'use_openssl_certs%': 1, | |
570 }, { | |
571 'use_openssl_certs%': 0, | |
572 }], | |
573 | |
557 # libudev usage. This currently only affects the content layer. | 574 # libudev usage. This currently only affects the content layer. |
558 ['OS=="linux" and embedded==0', { | 575 ['OS=="linux" and embedded==0', { |
559 'use_udev%': 1, | 576 'use_udev%': 1, |
560 }, { | 577 }, { |
561 'use_udev%': 0, | 578 'use_udev%': 0, |
562 }], | 579 }], |
563 | 580 |
564 # Flags to use X11 on non-Mac POSIX platforms. | 581 # Flags to use X11 on non-Mac POSIX platforms. |
565 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { | 582 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { |
566 'use_x11%': 0, | 583 'use_x11%': 0, |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
909 'target_arch%': '<(target_arch)', | 926 'target_arch%': '<(target_arch)', |
910 'target_subarch%': '<(target_subarch)', | 927 'target_subarch%': '<(target_subarch)', |
911 'host_arch%': '<(host_arch)', | 928 'host_arch%': '<(host_arch)', |
912 'toolkit_views%': '<(toolkit_views)', | 929 'toolkit_views%': '<(toolkit_views)', |
913 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 930 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
914 'use_aura%': '<(use_aura)', | 931 'use_aura%': '<(use_aura)', |
915 'use_ash%': '<(use_ash)', | 932 'use_ash%': '<(use_ash)', |
916 'use_cras%': '<(use_cras)', | 933 'use_cras%': '<(use_cras)', |
917 'use_mojo%': '<(use_mojo)', | 934 'use_mojo%': '<(use_mojo)', |
918 'use_openssl%': '<(use_openssl)', | 935 'use_openssl%': '<(use_openssl)', |
936 'use_openssl_certs%': '<(use_openssl_certs)', | |
919 'use_nss%': '<(use_nss)', | 937 'use_nss%': '<(use_nss)', |
920 'use_udev%': '<(use_udev)', | 938 'use_udev%': '<(use_udev)', |
921 'os_bsd%': '<(os_bsd)', | 939 'os_bsd%': '<(os_bsd)', |
922 'os_posix%': '<(os_posix)', | 940 'os_posix%': '<(os_posix)', |
923 'use_dbus%': '<(use_dbus)', | 941 'use_dbus%': '<(use_dbus)', |
924 'use_glib%': '<(use_glib)', | 942 'use_glib%': '<(use_glib)', |
925 'use_pango%': '<(use_pango)', | 943 'use_pango%': '<(use_pango)', |
926 'use_cairo%': '<(use_cairo)', | 944 'use_cairo%': '<(use_cairo)', |
927 'use_ozone%': '<(use_ozone)', | 945 'use_ozone%': '<(use_ozone)', |
928 'use_ozone_evdev%': '<(use_ozone_evdev)', | 946 'use_ozone_evdev%': '<(use_ozone_evdev)', |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1531 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)', | 1549 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)', |
1532 | 1550 |
1533 # Determines whether we should optimize JNI generation at the cost of | 1551 # Determines whether we should optimize JNI generation at the cost of |
1534 # breaking assumptions in the build system that when inputs have changed | 1552 # breaking assumptions in the build system that when inputs have changed |
1535 # the outputs should always change as well. This is meant purely for | 1553 # the outputs should always change as well. This is meant purely for |
1536 # developer builds, to avoid spurious re-linking of native files. | 1554 # developer builds, to avoid spurious re-linking of native files. |
1537 'optimize_jni_generation%': 0, | 1555 'optimize_jni_generation%': 0, |
1538 | 1556 |
1539 # Always uses openssl. | 1557 # Always uses openssl. |
1540 'use_openssl%': 1, | 1558 'use_openssl%': 1, |
1559 'use_openssl_certs%': 1, | |
1541 | 1560 |
1542 'proprietary_codecs%': '<(proprietary_codecs)', | 1561 'proprietary_codecs%': '<(proprietary_codecs)', |
1543 'safe_browsing%': 2, | 1562 'safe_browsing%': 2, |
1544 'input_speech%': 0, | 1563 'input_speech%': 0, |
1545 'enable_automation%': 0, | 1564 'enable_automation%': 0, |
1546 'java_bridge%': 1, | 1565 'java_bridge%': 1, |
1547 'build_ffmpegsumo%': 0, | 1566 'build_ffmpegsumo%': 0, |
1548 # TODO(dmikurube): Change the default of use_allocator to "none". | 1567 # TODO(dmikurube): Change the default of use_allocator to "none". |
1549 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 1568 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
1550 'linux_use_tcmalloc%': 0, | 1569 'linux_use_tcmalloc%': 0, |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2560 'defines': ['ENABLE_IPC_FUZZER=1'], | 2579 'defines': ['ENABLE_IPC_FUZZER=1'], |
2561 }], | 2580 }], |
2562 ['video_hole==1', { | 2581 ['video_hole==1', { |
2563 'defines': ['VIDEO_HOLE=1'], | 2582 'defines': ['VIDEO_HOLE=1'], |
2564 }], | 2583 }], |
2565 ], # conditions for 'target_defaults' | 2584 ], # conditions for 'target_defaults' |
2566 'target_conditions': [ | 2585 'target_conditions': [ |
2567 ['<(use_openssl)==1 or >(nacl_untrusted_build)==1', { | 2586 ['<(use_openssl)==1 or >(nacl_untrusted_build)==1', { |
2568 'defines': ['USE_OPENSSL=1'], | 2587 'defines': ['USE_OPENSSL=1'], |
2569 }], | 2588 }], |
2589 ['<(use_openssl_certs)==1 or >(nacl_untrusted_build)==1', { | |
2590 'defines': ['USE_OPENSSL_CERTS=1'], | |
2591 }], | |
wtc
2014/03/25 17:18:28
It seems clearer to rewrite these two as follows:
haavardm
2014/03/26 12:25:18
Done.
| |
2570 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { | 2592 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { |
2571 'defines': ['USE_NSS=1'], | 2593 'defines': ['USE_NSS=1'], |
2572 }], | 2594 }], |
2573 ['enable_wexit_time_destructors==1', { | 2595 ['enable_wexit_time_destructors==1', { |
2574 'conditions': [ | 2596 'conditions': [ |
2575 [ 'clang==1', { | 2597 [ 'clang==1', { |
2576 'cflags': [ | 2598 'cflags': [ |
2577 '-Wexit-time-destructors', | 2599 '-Wexit-time-destructors', |
2578 ], | 2600 ], |
2579 'xcode_settings': { | 2601 'xcode_settings': { |
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5152 # settings in target dicts. SYMROOT is a special case, because many other | 5174 # settings in target dicts. SYMROOT is a special case, because many other |
5153 # Xcode variables depend on it, including variables such as | 5175 # Xcode variables depend on it, including variables such as |
5154 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5176 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5155 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5177 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5156 # files to appear (when present) in the UI as actual files and not red | 5178 # files to appear (when present) in the UI as actual files and not red |
5157 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5179 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5158 # and therefore SYMROOT, needs to be set at the project level. | 5180 # and therefore SYMROOT, needs to be set at the project level. |
5159 'SYMROOT': '<(DEPTH)/xcodebuild', | 5181 'SYMROOT': '<(DEPTH)/xcodebuild', |
5160 }, | 5182 }, |
5161 } | 5183 } |
OLD | NEW |