| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 # 0: Small tables, lower accuracy | 505 # 0: Small tables, lower accuracy |
| 506 # 2: Large tables, high accuracy | 506 # 2: Large tables, high accuracy |
| 507 'cld2_table_size%': 2, | 507 'cld2_table_size%': 2, |
| 508 | 508 |
| 509 # Enable spell checker. | 509 # Enable spell checker. |
| 510 'enable_spellcheck%': 1, | 510 'enable_spellcheck%': 1, |
| 511 | 511 |
| 512 # Webrtc compilation is enabled by default. Set to 0 to disable. | 512 # Webrtc compilation is enabled by default. Set to 0 to disable. |
| 513 'enable_webrtc%': 1, | 513 'enable_webrtc%': 1, |
| 514 | 514 |
| 515 # Media router support is enabled by default. Set to 0 to disable. |
| 516 'enable_media_router%': 1, |
| 517 |
| 515 # Enables use of the session service, which is enabled by default. | 518 # Enables use of the session service, which is enabled by default. |
| 516 # Support for disabling depends on the platform. | 519 # Support for disabling depends on the platform. |
| 517 'enable_session_service%': 1, | 520 'enable_session_service%': 1, |
| 518 | 521 |
| 519 # Enables theme support, which is enabled by default. Support for | 522 # Enables theme support, which is enabled by default. Support for |
| 520 # disabling depends on the platform. | 523 # disabling depends on the platform. |
| 521 'enable_themes%': 1, | 524 'enable_themes%': 1, |
| 522 | 525 |
| 523 # Enables autofill dialog and associated features; disabled by default. | 526 # Enables autofill dialog and associated features; disabled by default. |
| 524 'enable_autofill_dialog%' : 0, | 527 'enable_autofill_dialog%' : 0, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 # gcc >= 4.8 or clang. | 866 # gcc >= 4.8 or clang. |
| 864 # http://gcc.gnu.org/wiki/DebugFission | 867 # http://gcc.gnu.org/wiki/DebugFission |
| 865 ['OS=="linux" and target_arch=="x64"', { | 868 ['OS=="linux" and target_arch=="x64"', { |
| 866 'linux_use_debug_fission%': 1, | 869 'linux_use_debug_fission%': 1, |
| 867 }, { | 870 }, { |
| 868 'linux_use_debug_fission%': 0, | 871 'linux_use_debug_fission%': 0, |
| 869 }], | 872 }], |
| 870 | 873 |
| 871 ['OS=="android" or OS=="ios"', { | 874 ['OS=="android" or OS=="ios"', { |
| 872 'enable_captive_portal_detection%': 0, | 875 'enable_captive_portal_detection%': 0, |
| 876 'enable_media_router%': 0, |
| 873 }, { | 877 }, { |
| 874 'enable_captive_portal_detection%': 1, | 878 'enable_captive_portal_detection%': 1, |
| 879 'enable_media_router%': 1, |
| 875 }], | 880 }], |
| 876 | 881 |
| 877 # Enable Skia UI text drawing incrementally on different platforms. | 882 # Enable Skia UI text drawing incrementally on different platforms. |
| 878 # http://crbug.com/105550 | 883 # http://crbug.com/105550 |
| 879 # | 884 # |
| 880 # On Aura, this allows per-tile painting to be used in the browser | 885 # On Aura, this allows per-tile painting to be used in the browser |
| 881 # compositor. | 886 # compositor. |
| 882 ['OS!="android"', { | 887 ['OS!="android"', { |
| 883 'use_canvas_skia%': 1, | 888 'use_canvas_skia%': 1, |
| 884 }], | 889 }], |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 'chroot_cmd%': '<(chroot_cmd)', | 1109 'chroot_cmd%': '<(chroot_cmd)', |
| 1105 'system_libdir%': '<(system_libdir)', | 1110 'system_libdir%': '<(system_libdir)', |
| 1106 'component%': '<(component)', | 1111 'component%': '<(component)', |
| 1107 'win_analyze%': '<(win_analyze)', | 1112 'win_analyze%': '<(win_analyze)', |
| 1108 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', | 1113 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', |
| 1109 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', | 1114 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', |
| 1110 'use_third_party_translations%': '<(use_third_party_translations)', | 1115 'use_third_party_translations%': '<(use_third_party_translations)', |
| 1111 'remoting%': '<(remoting)', | 1116 'remoting%': '<(remoting)', |
| 1112 'enable_one_click_signin%': '<(enable_one_click_signin)', | 1117 'enable_one_click_signin%': '<(enable_one_click_signin)', |
| 1113 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', | 1118 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', |
| 1119 'enable_media_router%': '<(enable_media_router)', |
| 1114 'enable_webrtc%': '<(enable_webrtc)', | 1120 'enable_webrtc%': '<(enable_webrtc)', |
| 1115 'chromium_win_pch%': '<(chromium_win_pch)', | 1121 'chromium_win_pch%': '<(chromium_win_pch)', |
| 1116 'configuration_policy%': '<(configuration_policy)', | 1122 'configuration_policy%': '<(configuration_policy)', |
| 1117 'safe_browsing%': '<(safe_browsing)', | 1123 'safe_browsing%': '<(safe_browsing)', |
| 1118 'enable_web_speech%': '<(enable_web_speech)', | 1124 'enable_web_speech%': '<(enable_web_speech)', |
| 1119 'notifications%': '<(notifications)', | 1125 'notifications%': '<(notifications)', |
| 1120 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 1126 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
| 1121 'mac_want_real_dsym%': '<(mac_want_real_dsym)', | 1127 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
| 1122 'asan%': '<(asan)', | 1128 'asan%': '<(asan)', |
| 1123 'asan_blacklist%': '<(asan_blacklist)', | 1129 'asan_blacklist%': '<(asan_blacklist)', |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 'winsdk_arch%': 'x86', | 1928 'winsdk_arch%': 'x86', |
| 1923 },{ | 1929 },{ |
| 1924 'winsdk_arch%': '<(target_arch)', | 1930 'winsdk_arch%': '<(target_arch)', |
| 1925 }], | 1931 }], |
| 1926 ['component=="shared_library"', { | 1932 ['component=="shared_library"', { |
| 1927 'win_use_allocator_shim%': 0, | 1933 'win_use_allocator_shim%': 0, |
| 1928 },{ | 1934 },{ |
| 1929 # Turn on multiple dll by default on Windows when in static_library. | 1935 # Turn on multiple dll by default on Windows when in static_library. |
| 1930 'chrome_multiple_dll%': 1, | 1936 'chrome_multiple_dll%': 1, |
| 1931 }], | 1937 }], |
| 1932 ['asan==1', { | 1938 ['asan==1 or syzyasan==1', { |
| 1933 'win_use_allocator_shim%': 0, | 1939 'win_use_allocator_shim%': 0, |
| 1934 }], | 1940 }], |
| 1935 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { | 1941 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { |
| 1936 # Only enabled by default for ninja because it's buggy in VS. | 1942 # Only enabled by default for ninja because it's buggy in VS. |
| 1937 # Not enabled for component=static_library because some targets | 1943 # Not enabled for component=static_library because some targets |
| 1938 # are too large and the toolchain fails due to the size of the | 1944 # are too large and the toolchain fails due to the size of the |
| 1939 # .obj files. | 1945 # .obj files. |
| 1940 'incremental_chrome_dll%': 1, | 1946 'incremental_chrome_dll%': 1, |
| 1941 }], | 1947 }], |
| 1942 # Don't do incremental linking for large modules on 32-bit or when | 1948 # Don't do incremental linking for large modules on 32-bit or when |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2069 ], | 2075 ], |
| 2070 # iOS uses a whitelist to filter resources. | 2076 # iOS uses a whitelist to filter resources. |
| 2071 'grit_whitelist%': '<(DEPTH)/build/ios/grit_whitelist.txt', | 2077 'grit_whitelist%': '<(DEPTH)/build/ios/grit_whitelist.txt', |
| 2072 | 2078 |
| 2073 # Enable host builds when generating with ninja-ios. | 2079 # Enable host builds when generating with ninja-ios. |
| 2074 'conditions': [ | 2080 'conditions': [ |
| 2075 ['"<(GENERATOR)"=="ninja"', { | 2081 ['"<(GENERATOR)"=="ninja"', { |
| 2076 'host_os%': "mac", | 2082 'host_os%': "mac", |
| 2077 }], | 2083 }], |
| 2078 | 2084 |
| 2085 # Use the version of clang shipped with Xcode when building official |
| 2086 # version of Chrome for iOS. |
| 2087 # |
| 2079 # TODO(eugenebut): Remove enable_coverage check once | 2088 # TODO(eugenebut): Remove enable_coverage check once |
| 2080 # libclang_rt.profile_ios.a is bundled with Chromium's clang. | 2089 # libclang_rt.profile_ios.a is bundled with Chromium's clang. |
| 2081 # http://crbug.com/450379 | 2090 # http://crbug.com/450379 |
| 2082 ['enable_coverage or "<(GENERATOR)"=="xcode"', { | 2091 ['buildtype=="Official" or enable_coverage', { |
| 2083 'clang_xcode%': 1, | 2092 'clang_xcode%': 1, |
| 2084 }], | 2093 }], |
| 2085 ], | 2094 ], |
| 2086 }], | 2095 }], |
| 2087 ['enable_extensions==1', { | 2096 ['enable_extensions==1', { |
| 2088 'grit_defines': ['-D', 'enable_extensions'], | 2097 'grit_defines': ['-D', 'enable_extensions'], |
| 2089 }], | 2098 }], |
| 2090 ['enable_plugins!=0', { | 2099 ['enable_plugins!=0', { |
| 2091 'grit_defines': ['-D', 'enable_plugins'], | 2100 'grit_defines': ['-D', 'enable_plugins'], |
| 2092 }], | 2101 }], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2104 }], | 2113 }], |
| 2105 ['enable_settings_app==1', { | 2114 ['enable_settings_app==1', { |
| 2106 'grit_defines': ['-D', 'enable_settings_app'], | 2115 'grit_defines': ['-D', 'enable_settings_app'], |
| 2107 }], | 2116 }], |
| 2108 ['enable_google_now==1', { | 2117 ['enable_google_now==1', { |
| 2109 'grit_defines': ['-D', 'enable_google_now'], | 2118 'grit_defines': ['-D', 'enable_google_now'], |
| 2110 }], | 2119 }], |
| 2111 ['use_concatenated_impulse_responses==1', { | 2120 ['use_concatenated_impulse_responses==1', { |
| 2112 'grit_defines': ['-D', 'use_concatenated_impulse_responses'], | 2121 'grit_defines': ['-D', 'use_concatenated_impulse_responses'], |
| 2113 }], | 2122 }], |
| 2123 ['enable_media_router==1', { |
| 2124 'grit_defines': ['-D', 'enable_media_router'], |
| 2125 }], |
| 2114 ['enable_webrtc==1', { | 2126 ['enable_webrtc==1', { |
| 2115 'grit_defines': ['-D', 'enable_webrtc'], | 2127 'grit_defines': ['-D', 'enable_webrtc'], |
| 2116 }], | 2128 }], |
| 2117 ['enable_hangout_services_extension==1', { | 2129 ['enable_hangout_services_extension==1', { |
| 2118 'grit_defines': ['-D', 'enable_hangout_services_extension'], | 2130 'grit_defines': ['-D', 'enable_hangout_services_extension'], |
| 2119 }], | 2131 }], |
| 2120 ['enable_task_manager==1', { | 2132 ['enable_task_manager==1', { |
| 2121 'grit_defines': ['-D', 'enable_task_manager'], | 2133 'grit_defines': ['-D', 'enable_task_manager'], |
| 2122 }], | 2134 }], |
| 2123 ['notifications==1', { | 2135 ['notifications==1', { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2354 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', | 2366 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', |
| 2355 | 2367 |
| 2356 # The path to the ANGLE library. | 2368 # The path to the ANGLE library. |
| 2357 'angle_path': '<(DEPTH)/third_party/angle', | 2369 'angle_path': '<(DEPTH)/third_party/angle', |
| 2358 | 2370 |
| 2359 # List of default apps to install in new profiles. The first list contains | 2371 # List of default apps to install in new profiles. The first list contains |
| 2360 # the source files as found in svn. The second list, used only for linux, | 2372 # the source files as found in svn. The second list, used only for linux, |
| 2361 # contains the destination location for each of the files. When a crx | 2373 # contains the destination location for each of the files. When a crx |
| 2362 # is added or removed from the list, the chrome/browser/resources/ | 2374 # is added or removed from the list, the chrome/browser/resources/ |
| 2363 # default_apps/external_extensions.json file must also be updated. | 2375 # default_apps/external_extensions.json file must also be updated. |
| 2376 # |
| 2377 # README: GN version of these is in the target //chrome:default_apps |
| 2378 # (there's no global variable like in GYP). Be sure to update that target |
| 2379 # if you change these lists! |
| 2364 'default_apps_list': [ | 2380 'default_apps_list': [ |
| 2365 'browser/resources/default_apps/external_extensions.json', | 2381 'browser/resources/default_apps/external_extensions.json', |
| 2366 'browser/resources/default_apps/gmail.crx', | 2382 'browser/resources/default_apps/gmail.crx', |
| 2367 'browser/resources/default_apps/search.crx', | 2383 'browser/resources/default_apps/search.crx', |
| 2368 'browser/resources/default_apps/youtube.crx', | 2384 'browser/resources/default_apps/youtube.crx', |
| 2369 'browser/resources/default_apps/drive.crx', | 2385 'browser/resources/default_apps/drive.crx', |
| 2370 'browser/resources/default_apps/docs.crx', | 2386 'browser/resources/default_apps/docs.crx', |
| 2371 ], | 2387 ], |
| 2372 'default_apps_list_linux_dest': [ | 2388 'default_apps_list_linux_dest': [ |
| 2373 '<(PRODUCT_DIR)/default_apps/external_extensions.json', | 2389 '<(PRODUCT_DIR)/default_apps/external_extensions.json', |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3583 }, | 3599 }, |
| 3584 'defines': [ | 3600 'defines': [ |
| 3585 '_DEBUG', | 3601 '_DEBUG', |
| 3586 ], | 3602 ], |
| 3587 'cflags': [ | 3603 'cflags': [ |
| 3588 '-O>(debug_optimize)', | 3604 '-O>(debug_optimize)', |
| 3589 '-g', | 3605 '-g', |
| 3590 '-gdwarf-4', | 3606 '-gdwarf-4', |
| 3591 ], | 3607 ], |
| 3592 'conditions' : [ | 3608 'conditions' : [ |
| 3593 ['OS=="android"', { | 3609 ['OS=="android" and target_arch!="mipsel" and target_arch!="mips64
el"', { |
| 3610 # TODO(jdduke) Re-enable on mips after resolving linking |
| 3611 # issues with libc++ (crbug.com/456380). |
| 3594 'ldflags': [ | 3612 'ldflags': [ |
| 3595 # Warn in case of text relocations. | 3613 # Warn in case of text relocations. |
| 3596 '-Wl,--warn-shared-textrel', | 3614 '-Wl,--warn-shared-textrel', |
| 3597 ], | 3615 ], |
| 3598 }], | 3616 }], |
| 3599 ['OS=="android" and android_full_debug==0', { | 3617 ['OS=="android" and android_full_debug==0', { |
| 3600 # Some configurations are copied from Release_Base to reduce | 3618 # Some configurations are copied from Release_Base to reduce |
| 3601 # the binary size. | 3619 # the binary size. |
| 3602 'variables': { | 3620 'variables': { |
| 3603 'debug_optimize%': 's', | 3621 'debug_optimize%': 's', |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3676 ], | 3694 ], |
| 3677 }], | 3695 }], |
| 3678 ['OS=="android" and target_arch!="arm64"', { | 3696 ['OS=="android" and target_arch!="arm64"', { |
| 3679 # We don't omit frame pointers on arm64 since they are required | 3697 # We don't omit frame pointers on arm64 since they are required |
| 3680 # to correctly unwind stackframes which contain system library | 3698 # to correctly unwind stackframes which contain system library |
| 3681 # function frames (crbug.com/391706). | 3699 # function frames (crbug.com/391706). |
| 3682 'cflags': [ | 3700 'cflags': [ |
| 3683 '-fomit-frame-pointer', | 3701 '-fomit-frame-pointer', |
| 3684 ] | 3702 ] |
| 3685 }], | 3703 }], |
| 3704 ['OS=="android" and target_arch!="mipsel" and target_arch!="mips64
el"', { |
| 3705 # TODO(jdduke) Re-enable on mips after resolving linking |
| 3706 # issues with libc++ (crbug.com/456380). |
| 3707 'ldflags': [ |
| 3708 # Warn in case of text relocations. |
| 3709 '-Wl,--warn-shared-textrel', |
| 3710 ], |
| 3711 }], |
| 3686 ['OS=="android"', { | 3712 ['OS=="android"', { |
| 3687 'variables': { | 3713 'variables': { |
| 3688 'release_optimize%': 's', | 3714 'release_optimize%': 's', |
| 3689 }, | 3715 }, |
| 3690 'ldflags': [ | |
| 3691 # Warn in case of text relocations. | |
| 3692 '-Wl,--warn-shared-textrel', | |
| 3693 ], | |
| 3694 }], | 3716 }], |
| 3695 ['profiling==1', { | 3717 ['profiling==1', { |
| 3696 'cflags': [ | 3718 'cflags': [ |
| 3697 '-fno-omit-frame-pointer', | 3719 '-fno-omit-frame-pointer', |
| 3698 '-g', | 3720 '-g', |
| 3699 ], | 3721 ], |
| 3700 'conditions' : [ | 3722 'conditions' : [ |
| 3701 ['profiling_full_stack_frames==1', { | 3723 ['profiling_full_stack_frames==1', { |
| 3702 'cflags': [ | 3724 'cflags': [ |
| 3703 '-fno-inline', | 3725 '-fno-inline', |
| (...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5919 # settings in target dicts. SYMROOT is a special case, because many other | 5941 # settings in target dicts. SYMROOT is a special case, because many other |
| 5920 # Xcode variables depend on it, including variables such as | 5942 # Xcode variables depend on it, including variables such as |
| 5921 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5943 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5922 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5944 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5923 # files to appear (when present) in the UI as actual files and not red | 5945 # files to appear (when present) in the UI as actual files and not red |
| 5924 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5946 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5925 # and therefore SYMROOT, needs to be set at the project level. | 5947 # and therefore SYMROOT, needs to be set at the project level. |
| 5926 'SYMROOT': '<(DEPTH)/xcodebuild', | 5948 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5927 }, | 5949 }, |
| 5928 } | 5950 } |
| OLD | NEW |