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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 'use_ozone%': '<(use_ozone)', | 57 'use_ozone%': '<(use_ozone)', |
58 'embedded%': '<(embedded)', | 58 'embedded%': '<(embedded)', |
59 'host_arch%': '<(host_arch)', | 59 'host_arch%': '<(host_arch)', |
60 | 60 |
61 # Whether we are using Views Toolkit | 61 # Whether we are using Views Toolkit |
62 'toolkit_views%': 0, | 62 'toolkit_views%': 0, |
63 | 63 |
64 # Use the PCI lib to collect GPU information. | 64 # Use the PCI lib to collect GPU information. |
65 'use_libpci%': 1, | 65 'use_libpci%': 1, |
66 | 66 |
67 # Use OpenSSL instead of NSS as the underlying SSL and crypto | |
68 # implementation. Certificate verification will in most cases be | |
69 # handled by the OS. If OpenSSL's struct X509 is used to represent | |
70 # certificates, use_openssl_certs must be set. | |
71 'use_openssl%': 1, | |
72 | |
73 # Use OpenSSL for representing certificates. When targeting Android, | 67 # Use OpenSSL for representing certificates. When targeting Android, |
74 # the platform certificate library is used for certificate | 68 # the platform certificate library is used for certificate |
75 # verification. On other targets, this flag also enables OpenSSL for | 69 # verification. On other targets, this flag also enables OpenSSL for |
76 # certificate verification, but this configuration is unsupported. | 70 # certificate verification, but this configuration is unsupported. |
77 'use_openssl_certs%': 0, | 71 'use_openssl_certs%': 0, |
78 | 72 |
79 # Disable viewport meta tag by default. | 73 # Disable viewport meta tag by default. |
80 'enable_viewport%': 0, | 74 'enable_viewport%': 0, |
81 | 75 |
82 # Enable HiDPI support. | 76 # Enable HiDPI support. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 # Copy conditionally-set variables out one scope. | 155 # Copy conditionally-set variables out one scope. |
162 'chromeos%': '<(chromeos)', | 156 'chromeos%': '<(chromeos)', |
163 'chromecast%': '<(chromecast)', | 157 'chromecast%': '<(chromecast)', |
164 'desktop_linux%': '<(desktop_linux)', | 158 'desktop_linux%': '<(desktop_linux)', |
165 'use_aura%': '<(use_aura)', | 159 'use_aura%': '<(use_aura)', |
166 'use_ash%': '<(use_ash)', | 160 'use_ash%': '<(use_ash)', |
167 'use_cras%': '<(use_cras)', | 161 'use_cras%': '<(use_cras)', |
168 'use_ozone%': '<(use_ozone)', | 162 'use_ozone%': '<(use_ozone)', |
169 'embedded%': '<(embedded)', | 163 'embedded%': '<(embedded)', |
170 'use_libpci%': '<(use_libpci)', | 164 'use_libpci%': '<(use_libpci)', |
171 'use_openssl%': '<(use_openssl)', | |
172 'use_openssl_certs%': '<(use_openssl_certs)', | 165 'use_openssl_certs%': '<(use_openssl_certs)', |
173 'enable_viewport%': '<(enable_viewport)', | 166 'enable_viewport%': '<(enable_viewport)', |
174 'enable_hidpi%': '<(enable_hidpi)', | 167 'enable_hidpi%': '<(enable_hidpi)', |
175 'enable_topchrome_md%': '<(enable_topchrome_md)', | 168 'enable_topchrome_md%': '<(enable_topchrome_md)', |
176 'enable_wayland_server%': '<(enable_wayland_server)', | 169 'enable_wayland_server%': '<(enable_wayland_server)', |
177 'enable_wifi_display%': '<(enable_wifi_display)', | 170 'enable_wifi_display%': '<(enable_wifi_display)', |
178 'buildtype%': '<(buildtype)', | 171 'buildtype%': '<(buildtype)', |
179 'branding%': '<(branding)', | 172 'branding%': '<(branding)', |
180 'branding_path_component%': '<(branding)', | 173 'branding_path_component%': '<(branding)', |
181 'host_arch%': '<(host_arch)', | 174 'host_arch%': '<(host_arch)', |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 'toolkit_views%': '<(toolkit_views)', | 341 'toolkit_views%': '<(toolkit_views)', |
349 'desktop_linux%': '<(desktop_linux)', | 342 'desktop_linux%': '<(desktop_linux)', |
350 'use_aura%': '<(use_aura)', | 343 'use_aura%': '<(use_aura)', |
351 'use_ash%': '<(use_ash)', | 344 'use_ash%': '<(use_ash)', |
352 'use_cras%': '<(use_cras)', | 345 'use_cras%': '<(use_cras)', |
353 'use_libpci%': '<(use_libpci)', | 346 'use_libpci%': '<(use_libpci)', |
354 'use_ozone%': '<(use_ozone)', | 347 'use_ozone%': '<(use_ozone)', |
355 'use_ozone_evdev%': '<(use_ozone_evdev)', | 348 'use_ozone_evdev%': '<(use_ozone_evdev)', |
356 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 349 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
357 'embedded%': '<(embedded)', | 350 'embedded%': '<(embedded)', |
358 'use_openssl%': '<(use_openssl)', | |
359 'use_openssl_certs%': '<(use_openssl_certs)', | 351 'use_openssl_certs%': '<(use_openssl_certs)', |
360 'enable_viewport%': '<(enable_viewport)', | 352 'enable_viewport%': '<(enable_viewport)', |
361 'enable_hidpi%': '<(enable_hidpi)', | 353 'enable_hidpi%': '<(enable_hidpi)', |
362 'enable_topchrome_md%': '<(enable_topchrome_md)', | 354 'enable_topchrome_md%': '<(enable_topchrome_md)', |
363 'enable_wayland_server%': '<(enable_wayland_server)', | 355 'enable_wayland_server%': '<(enable_wayland_server)', |
364 'enable_wifi_display%': '<(enable_wifi_display)', | 356 'enable_wifi_display%': '<(enable_wifi_display)', |
365 'android_channel%': '<(android_channel)', | 357 'android_channel%': '<(android_channel)', |
366 'use_goma%': '<(use_goma)', | 358 'use_goma%': '<(use_goma)', |
367 'gomadir%': '<(gomadir)', | 359 'gomadir%': '<(gomadir)', |
368 'enable_app_list%': '<(enable_app_list)', | 360 'enable_app_list%': '<(enable_app_list)', |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 'os_bsd%': 0, | 729 'os_bsd%': 0, |
738 }], | 730 }], |
739 | 731 |
740 # NSS usage. | 732 # NSS usage. |
741 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris")', { | 733 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris")', { |
742 'use_nss_certs%': 1, | 734 'use_nss_certs%': 1, |
743 }, { | 735 }, { |
744 'use_nss_certs%': 0, | 736 'use_nss_certs%': 0, |
745 }], | 737 }], |
746 | 738 |
747 # NSS verifier usage. | |
748 # On non-OpenSSL iOS configurations, certificates use the operating | |
749 # system library, but the verifier uses the bundled copy of NSS. | |
750 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") or (O
S=="ios" and use_openssl==0)', { | |
751 'use_nss_verifier%': 1, | |
752 }, { | |
753 'use_nss_verifier%': 0, | |
754 }], | |
755 | |
756 # libudev usage. This currently only affects the content layer. | 739 # libudev usage. This currently only affects the content layer. |
757 ['OS=="linux" and embedded==0', { | 740 ['OS=="linux" and embedded==0', { |
758 'use_udev%': 1, | 741 'use_udev%': 1, |
759 }, { | 742 }, { |
760 'use_udev%': 0, | 743 'use_udev%': 0, |
761 }], | 744 }], |
762 | 745 |
763 # Flags to use X11 on non-Mac POSIX platforms. | 746 # Flags to use X11 on non-Mac POSIX platforms. |
764 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1',
{ | 747 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1',
{ |
765 'use_x11%': 0, | 748 'use_x11%': 0, |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 'target_subarch%': '<(target_subarch)', | 1143 'target_subarch%': '<(target_subarch)', |
1161 'mips_arch_variant%': '<(mips_arch_variant)', | 1144 'mips_arch_variant%': '<(mips_arch_variant)', |
1162 'mips_dsp_rev%': '<(mips_dsp_rev)', | 1145 'mips_dsp_rev%': '<(mips_dsp_rev)', |
1163 'host_arch%': '<(host_arch)', | 1146 'host_arch%': '<(host_arch)', |
1164 'toolkit_views%': '<(toolkit_views)', | 1147 'toolkit_views%': '<(toolkit_views)', |
1165 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 1148 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
1166 'use_aura%': '<(use_aura)', | 1149 'use_aura%': '<(use_aura)', |
1167 'use_ash%': '<(use_ash)', | 1150 'use_ash%': '<(use_ash)', |
1168 'use_cras%': '<(use_cras)', | 1151 'use_cras%': '<(use_cras)', |
1169 'use_libpci%': '<(use_libpci)', | 1152 'use_libpci%': '<(use_libpci)', |
1170 'use_openssl%': '<(use_openssl)', | |
1171 'use_openssl_certs%': '<(use_openssl_certs)', | 1153 'use_openssl_certs%': '<(use_openssl_certs)', |
1172 'use_nss_certs%': '<(use_nss_certs)', | 1154 'use_nss_certs%': '<(use_nss_certs)', |
1173 'use_nss_verifier%': '<(use_nss_verifier)', | |
1174 'use_udev%': '<(use_udev)', | 1155 'use_udev%': '<(use_udev)', |
1175 'os_bsd%': '<(os_bsd)', | 1156 'os_bsd%': '<(os_bsd)', |
1176 'os_posix%': '<(os_posix)', | 1157 'os_posix%': '<(os_posix)', |
1177 'use_dbus%': '<(use_dbus)', | 1158 'use_dbus%': '<(use_dbus)', |
1178 'use_glib%': '<(use_glib)', | 1159 'use_glib%': '<(use_glib)', |
1179 'use_pango%': '<(use_pango)', | 1160 'use_pango%': '<(use_pango)', |
1180 'use_cairo%': '<(use_cairo)', | 1161 'use_cairo%': '<(use_cairo)', |
1181 'use_ozone%': '<(use_ozone)', | 1162 'use_ozone%': '<(use_ozone)', |
1182 'use_ozone_evdev%': '<(use_ozone_evdev)', | 1163 'use_ozone_evdev%': '<(use_ozone_evdev)', |
1183 'use_xkbcommon%': '<(use_xkbcommon)', | 1164 'use_xkbcommon%': '<(use_xkbcommon)', |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2132 }], | 2113 }], |
2133 ['use_aura==1', { | 2114 ['use_aura==1', { |
2134 'grit_defines': ['-D', 'use_aura'], | 2115 'grit_defines': ['-D', 'use_aura'], |
2135 }], | 2116 }], |
2136 ['use_ash==1', { | 2117 ['use_ash==1', { |
2137 'grit_defines': ['-D', 'use_ash'], | 2118 'grit_defines': ['-D', 'use_ash'], |
2138 }], | 2119 }], |
2139 ['use_nss_certs==1', { | 2120 ['use_nss_certs==1', { |
2140 'grit_defines': ['-D', 'use_nss_certs'], | 2121 'grit_defines': ['-D', 'use_nss_certs'], |
2141 }], | 2122 }], |
2142 ['use_nss_verifier==1', { | |
2143 'grit_defines': ['-D', 'use_nss_verifier'], | |
2144 }], | |
2145 ['use_ozone==1', { | 2123 ['use_ozone==1', { |
2146 'grit_defines': ['-D', 'use_ozone'], | 2124 'grit_defines': ['-D', 'use_ozone'], |
2147 }], | 2125 }], |
2148 ['image_loader_extension==1', { | 2126 ['image_loader_extension==1', { |
2149 'grit_defines': ['-D', 'image_loader_extension'], | 2127 'grit_defines': ['-D', 'image_loader_extension'], |
2150 }], | 2128 }], |
2151 ['use_titlecase_in_grd==1', { | 2129 ['use_titlecase_in_grd==1', { |
2152 'grit_defines': ['-D', 'use_titlecase'], | 2130 'grit_defines': ['-D', 'use_titlecase'], |
2153 }], | 2131 }], |
2154 ['OS=="android"', { | 2132 ['OS=="android"', { |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3062 ['safe_browsing==2 and OS!="ios"', { | 3040 ['safe_browsing==2 and OS!="ios"', { |
3063 'defines': [ | 3041 'defines': [ |
3064 'SAFE_BROWSING_DB_REMOTE', | 3042 'SAFE_BROWSING_DB_REMOTE', |
3065 ], | 3043 ], |
3066 }], | 3044 }], |
3067 ], # conditions for 'target_defaults' | 3045 ], # conditions for 'target_defaults' |
3068 'target_conditions': [ | 3046 'target_conditions': [ |
3069 ['<(use_libpci)==1', { | 3047 ['<(use_libpci)==1', { |
3070 'defines': ['USE_LIBPCI=1'], | 3048 'defines': ['USE_LIBPCI=1'], |
3071 }], | 3049 }], |
3072 ['<(use_openssl)==1', { | |
3073 'defines': ['USE_OPENSSL=1'], | |
3074 }], | |
3075 ['<(use_openssl_certs)==1', { | 3050 ['<(use_openssl_certs)==1', { |
3076 'defines': ['USE_OPENSSL_CERTS=1'], | 3051 'defines': ['USE_OPENSSL_CERTS=1'], |
3077 }], | 3052 }], |
3078 ['>(nacl_untrusted_build)==1', { | 3053 ['>(nacl_untrusted_build)==1', { |
3079 'defines': [ | 3054 'defines': [ |
3080 'USE_OPENSSL=1', | |
3081 'USE_OPENSSL_CERTS=1', | 3055 'USE_OPENSSL_CERTS=1', |
3082 ], | 3056 ], |
3083 }], | 3057 }], |
3084 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { | 3058 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { |
3085 'defines': ['USE_GLIB=1'], | 3059 'defines': ['USE_GLIB=1'], |
3086 }], | 3060 }], |
3087 ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', { | 3061 ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', { |
3088 'defines': ['USE_NSS_CERTS=1'], | 3062 'defines': ['USE_NSS_CERTS=1'], |
3089 }], | 3063 }], |
3090 ['<(use_nss_verifier)==1 and >(nacl_untrusted_build)==0', { | |
3091 'defines': ['USE_NSS_VERIFIER=1'], | |
3092 }], | |
3093 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { | 3064 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { |
3094 'defines': ['OS_CHROMEOS=1'], | 3065 'defines': ['OS_CHROMEOS=1'], |
3095 }], | 3066 }], |
3096 ['enable_wexit_time_destructors==1 and OS!="win"', { | 3067 ['enable_wexit_time_destructors==1 and OS!="win"', { |
3097 # TODO: Enable on Windows too, http://crbug.com/404525 | 3068 # TODO: Enable on Windows too, http://crbug.com/404525 |
3098 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, | 3069 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, |
3099 }], | 3070 }], |
3100 ['chromium_code==0', { | 3071 ['chromium_code==0', { |
3101 'variables': { | 3072 'variables': { |
3102 'clang_warning_flags': [ | 3073 'clang_warning_flags': [ |
(...skipping 3233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6336 # settings in target dicts. SYMROOT is a special case, because many other | 6307 # settings in target dicts. SYMROOT is a special case, because many other |
6337 # Xcode variables depend on it, including variables such as | 6308 # Xcode variables depend on it, including variables such as |
6338 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6309 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6339 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6310 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6340 # files to appear (when present) in the UI as actual files and not red | 6311 # files to appear (when present) in the UI as actual files and not red |
6341 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6312 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6342 # and therefore SYMROOT, needs to be set at the project level. | 6313 # and therefore SYMROOT, needs to be set at the project level. |
6343 'SYMROOT': '<(DEPTH)/xcodebuild', | 6314 'SYMROOT': '<(DEPTH)/xcodebuild', |
6344 }, | 6315 }, |
6345 } | 6316 } |
OLD | NEW |