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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 548 |
549 # Android OS includes support for proprietary codecs regardless of | 549 # Android OS includes support for proprietary codecs regardless of |
550 # building Chromium or Google Chrome. We also ship Google Chrome with | 550 # building Chromium or Google Chrome. We also ship Google Chrome with |
551 # proprietary codecs. | 551 # proprietary codecs. |
552 ['OS=="android" or branding=="Chrome"', { | 552 ['OS=="android" or branding=="Chrome"', { |
553 'proprietary_codecs%': 1, | 553 'proprietary_codecs%': 1, |
554 }, { | 554 }, { |
555 'proprietary_codecs%': 0, | 555 'proprietary_codecs%': 0, |
556 }], | 556 }], |
557 | 557 |
| 558 ['OS=="mac"', { |
| 559 'native_discardable_memory%': 1, |
| 560 'native_memory_pressure_signals%': 1, |
| 561 }], |
| 562 |
558 # Enable autofill dialog for Android, Mac and Views-enabled platforms. | 563 # Enable autofill dialog for Android, Mac and Views-enabled platforms. |
559 ['toolkit_views==1 or (OS=="android" and android_webview_build==0) or OS
=="mac"', { | 564 ['toolkit_views==1 or (OS=="android" and android_webview_build==0) or OS
=="mac"', { |
560 'enable_autofill_dialog%': 1 | 565 'enable_autofill_dialog%': 1 |
561 }], | 566 }], |
562 | 567 |
563 ['OS=="android" and android_webview_build==0', { | 568 ['OS=="android" and android_webview_build==0', { |
564 'enable_webrtc%': 1, | 569 'enable_webrtc%': 1, |
565 }], | 570 }], |
566 | 571 |
567 # Disable WebRTC for building WebView as part of Android system. | 572 # Disable WebRTC for building WebView as part of Android system. |
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 }], | 2047 }], |
2043 ['input_speech==1', { | 2048 ['input_speech==1', { |
2044 'defines': ['ENABLE_INPUT_SPEECH'], | 2049 'defines': ['ENABLE_INPUT_SPEECH'], |
2045 }], | 2050 }], |
2046 ['notifications==1', { | 2051 ['notifications==1', { |
2047 'defines': ['ENABLE_NOTIFICATIONS'], | 2052 'defines': ['ENABLE_NOTIFICATIONS'], |
2048 }], | 2053 }], |
2049 ['enable_hidpi==1', { | 2054 ['enable_hidpi==1', { |
2050 'defines': ['ENABLE_HIDPI=1'], | 2055 'defines': ['ENABLE_HIDPI=1'], |
2051 }], | 2056 }], |
| 2057 ['native_discardable_memory==1', { |
| 2058 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], |
| 2059 }], |
| 2060 ['native_memory_pressure_signals==1', { |
| 2061 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], |
| 2062 }], |
2052 ['fastbuild!=0', { | 2063 ['fastbuild!=0', { |
2053 'xcode_settings': { | 2064 'xcode_settings': { |
2054 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', | 2065 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', |
2055 }, | 2066 }, |
2056 'conditions': [ | 2067 'conditions': [ |
2057 ['clang==1', { | 2068 ['clang==1', { |
2058 # Clang creates chubby debug information, which makes linking very | 2069 # Clang creates chubby debug information, which makes linking very |
2059 # slow. For now, don't create debug information with clang. See | 2070 # slow. For now, don't create debug information with clang. See |
2060 # http://crbug.com/70000 | 2071 # http://crbug.com/70000 |
2061 'conditions': [ | 2072 'conditions': [ |
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3458 ['linux_use_gold_binary==1', { | 3469 ['linux_use_gold_binary==1', { |
3459 'ldflags': [ | 3470 'ldflags': [ |
3460 # Put our gold binary in the search path for the linker. | 3471 # Put our gold binary in the search path for the linker. |
3461 # We pass the path to gold to the compiler. gyp leaves | 3472 # We pass the path to gold to the compiler. gyp leaves |
3462 # unspecified what the cwd is when running the compiler, | 3473 # unspecified what the cwd is when running the compiler, |
3463 # so the normal gyp path-munging fails us. This hack | 3474 # so the normal gyp path-munging fails us. This hack |
3464 # gets the right path. | 3475 # gets the right path. |
3465 '-B<(PRODUCT_DIR)/../../third_party/gold', | 3476 '-B<(PRODUCT_DIR)/../../third_party/gold', |
3466 ], | 3477 ], |
3467 }], | 3478 }], |
3468 ['native_discardable_memory', { | |
3469 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], | |
3470 }], | |
3471 ['native_memory_pressure_signals', { | |
3472 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], | |
3473 }], | |
3474 ], | 3479 ], |
3475 }, | 3480 }, |
3476 }], | 3481 }], |
3477 # FreeBSD-specific options; note that most FreeBSD options are set above, | 3482 # FreeBSD-specific options; note that most FreeBSD options are set above, |
3478 # with Linux. | 3483 # with Linux. |
3479 ['OS=="freebsd"', { | 3484 ['OS=="freebsd"', { |
3480 'target_defaults': { | 3485 'target_defaults': { |
3481 'ldflags': [ | 3486 'ldflags': [ |
3482 '-Wl,--no-keep-memory', | 3487 '-Wl,--no-keep-memory', |
3483 ], | 3488 ], |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4729 # settings in target dicts. SYMROOT is a special case, because many other | 4734 # settings in target dicts. SYMROOT is a special case, because many other |
4730 # Xcode variables depend on it, including variables such as | 4735 # Xcode variables depend on it, including variables such as |
4731 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4736 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4732 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4737 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4733 # files to appear (when present) in the UI as actual files and not red | 4738 # files to appear (when present) in the UI as actual files and not red |
4734 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4739 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4735 # and therefore SYMROOT, needs to be set at the project level. | 4740 # and therefore SYMROOT, needs to be set at the project level. |
4736 'SYMROOT': '<(DEPTH)/xcodebuild', | 4741 'SYMROOT': '<(DEPTH)/xcodebuild', |
4737 }, | 4742 }, |
4738 } | 4743 } |
OLD | NEW |