| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 21 matching lines...) Expand all Loading... |
| 32 'use_only_pure_views%': 0, | 32 'use_only_pure_views%': 0, |
| 33 | 33 |
| 34 # Disable touch support by default. | 34 # Disable touch support by default. |
| 35 'touchui%': 0, | 35 'touchui%': 0, |
| 36 | 36 |
| 37 # Whether the compositor is enabled on views. | 37 # Whether the compositor is enabled on views. |
| 38 'views_compositor%': 0, | 38 'views_compositor%': 0, |
| 39 | 39 |
| 40 # Whether or not we are building with the Aura window manager. | 40 # Whether or not we are building with the Aura window manager. |
| 41 'use_aura%': 0, | 41 'use_aura%': 0, |
| 42 |
| 43 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 |
| 44 'use_openssl%': 0, |
| 42 }, | 45 }, |
| 43 # Copy conditionally-set variables out one scope. | 46 # Copy conditionally-set variables out one scope. |
| 44 'chromeos%': '<(chromeos)', | 47 'chromeos%': '<(chromeos)', |
| 45 'use_only_pure_views%': '<(use_only_pure_views)', | 48 'use_only_pure_views%': '<(use_only_pure_views)', |
| 46 'touchui%': '<(touchui)', | 49 'touchui%': '<(touchui)', |
| 47 'views_compositor%': '<(views_compositor)', | 50 'views_compositor%': '<(views_compositor)', |
| 48 'use_aura%': '<(use_aura)', | 51 'use_aura%': '<(use_aura)', |
| 52 'use_openssl%': '<(use_openssl)', |
| 49 | 53 |
| 50 # Compute the architecture that we're building on. | 54 # Compute the architecture that we're building on. |
| 51 'conditions': [ | 55 'conditions': [ |
| 52 [ 'OS=="win" or OS=="mac"', { | 56 [ 'OS=="win" or OS=="mac"', { |
| 53 'host_arch%': 'ia32', | 57 'host_arch%': 'ia32', |
| 54 }, { | 58 }, { |
| 55 # This handles the Unix platforms for which there is some support. | 59 # This handles the Unix platforms for which there is some support. |
| 56 # Anything else gets passed through, which probably won't work very | 60 # Anything else gets passed through, which probably won't work very |
| 57 # well; such hosts should pass an explicit target_arch to gyp. | 61 # well; such hosts should pass an explicit target_arch to gyp. |
| 58 'host_arch%': | 62 'host_arch%': |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 95 |
| 92 # Copy conditionally-set variables out one scope. | 96 # Copy conditionally-set variables out one scope. |
| 93 'chromeos%': '<(chromeos)', | 97 'chromeos%': '<(chromeos)', |
| 94 'touchui%': '<(touchui)', | 98 'touchui%': '<(touchui)', |
| 95 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 99 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
| 96 'host_arch%': '<(host_arch)', | 100 'host_arch%': '<(host_arch)', |
| 97 'toolkit_views%': '<(toolkit_views)', | 101 'toolkit_views%': '<(toolkit_views)', |
| 98 'use_only_pure_views%': '<(use_only_pure_views)', | 102 'use_only_pure_views%': '<(use_only_pure_views)', |
| 99 'views_compositor%': '<(views_compositor)', | 103 'views_compositor%': '<(views_compositor)', |
| 100 'use_aura%': '<(use_aura)', | 104 'use_aura%': '<(use_aura)', |
| 105 'use_openssl%': '<(use_openssl)', |
| 101 | 106 |
| 102 # We used to provide a variable for changing how libraries were built. | 107 # We used to provide a variable for changing how libraries were built. |
| 103 # This variable remains until we can clean up all the users. | 108 # This variable remains until we can clean up all the users. |
| 104 # This needs to be one nested variables dict in so that dependent | 109 # This needs to be one nested variables dict in so that dependent |
| 105 # gyp files can make use of it in their outer variables. (Yikes!) | 110 # gyp files can make use of it in their outer variables. (Yikes!) |
| 106 # http://code.google.com/p/chromium/issues/detail?id=83308 | 111 # http://code.google.com/p/chromium/issues/detail?id=83308 |
| 107 'library%': 'static_library', | 112 'library%': 'static_library', |
| 108 | 113 |
| 109 # Override branding to select the desired branding flavor. | 114 # Override branding to select the desired branding flavor. |
| 110 'branding%': 'Chromium', | 115 'branding%': 'Chromium', |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 }], | 250 }], |
| 246 | 251 |
| 247 # A flag for POSIX platforms | 252 # A flag for POSIX platforms |
| 248 ['OS=="win"', { | 253 ['OS=="win"', { |
| 249 'os_posix%': 0, | 254 'os_posix%': 0, |
| 250 }, { | 255 }, { |
| 251 'os_posix%': 1, | 256 'os_posix%': 1, |
| 252 }], | 257 }], |
| 253 | 258 |
| 254 # NSS usage. | 259 # NSS usage. |
| 255 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 260 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u
se_openssl==0', { |
| 256 'use_nss%': 1, | 261 'use_nss%': 1, |
| 257 }, { | 262 }, { |
| 258 'use_nss%': 0, | 263 'use_nss%': 0, |
| 259 }], | 264 }], |
| 260 | 265 |
| 261 # Flags to use X11 on non-Mac POSIX platforms | 266 # Flags to use X11 on non-Mac POSIX platforms |
| 262 ['OS=="win" or OS=="mac" or OS=="android"', { | 267 ['OS=="win" or OS=="mac" or OS=="android"', { |
| 263 'use_glib%': 0, | 268 'use_glib%': 0, |
| 264 'toolkit_uses_gtk%': 0, | 269 'toolkit_uses_gtk%': 0, |
| 265 'use_x11%': 0, | 270 'use_x11%': 0, |
| 266 }, { | 271 }, { |
| 267 # TODO(dnicoara) Wayland build should have these disabled, but | 272 # TODO(dnicoara) Wayland build should have these disabled, but |
| 268 # currently GTK and X is too spread and it's hard to completely | 273 # currently GTK and X is too spread and it's hard to completely |
| 269 # remove every dependency. | 274 # remove every dependency. |
| 270 'use_glib%': 1, | 275 'use_glib%': 1, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 # Copy conditionally-set variables out one scope. | 333 # Copy conditionally-set variables out one scope. |
| 329 'branding%': '<(branding)', | 334 'branding%': '<(branding)', |
| 330 'buildtype%': '<(buildtype)', | 335 'buildtype%': '<(buildtype)', |
| 331 'target_arch%': '<(target_arch)', | 336 'target_arch%': '<(target_arch)', |
| 332 'host_arch%': '<(host_arch)', | 337 'host_arch%': '<(host_arch)', |
| 333 'library%': 'static_library', | 338 'library%': 'static_library', |
| 334 'toolkit_views%': '<(toolkit_views)', | 339 'toolkit_views%': '<(toolkit_views)', |
| 335 'use_only_pure_views%': '<(use_only_pure_views)', | 340 'use_only_pure_views%': '<(use_only_pure_views)', |
| 336 'views_compositor%': '<(views_compositor)', | 341 'views_compositor%': '<(views_compositor)', |
| 337 'use_aura%': '<(use_aura)', | 342 'use_aura%': '<(use_aura)', |
| 343 'use_openssl%': '<(use_openssl)', |
| 338 'use_nss%': '<(use_nss)', | 344 'use_nss%': '<(use_nss)', |
| 339 'os_posix%': '<(os_posix)', | 345 'os_posix%': '<(os_posix)', |
| 340 'use_glib%': '<(use_glib)', | 346 'use_glib%': '<(use_glib)', |
| 341 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 347 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
| 342 'use_skia%': '<(use_skia)', | 348 'use_skia%': '<(use_skia)', |
| 343 'use_x11%': '<(use_x11)', | 349 'use_x11%': '<(use_x11)', |
| 344 'use_gnome_keyring%': '<(use_gnome_keyring)', | 350 'use_gnome_keyring%': '<(use_gnome_keyring)', |
| 345 'linux_fpic%': '<(linux_fpic)', | 351 'linux_fpic%': '<(linux_fpic)', |
| 346 'enable_flapper_hacks%': '<(enable_flapper_hacks)', | 352 'enable_flapper_hacks%': '<(enable_flapper_hacks)', |
| 347 'chromeos%': '<(chromeos)', | 353 'chromeos%': '<(chromeos)', |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 # Enable new NPDevice API. | 535 # Enable new NPDevice API. |
| 530 'enable_new_npdevice_api%': 0, | 536 'enable_new_npdevice_api%': 0, |
| 531 | 537 |
| 532 # Enable EGLImage support in OpenMAX | 538 # Enable EGLImage support in OpenMAX |
| 533 'enable_eglimage%': 1, | 539 'enable_eglimage%': 1, |
| 534 | 540 |
| 535 # Enable a variable used elsewhere throughout the GYP files to determine | 541 # Enable a variable used elsewhere throughout the GYP files to determine |
| 536 # whether to compile in the sources for the GPU plugin / process. | 542 # whether to compile in the sources for the GPU plugin / process. |
| 537 'enable_gpu%': 1, | 543 'enable_gpu%': 1, |
| 538 | 544 |
| 539 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/62803 | |
| 540 'use_openssl%': 0, | |
| 541 | |
| 542 # .gyp files or targets should set chromium_code to 1 if they build | 545 # .gyp files or targets should set chromium_code to 1 if they build |
| 543 # Chromium-specific code, as opposed to external code. This variable is | 546 # Chromium-specific code, as opposed to external code. This variable is |
| 544 # used to control such things as the set of warnings to enable, and | 547 # used to control such things as the set of warnings to enable, and |
| 545 # whether warnings are treated as errors. | 548 # whether warnings are treated as errors. |
| 546 'chromium_code%': 0, | 549 'chromium_code%': 0, |
| 547 | 550 |
| 548 # Set to 1 to compile with the built in pdf viewer. | 551 # Set to 1 to compile with the built in pdf viewer. |
| 549 'internal_pdf%': 0, | 552 'internal_pdf%': 0, |
| 550 | 553 |
| 551 # This allows to use libcros from the current system, ie. /usr/lib/ | 554 # This allows to use libcros from the current system, ie. /usr/lib/ |
| (...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2492 # settings in target dicts. SYMROOT is a special case, because many other | 2495 # settings in target dicts. SYMROOT is a special case, because many other |
| 2493 # Xcode variables depend on it, including variables such as | 2496 # Xcode variables depend on it, including variables such as |
| 2494 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2497 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 2495 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2498 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 2496 # files to appear (when present) in the UI as actual files and not red | 2499 # files to appear (when present) in the UI as actual files and not red |
| 2497 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2500 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 2498 # and therefore SYMROOT, needs to be set at the project level. | 2501 # and therefore SYMROOT, needs to be set at the project level. |
| 2499 'SYMROOT': '<(DEPTH)/xcodebuild', | 2502 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 2500 }, | 2503 }, |
| 2501 } | 2504 } |
| OLD | NEW |