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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 'enable_spellcheck%': 0, | 523 'enable_spellcheck%': 0, |
524 'enable_themes%': 0, | 524 'enable_themes%': 0, |
525 'proprietary_codecs%': 1, | 525 'proprietary_codecs%': 1, |
526 'remoting%': 0, | 526 'remoting%': 0, |
527 'arm_neon%': 0, | 527 'arm_neon%': 0, |
528 'arm_neon_optional%': 1, | 528 'arm_neon_optional%': 1, |
529 'native_discardable_memory%': 1, | 529 'native_discardable_memory%': 1, |
530 'native_memory_pressure_signals%': 1, | 530 'native_memory_pressure_signals%': 1, |
531 }], | 531 }], |
532 | 532 |
| 533 ['OS=="mac"', { |
| 534 'native_discardable_memory%': 1, |
| 535 'native_memory_pressure_signals%': 1, |
| 536 }], |
| 537 |
533 # Enable autofill dialog for Mac and Views-enabled platforms for now. | 538 # Enable autofill dialog for Mac and Views-enabled platforms for now. |
534 ['toolkit_views==1 or OS=="mac"', { | 539 ['toolkit_views==1 or OS=="mac"', { |
535 'enable_autofill_dialog%': 1 | 540 'enable_autofill_dialog%': 1 |
536 }], | 541 }], |
537 | 542 |
538 ['OS=="android" and android_webview_build==0', { | 543 ['OS=="android" and android_webview_build==0', { |
539 'enable_webrtc%': 1, | 544 'enable_webrtc%': 1, |
540 }], | 545 }], |
541 | 546 |
542 # Disable WebRTC for building WebView as part of Android system. | 547 # Disable WebRTC for building WebView as part of Android system. |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2010 }], | 2015 }], |
2011 ['input_speech==1', { | 2016 ['input_speech==1', { |
2012 'defines': ['ENABLE_INPUT_SPEECH'], | 2017 'defines': ['ENABLE_INPUT_SPEECH'], |
2013 }], | 2018 }], |
2014 ['notifications==1', { | 2019 ['notifications==1', { |
2015 'defines': ['ENABLE_NOTIFICATIONS'], | 2020 'defines': ['ENABLE_NOTIFICATIONS'], |
2016 }], | 2021 }], |
2017 ['enable_hidpi==1', { | 2022 ['enable_hidpi==1', { |
2018 'defines': ['ENABLE_HIDPI=1'], | 2023 'defines': ['ENABLE_HIDPI=1'], |
2019 }], | 2024 }], |
| 2025 ['native_discardable_memory==1', { |
| 2026 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], |
| 2027 }], |
| 2028 ['native_memory_pressure_signals==1', { |
| 2029 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], |
| 2030 }], |
2020 ['fastbuild!=0', { | 2031 ['fastbuild!=0', { |
2021 'xcode_settings': { | 2032 'xcode_settings': { |
2022 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', | 2033 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', |
2023 }, | 2034 }, |
2024 'conditions': [ | 2035 'conditions': [ |
2025 ['clang==1', { | 2036 ['clang==1', { |
2026 # Clang creates chubby debug information, which makes linking very | 2037 # Clang creates chubby debug information, which makes linking very |
2027 # slow. For now, don't create debug information with clang. See | 2038 # slow. For now, don't create debug information with clang. See |
2028 # http://crbug.com/70000 | 2039 # http://crbug.com/70000 |
2029 'conditions': [ | 2040 'conditions': [ |
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3440 ['linux_use_gold_binary==1', { | 3451 ['linux_use_gold_binary==1', { |
3441 'ldflags': [ | 3452 'ldflags': [ |
3442 # Put our gold binary in the search path for the linker. | 3453 # Put our gold binary in the search path for the linker. |
3443 # We pass the path to gold to the compiler. gyp leaves | 3454 # We pass the path to gold to the compiler. gyp leaves |
3444 # unspecified what the cwd is when running the compiler, | 3455 # unspecified what the cwd is when running the compiler, |
3445 # so the normal gyp path-munging fails us. This hack | 3456 # so the normal gyp path-munging fails us. This hack |
3446 # gets the right path. | 3457 # gets the right path. |
3447 '-B<(PRODUCT_DIR)/../../third_party/gold', | 3458 '-B<(PRODUCT_DIR)/../../third_party/gold', |
3448 ], | 3459 ], |
3449 }], | 3460 }], |
3450 ['native_discardable_memory', { | |
3451 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], | |
3452 }], | |
3453 ['native_memory_pressure_signals', { | |
3454 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], | |
3455 }], | |
3456 ], | 3461 ], |
3457 }, | 3462 }, |
3458 }], | 3463 }], |
3459 # FreeBSD-specific options; note that most FreeBSD options are set above, | 3464 # FreeBSD-specific options; note that most FreeBSD options are set above, |
3460 # with Linux. | 3465 # with Linux. |
3461 ['OS=="freebsd"', { | 3466 ['OS=="freebsd"', { |
3462 'target_defaults': { | 3467 'target_defaults': { |
3463 'ldflags': [ | 3468 'ldflags': [ |
3464 '-Wl,--no-keep-memory', | 3469 '-Wl,--no-keep-memory', |
3465 ], | 3470 ], |
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4704 # settings in target dicts. SYMROOT is a special case, because many other | 4709 # settings in target dicts. SYMROOT is a special case, because many other |
4705 # Xcode variables depend on it, including variables such as | 4710 # Xcode variables depend on it, including variables such as |
4706 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4711 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4707 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4712 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4708 # files to appear (when present) in the UI as actual files and not red | 4713 # files to appear (when present) in the UI as actual files and not red |
4709 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4714 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4710 # and therefore SYMROOT, needs to be set at the project level. | 4715 # and therefore SYMROOT, needs to be set at the project level. |
4711 'SYMROOT': '<(DEPTH)/xcodebuild', | 4716 'SYMROOT': '<(DEPTH)/xcodebuild', |
4712 }, | 4717 }, |
4713 } | 4718 } |
OLD | NEW |