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

Side by Side Diff: build/common.gypi

Issue 1126013005: Enable large file support on linux/chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | 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 3584 matching lines...) Expand 10 before | Expand all | Expand 10 after
3595 # enabled when not building on Chrome OS. 3595 # enabled when not building on Chrome OS.
3596 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc 3596 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc
3597 # supports it. 3597 # supports it.
3598 'target_defaults': { 3598 'target_defaults': {
3599 'cflags': [ 3599 'cflags': [
3600 '-fstack-protector', 3600 '-fstack-protector',
3601 '--param=ssp-buffer-size=4', 3601 '--param=ssp-buffer-size=4',
3602 ], 3602 ],
3603 }, 3603 },
3604 }], 3604 }],
3605 ['os_posix==1 and OS=="linux"', {
3606 'defines': [
3607 '_LARGEFILE_SOURCE',
3608 '_LARGEFILE64_SOURCE',
3609 '_FILE_OFFSET_BITS=64',
3610 ],
3611 }],
3605 ['os_posix==1 and OS!="mac" and OS!="ios"', { 3612 ['os_posix==1 and OS!="mac" and OS!="ios"', {
3606 'target_defaults': { 3613 'target_defaults': {
3607 # Enable -Werror by default, but put it in a variable so it can 3614 # Enable -Werror by default, but put it in a variable so it can
3608 # be disabled in ~/.gyp/include.gypi on the valgrind builders. 3615 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
3609 'variables': { 3616 'variables': {
3610 'werror%': '-Werror', 3617 'werror%': '-Werror',
3611 'libraries_for_target%': '', 3618 'libraries_for_target%': '',
3612 }, 3619 },
3613 'defines': [ 3620 'defines': [
3614 '_FILE_OFFSET_BITS=64', 3621 '_FILE_OFFSET_BITS=64',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
3682 ], 3689 ],
3683 }], 3690 }],
3684 ['OS=="android" and android_full_debug==0 and target_arch!="arm64" ', { 3691 ['OS=="android" and android_full_debug==0 and target_arch!="arm64" ', {
3685 # We don't omit frame pointers on arm64 since they are required 3692 # We don't omit frame pointers on arm64 since they are required
3686 # to correctly unwind stackframes which contain system library 3693 # to correctly unwind stackframes which contain system library
3687 # function frames (crbug.com/391706). 3694 # function frames (crbug.com/391706).
3688 'cflags': [ 3695 'cflags': [
3689 '-fomit-frame-pointer', 3696 '-fomit-frame-pointer',
3690 ], 3697 ],
3691 }], 3698 }],
3692 ['OS!="android"', {
3693 'defines': [
3694 '_LARGEFILE_SOURCE',
3695 '_LARGEFILE64_SOURCE',
3696 ],
3697 }],
3698 ['OS=="linux" and target_arch=="ia32"', { 3699 ['OS=="linux" and target_arch=="ia32"', {
3699 'ldflags': [ 3700 'ldflags': [
3700 '-Wl,--no-as-needed', 3701 '-Wl,--no-as-needed',
3701 ], 3702 ],
3702 }], 3703 }],
3703 ['debug_unwind_tables==1', { 3704 ['debug_unwind_tables==1', {
3704 'cflags': ['-funwind-tables'], 3705 'cflags': ['-funwind-tables'],
3705 }, { 3706 }, {
3706 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3707 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3707 'defines': ['NO_UNWIND_TABLES'], 3708 'defines': ['NO_UNWIND_TABLES'],
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
6184 # settings in target dicts. SYMROOT is a special case, because many other 6185 # settings in target dicts. SYMROOT is a special case, because many other
6185 # Xcode variables depend on it, including variables such as 6186 # Xcode variables depend on it, including variables such as
6186 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6187 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6187 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6188 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6188 # files to appear (when present) in the UI as actual files and not red 6189 # files to appear (when present) in the UI as actual files and not red
6189 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6190 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6190 # and therefore SYMROOT, needs to be set at the project level. 6191 # and therefore SYMROOT, needs to be set at the project level.
6191 'SYMROOT': '<(DEPTH)/xcodebuild', 6192 'SYMROOT': '<(DEPTH)/xcodebuild',
6192 }, 6193 },
6193 } 6194 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698