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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 289973006: Make skia compile in Android GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | skia/BUILD.gn » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 } else { 667 } else {
668 common_optimize_on_cflags = [ 668 common_optimize_on_cflags = [
669 # Don't emit the GCC version ident directives, they just end up in the 669 # Don't emit the GCC version ident directives, they just end up in the
670 # .comment section taking up binary size. 670 # .comment section taking up binary size.
671 "-fno-ident", 671 "-fno-ident",
672 # Put data and code in their own sections, so that unused symbols 672 # Put data and code in their own sections, so that unused symbols
673 # can be removed at link time with --gc-sections. 673 # can be removed at link time with --gc-sections.
674 "-fdata-sections", 674 "-fdata-sections",
675 "-ffunction-sections", 675 "-ffunction-sections",
676 ] 676 ]
677 common_optimize_on_ldflags = []
677 678
678 common_optimize_on_ldflags = [] 679 if (is_android) {
680 common_optimize_on_cflags += [
681 "-fomit-frame-pointer",
682 ]
683 common_optimize_on_ldflags += [
684 # Warn in case of text relocations.
685 "-Wl,--warn-shared-textrel",
686 ]
687 }
688
679 if (is_mac) { 689 if (is_mac) {
680 if (symbol_level == 2) { 690 if (symbol_level == 2) {
681 # Mac dead code stripping requires symbols. 691 # Mac dead code stripping requires symbols.
682 common_optimize_on_ldflags += [ 692 common_optimize_on_ldflags += [
683 "-Wl,-dead_strip", 693 "-Wl,-dead_strip",
684 ] 694 ]
685 } 695 }
686 } else { 696 } else {
687 # Non-Mac Posix linker flags. 697 # Non-Mac Posix linker flags.
688 common_optimize_on_ldflags += [ 698 common_optimize_on_ldflags += [
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 } else { 777 } else {
768 cflags = [ "-g1" ] 778 cflags = [ "-g1" ]
769 } 779 }
770 } 780 }
771 781
772 config("no_symbols") { 782 config("no_symbols") {
773 if (!is_win) { 783 if (!is_win) {
774 cflags = [ "-g0" ] 784 cflags = [ "-g0" ]
775 } 785 }
776 } 786 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698