Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: build/common.gypi

Issue 223143004: Add chromecast_build gyp variable and add rules when the variable is set to 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 'target_arch%': '<(target_arch)', 151 'target_arch%': '<(target_arch)',
152 152
153 'target_subarch%': '', 153 'target_subarch%': '',
154 154
155 # This is set when building the Android WebView inside the Android 155 # This is set when building the Android WebView inside the Android
156 # build system, using the 'android' gyp backend. The WebView code is 156 # build system, using the 'android' gyp backend. The WebView code is
157 # still built when this is unset, but builds using the normal chromium 157 # still built when this is unset, but builds using the normal chromium
158 # build system. 158 # build system.
159 'android_webview_build%': 0, 159 'android_webview_build%': 0,
160 160
161 # This is set when building Chromecast using the build environment
162 # and scripts inside Chromecast directory.
163 'chromecast_build%': 0,
164
161 # Set ARM architecture version. 165 # Set ARM architecture version.
162 'arm_version%': 7, 166 'arm_version%': 7,
163 167
164 # Use aurax11 for clipboard implementation. This is true on linux_aura. 168 # Use aurax11 for clipboard implementation. This is true on linux_aura.
165 'use_clipboard_aurax11%': 0, 169 'use_clipboard_aurax11%': 0,
166 170
167 # goma settings. 171 # goma settings.
168 # 1 to use goma. 172 # 1 to use goma.
169 # If no gomadir is set, it uses the default gomadir. 173 # If no gomadir is set, it uses the default gomadir.
170 'use_goma%': 0, 174 'use_goma%': 0,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 'use_ozone%': '<(use_ozone)', 265 'use_ozone%': '<(use_ozone)',
262 'use_ozone_evdev%': '<(use_ozone_evdev)', 266 'use_ozone_evdev%': '<(use_ozone_evdev)',
263 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 267 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
264 'embedded%': '<(embedded)', 268 'embedded%': '<(embedded)',
265 'use_openssl%': '<(use_openssl)', 269 'use_openssl%': '<(use_openssl)',
266 'use_openssl_certs%': '<(use_openssl_certs)', 270 'use_openssl_certs%': '<(use_openssl_certs)',
267 'use_system_fontconfig%': '<(use_system_fontconfig)', 271 'use_system_fontconfig%': '<(use_system_fontconfig)',
268 'enable_viewport%': '<(enable_viewport)', 272 'enable_viewport%': '<(enable_viewport)',
269 'enable_hidpi%': '<(enable_hidpi)', 273 'enable_hidpi%': '<(enable_hidpi)',
270 'android_webview_build%': '<(android_webview_build)', 274 'android_webview_build%': '<(android_webview_build)',
275 'chromecast_build%': '<(chromecast_build)',
271 'use_goma%': '<(use_goma)', 276 'use_goma%': '<(use_goma)',
272 'gomadir%': '<(gomadir)', 277 'gomadir%': '<(gomadir)',
273 'enable_app_list%': '<(enable_app_list)', 278 'enable_app_list%': '<(enable_app_list)',
274 'use_default_render_theme%': '<(use_default_render_theme)', 279 'use_default_render_theme%': '<(use_default_render_theme)',
275 'buildtype%': '<(buildtype)', 280 'buildtype%': '<(buildtype)',
276 'branding%': '<(branding)', 281 'branding%': '<(branding)',
277 'arm_version%': '<(arm_version)', 282 'arm_version%': '<(arm_version)',
278 'sysroot%': '<(sysroot)', 283 'sysroot%': '<(sysroot)',
279 'chroot_cmd%': '<(chroot_cmd)', 284 'chroot_cmd%': '<(chroot_cmd)',
280 285
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 'cld2_table_size%': '<(cld2_table_size)', 1035 'cld2_table_size%': '<(cld2_table_size)',
1031 'cld2_dynamic%': '<(cld2_dynamic)', 1036 'cld2_dynamic%': '<(cld2_dynamic)',
1032 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1037 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
1033 'disable_ftp_support%': '<(disable_ftp_support)', 1038 'disable_ftp_support%': '<(disable_ftp_support)',
1034 'enable_task_manager%': '<(enable_task_manager)', 1039 'enable_task_manager%': '<(enable_task_manager)',
1035 'sas_dll_path%': '<(sas_dll_path)', 1040 'sas_dll_path%': '<(sas_dll_path)',
1036 'wix_path%': '<(wix_path)', 1041 'wix_path%': '<(wix_path)',
1037 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 1042 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
1038 'use_system_libjpeg%': '<(use_system_libjpeg)', 1043 'use_system_libjpeg%': '<(use_system_libjpeg)',
1039 'android_webview_build%': '<(android_webview_build)', 1044 'android_webview_build%': '<(android_webview_build)',
1045 'chromecast_build%': '<(chromecast_build)',
1040 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', 1046 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)',
1041 'gyp_managed_install%': 0, 1047 'gyp_managed_install%': 0,
1042 'create_standalone_apk%': 1, 1048 'create_standalone_apk%': 1,
1043 'enable_app_list%': '<(enable_app_list)', 1049 'enable_app_list%': '<(enable_app_list)',
1044 'use_default_render_theme%': '<(use_default_render_theme)', 1050 'use_default_render_theme%': '<(use_default_render_theme)',
1045 'enable_settings_app%': '<(enable_settings_app)', 1051 'enable_settings_app%': '<(enable_settings_app)',
1046 'google_api_key%': '<(google_api_key)', 1052 'google_api_key%': '<(google_api_key)',
1047 'google_default_client_id%': '<(google_default_client_id)', 1053 'google_default_client_id%': '<(google_default_client_id)',
1048 'google_default_client_secret%': '<(google_default_client_secret)', 1054 'google_default_client_secret%': '<(google_default_client_secret)',
1049 'enable_managed_users%': '<(enable_managed_users)', 1055 'enable_managed_users%': '<(enable_managed_users)',
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 'VCLinkerTool': { 2492 'VCLinkerTool': {
2487 'GenerateDebugInformation': 'true', 2493 'GenerateDebugInformation': 'true',
2488 }, 2494 },
2489 'VCCLCompilerTool': { 2495 'VCCLCompilerTool': {
2490 'DebugInformationFormat': '1', 2496 'DebugInformationFormat': '1',
2491 } 2497 }
2492 } 2498 }
2493 }], 2499 }],
2494 ], # win_z7!=0 2500 ], # win_z7!=0
2495 }], # OS==win 2501 }], # OS==win
2502 ['chromecast_build==1', {
2503 'defines': [
2504 'CHROMECAST_BUILD',
darin (slow to review) 2014/04/14 04:50:35 I think it would be nice to see if we could solve
2505 'LOG_DISABLED=0',
2506 'ENABLE_MPEG2TS_STREAM_PARSER',
damienv1 2014/04/03 21:45:33 There is now a gyp parameter the mpeg2 TS parser:
2507 ],
2508 'conditions': [
2509 ['target_arch=="arm"', {
2510 'defines': [
2511 # Work around an error when compiling v8/src/platform-linux.cc
2512 # with gcc-4.5.
2513 '__SOFTFP',
2514 ],
2515 }],
2516 ],
2517 }],
2496 ['enable_task_manager==1', { 2518 ['enable_task_manager==1', {
2497 'defines': [ 2519 'defines': [
2498 'ENABLE_TASK_MANAGER=1', 2520 'ENABLE_TASK_MANAGER=1',
2499 ], 2521 ],
2500 }], 2522 }],
2501 ['enable_extensions==1', { 2523 ['enable_extensions==1', {
2502 'defines': [ 2524 'defines': [
2503 'ENABLE_EXTENSIONS=1', 2525 'ENABLE_EXTENSIONS=1',
2504 ], 2526 ],
2505 }], 2527 }],
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
3465 '-B<(PRODUCT_DIR)/../../build/android/arm-linux-androi deabi-gold', 3487 '-B<(PRODUCT_DIR)/../../build/android/arm-linux-androi deabi-gold',
3466 ], 3488 ],
3467 }], 3489 }],
3468 ['asan==1', { 3490 ['asan==1', {
3469 'cflags': [ 3491 'cflags': [
3470 '-marm', # Required for frame pointer based stack trac es. 3492 '-marm', # Required for frame pointer based stack trac es.
3471 ], 3493 ],
3472 }], 3494 }],
3473 ], 3495 ],
3474 }], 3496 }],
3497 ['chromecast_build==1', {
3498 'cflags': [
3499 # We set arm_arch to "" so that -march compiler option
3500 # is not set. Otherwise a gcc bug that would complain
3501 # about it conflicting with '-mcpu=cortex-a9'. The flag
3502 # '-march=armv7-a' is actually redundant anyway because
3503 # it is enabled by default when we built the toolchain.
3504 # And using '-mcpu=cortex-a9' should be sufficient.
3505 '-mcpu=cortex-a9',
3506 '-funwind-tables',
3507 # Breakpad requires symbols with debugging information
3508 '-g',
3509 ],
3510 'ldflags': [
3511 # We want to statically link libstdc++/libgcc_s.
3512 '-static-libstdc++',
3513 '-static-libgcc',
3514 ],
3515 'cflags!': [
3516 # Some components in Chormium (e.g. v8) define their own
3517 # cflags that are not desirable. Remove them explicitly
3518 # here.
3519 '-march=armv7-a',
3520 '-mtune=cortex-a8',
3521 ],
3522 }],
3475 ], 3523 ],
3476 }], 3524 }],
3477 ], 3525 ],
3478 }], 3526 }],
3479 ['target_arch=="arm64"', { 3527 ['target_arch=="arm64"', {
3480 'target_conditions': [ 3528 'target_conditions': [
3481 ['_toolset=="target"', { 3529 ['_toolset=="target"', {
3482 'conditions': [ 3530 'conditions': [
3483 ['OS=="android"', { 3531 ['OS=="android"', {
3484 'cflags!': [ 3532 'cflags!': [
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
5204 # settings in target dicts. SYMROOT is a special case, because many other 5252 # settings in target dicts. SYMROOT is a special case, because many other
5205 # Xcode variables depend on it, including variables such as 5253 # Xcode variables depend on it, including variables such as
5206 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5254 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5207 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5255 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5208 # files to appear (when present) in the UI as actual files and not red 5256 # files to appear (when present) in the UI as actual files and not red
5209 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5257 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5210 # and therefore SYMROOT, needs to be set at the project level. 5258 # and therefore SYMROOT, needs to be set at the project level.
5211 'SYMROOT': '<(DEPTH)/xcodebuild', 5259 'SYMROOT': '<(DEPTH)/xcodebuild',
5212 }, 5260 },
5213 } 5261 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698