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