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 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3456 ['linux_use_gold_binary==1', { | 3467 ['linux_use_gold_binary==1', { |
3457 'ldflags': [ | 3468 'ldflags': [ |
3458 # Put our gold binary in the search path for the linker. | 3469 # Put our gold binary in the search path for the linker. |
3459 # We pass the path to gold to the compiler. gyp leaves | 3470 # We pass the path to gold to the compiler. gyp leaves |
3460 # unspecified what the cwd is when running the compiler, | 3471 # unspecified what the cwd is when running the compiler, |
3461 # so the normal gyp path-munging fails us. This hack | 3472 # so the normal gyp path-munging fails us. This hack |
3462 # gets the right path. | 3473 # gets the right path. |
3463 '-B<(PRODUCT_DIR)/../../third_party/gold', | 3474 '-B<(PRODUCT_DIR)/../../third_party/gold', |
3464 ], | 3475 ], |
3465 }], | 3476 }], |
3466 ['native_discardable_memory', { | |
3467 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], | |
3468 }], | |
3469 ['native_memory_pressure_signals', { | |
3470 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], | |
3471 }], | |
3472 ], | 3477 ], |
3473 }, | 3478 }, |
3474 }], | 3479 }], |
3475 # FreeBSD-specific options; note that most FreeBSD options are set above, | 3480 # FreeBSD-specific options; note that most FreeBSD options are set above, |
3476 # with Linux. | 3481 # with Linux. |
3477 ['OS=="freebsd"', { | 3482 ['OS=="freebsd"', { |
3478 'target_defaults': { | 3483 'target_defaults': { |
3479 'ldflags': [ | 3484 'ldflags': [ |
3480 '-Wl,--no-keep-memory', | 3485 '-Wl,--no-keep-memory', |
3481 ], | 3486 ], |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4727 # settings in target dicts. SYMROOT is a special case, because many other | 4732 # settings in target dicts. SYMROOT is a special case, because many other |
4728 # Xcode variables depend on it, including variables such as | 4733 # Xcode variables depend on it, including variables such as |
4729 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4734 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4730 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4735 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4731 # files to appear (when present) in the UI as actual files and not red | 4736 # files to appear (when present) in the UI as actual files and not red |
4732 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4737 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4733 # and therefore SYMROOT, needs to be set at the project level. | 4738 # and therefore SYMROOT, needs to be set at the project level. |
4734 'SYMROOT': '<(DEPTH)/xcodebuild', | 4739 'SYMROOT': '<(DEPTH)/xcodebuild', |
4735 }, | 4740 }, |
4736 } | 4741 } |
OLD | NEW |