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 22 matching lines...) Expand all Loading... |
33 'enable_dip%': 0, | 33 'enable_dip%': 0, |
34 | 34 |
35 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 | 35 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 |
36 'use_openssl%': 0, | 36 'use_openssl%': 0, |
37 | 37 |
38 # Disable Virtual keyboard support by default. | 38 # Disable Virtual keyboard support by default. |
39 'use_virtual_keyboard%': 0, | 39 'use_virtual_keyboard%': 0, |
40 | 40 |
41 # Disable viewport meta tag by default. | 41 # Disable viewport meta tag by default. |
42 'enable_viewport%': 0, | 42 'enable_viewport%': 0, |
43 | |
44 # Enable HiDPI support. | |
45 'enable_hidpi%': 0, | |
46 }, | 43 }, |
47 # Copy conditionally-set variables out one scope. | 44 # Copy conditionally-set variables out one scope. |
48 'chromeos%': '<(chromeos)', | 45 'chromeos%': '<(chromeos)', |
49 'use_aura%': '<(use_aura)', | 46 'use_aura%': '<(use_aura)', |
50 'use_ash%': '<(use_ash)', | 47 'use_ash%': '<(use_ash)', |
51 'enable_dip%': '<(enable_dip)', | 48 'enable_dip%': '<(enable_dip)', |
52 'use_openssl%': '<(use_openssl)', | 49 'use_openssl%': '<(use_openssl)', |
53 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 50 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
54 'enable_viewport%': '<(enable_viewport)', | 51 'enable_viewport%': '<(enable_viewport)', |
55 'enable_hidpi%': '<(enable_hidpi)', | |
56 | 52 |
57 # Compute the architecture that we're building on. | 53 # Compute the architecture that we're building on. |
58 'conditions': [ | 54 'conditions': [ |
59 [ 'OS=="win" or OS=="mac"', { | 55 [ 'OS=="win" or OS=="mac"', { |
60 'host_arch%': 'ia32', | 56 'host_arch%': 'ia32', |
61 }, { | 57 }, { |
62 # This handles the Unix platforms for which there is some support. | 58 # This handles the Unix platforms for which there is some support. |
63 # Anything else gets passed through, which probably won't work very | 59 # Anything else gets passed through, which probably won't work very |
64 # well; such hosts should pass an explicit target_arch to gyp. | 60 # well; such hosts should pass an explicit target_arch to gyp. |
65 'host_arch%': | 61 'host_arch%': |
(...skipping 13 matching lines...) Expand all Loading... |
79 ['use_aura==1 and ((OS=="linux" and chromeos==0) or OS=="win")', { | 75 ['use_aura==1 and ((OS=="linux" and chromeos==0) or OS=="win")', { |
80 'use_ash%': 1, | 76 'use_ash%': 1, |
81 }], | 77 }], |
82 | 78 |
83 # Set default value of toolkit_views based on OS. | 79 # Set default value of toolkit_views based on OS. |
84 ['OS=="win" or chromeos==1 or use_aura==1', { | 80 ['OS=="win" or chromeos==1 or use_aura==1', { |
85 'toolkit_views%': 1, | 81 'toolkit_views%': 1, |
86 }, { | 82 }, { |
87 'toolkit_views%': 0, | 83 'toolkit_views%': 0, |
88 }], | 84 }], |
89 | |
90 # Enable HiDPI on Mac OS. | |
91 ['OS=="mac"', { | |
92 'enable_hidpi%': 1, | |
93 }], | |
94 ], | 85 ], |
95 }, | 86 }, |
96 | 87 |
97 # Copy conditionally-set variables out one scope. | 88 # Copy conditionally-set variables out one scope. |
98 'chromeos%': '<(chromeos)', | 89 'chromeos%': '<(chromeos)', |
99 'host_arch%': '<(host_arch)', | 90 'host_arch%': '<(host_arch)', |
100 'toolkit_views%': '<(toolkit_views)', | 91 'toolkit_views%': '<(toolkit_views)', |
101 'use_aura%': '<(use_aura)', | 92 'use_aura%': '<(use_aura)', |
102 'use_ash%': '<(use_ash)', | 93 'use_ash%': '<(use_ash)', |
103 'enable_dip%': '<(enable_dip)', | 94 'enable_dip%': '<(enable_dip)', |
104 'use_openssl%': '<(use_openssl)', | 95 'use_openssl%': '<(use_openssl)', |
105 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 96 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
106 'enable_viewport%': '<(enable_viewport)', | 97 'enable_viewport%': '<(enable_viewport)', |
107 'enable_hidpi%': '<(enable_hidpi)', | |
108 | 98 |
109 # We used to provide a variable for changing how libraries were built. | 99 # We used to provide a variable for changing how libraries were built. |
110 # This variable remains until we can clean up all the users. | 100 # This variable remains until we can clean up all the users. |
111 # This needs to be one nested variables dict in so that dependent | 101 # This needs to be one nested variables dict in so that dependent |
112 # gyp files can make use of it in their outer variables. (Yikes!) | 102 # gyp files can make use of it in their outer variables. (Yikes!) |
113 # http://code.google.com/p/chromium/issues/detail?id=83308 | 103 # http://code.google.com/p/chromium/issues/detail?id=83308 |
114 'library%': 'static_library', | 104 'library%': 'static_library', |
115 | 105 |
116 # Override branding to select the desired branding flavor. | 106 # Override branding to select the desired branding flavor. |
117 'branding%': 'Chromium', | 107 'branding%': 'Chromium', |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 'use_glib%': '<(use_glib)', | 483 'use_glib%': '<(use_glib)', |
494 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 484 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
495 'use_skia%': '<(use_skia)', | 485 'use_skia%': '<(use_skia)', |
496 'use_x11%': '<(use_x11)', | 486 'use_x11%': '<(use_x11)', |
497 'use_gnome_keyring%': '<(use_gnome_keyring)', | 487 'use_gnome_keyring%': '<(use_gnome_keyring)', |
498 'linux_fpic%': '<(linux_fpic)', | 488 'linux_fpic%': '<(linux_fpic)', |
499 'enable_pepper_threading%': '<(enable_pepper_threading)', | 489 'enable_pepper_threading%': '<(enable_pepper_threading)', |
500 'chromeos%': '<(chromeos)', | 490 'chromeos%': '<(chromeos)', |
501 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 491 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
502 'enable_viewport%': '<(enable_viewport)', | 492 'enable_viewport%': '<(enable_viewport)', |
503 'enable_hidpi%': '<(enable_hidpi)', | |
504 'use_xi2_mt%':'<(use_xi2_mt)', | 493 'use_xi2_mt%':'<(use_xi2_mt)', |
505 'file_manager_extension%': '<(file_manager_extension)', | 494 'file_manager_extension%': '<(file_manager_extension)', |
506 'webui_task_manager%': '<(webui_task_manager)', | 495 'webui_task_manager%': '<(webui_task_manager)', |
507 'inside_chromium_build%': '<(inside_chromium_build)', | 496 'inside_chromium_build%': '<(inside_chromium_build)', |
508 'fastbuild%': '<(fastbuild)', | 497 'fastbuild%': '<(fastbuild)', |
509 'dcheck_always_on%': '<(dcheck_always_on)', | 498 'dcheck_always_on%': '<(dcheck_always_on)', |
510 'python_ver%': '<(python_ver)', | 499 'python_ver%': '<(python_ver)', |
511 'armv7%': '<(armv7)', | 500 'armv7%': '<(armv7)', |
512 'arm_neon%': '<(arm_neon)', | 501 'arm_neon%': '<(arm_neon)', |
513 'sysroot%': '<(sysroot)', | 502 'sysroot%': '<(sysroot)', |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 }], | 1278 }], |
1290 ['configuration_policy==1', { | 1279 ['configuration_policy==1', { |
1291 'defines': ['ENABLE_CONFIGURATION_POLICY'], | 1280 'defines': ['ENABLE_CONFIGURATION_POLICY'], |
1292 }], | 1281 }], |
1293 ['input_speech==1', { | 1282 ['input_speech==1', { |
1294 'defines': ['ENABLE_INPUT_SPEECH'], | 1283 'defines': ['ENABLE_INPUT_SPEECH'], |
1295 }], | 1284 }], |
1296 ['notifications==1', { | 1285 ['notifications==1', { |
1297 'defines': ['ENABLE_NOTIFICATIONS'], | 1286 'defines': ['ENABLE_NOTIFICATIONS'], |
1298 }], | 1287 }], |
1299 ['enable_hidpi==1', { | |
1300 'defines': ['ENABLE_HIDPI=1'], | |
1301 }], | |
1302 ['fastbuild!=0', { | 1288 ['fastbuild!=0', { |
1303 | 1289 |
1304 'conditions': [ | 1290 'conditions': [ |
1305 # For Windows and Mac, we don't genererate debug information. | 1291 # For Windows and Mac, we don't genererate debug information. |
1306 ['OS=="win" or OS=="mac"', { | 1292 ['OS=="win" or OS=="mac"', { |
1307 'msvs_settings': { | 1293 'msvs_settings': { |
1308 'VCLinkerTool': { | 1294 'VCLinkerTool': { |
1309 'GenerateDebugInformation': 'false', | 1295 'GenerateDebugInformation': 'false', |
1310 }, | 1296 }, |
1311 'VCCLCompilerTool': { | 1297 'VCCLCompilerTool': { |
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3023 # settings in target dicts. SYMROOT is a special case, because many other | 3009 # settings in target dicts. SYMROOT is a special case, because many other |
3024 # Xcode variables depend on it, including variables such as | 3010 # Xcode variables depend on it, including variables such as |
3025 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3011 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3026 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3012 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3027 # files to appear (when present) in the UI as actual files and not red | 3013 # files to appear (when present) in the UI as actual files and not red |
3028 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3014 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3029 # and therefore SYMROOT, needs to be set at the project level. | 3015 # and therefore SYMROOT, needs to be set at the project level. |
3030 'SYMROOT': '<(DEPTH)/xcodebuild', | 3016 'SYMROOT': '<(DEPTH)/xcodebuild', |
3031 }, | 3017 }, |
3032 } | 3018 } |
OLD | NEW |