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

Side by Side Diff: skia/skia.gyp

Issue 555373004: Compile specific parts of the Android build with -O2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 3 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
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 { 5 {
6 'conditions': [ 6 'conditions': [
7 # In component mode (shared_lib), we build all of skia as a single DLL. 7 # In component mode (shared_lib), we build all of skia as a single DLL.
8 # However, in the static mode, we need to build skia as multiple targets 8 # However, in the static mode, we need to build skia as multiple targets
9 # in order to support the use case where a platform (e.g. Android) may 9 # in order to support the use case where a platform (e.g. Android) may
10 # already have a copy of skia as a system library. 10 # already have a copy of skia as a system library.
11 ['component=="static_library" and use_system_skia==0', { 11 ['component=="static_library" and use_system_skia==0', {
12 'targets': [ 12 'targets': [
13 { 13 {
14 'target_name': 'skia_library', 14 'target_name': 'skia_library',
15 'type': 'static_library', 15 'type': 'static_library',
16 'includes': [ 16 'includes': [
17 'skia_library.gypi', 17 'skia_library.gypi',
18 'skia_common.gypi', 18 'skia_common.gypi',
19 '../build/android/increase_size_for_speed.gypi',
19 ], 20 ],
20 }, 21 },
21 ], 22 ],
22 }], 23 }],
23 ['component=="static_library" and use_system_skia==1', { 24 ['component=="static_library" and use_system_skia==1', {
24 'targets': [ 25 'targets': [
25 { 26 {
26 'target_name': 'skia_library', 27 'target_name': 'skia_library',
27 'type': 'none', 28 'type': 'none',
28 'includes': ['skia_system.gypi'], 29 'includes': [
30 'skia_system.gypi',
31 '../build/android/increase_size_for_speed.gypi',
32 ],
29 }, 33 },
30 ], 34 ],
31 }], 35 }],
32 ['component=="static_library"', { 36 ['component=="static_library"', {
33 'targets': [ 37 'targets': [
34 { 38 {
35 'target_name': 'skia', 39 'target_name': 'skia',
36 'type': 'none', 40 'type': 'none',
37 'dependencies': [ 41 'dependencies': [
38 'skia_library', 42 'skia_library',
39 'skia_chrome', 43 'skia_chrome',
40 ], 44 ],
41 'export_dependent_settings': [ 45 'export_dependent_settings': [
42 'skia_library', 46 'skia_library',
43 'skia_chrome', 47 'skia_chrome',
44 ], 48 ],
45 }, 49 },
46 { 50 {
47 'target_name': 'skia_chrome', 51 'target_name': 'skia_chrome',
48 'type': 'static_library', 52 'type': 'static_library',
49 'includes': [ 53 'includes': [
50 'skia_chrome.gypi', 54 'skia_chrome.gypi',
51 'skia_common.gypi', 55 'skia_common.gypi',
56 '../build/android/increase_size_for_speed.gypi',
52 ], 57 ],
53 }, 58 },
54 ], 59 ],
55 }, 60 },
56 { # component != static_library 61 { # component != static_library
57 'targets': [ 62 'targets': [
58 { 63 {
59 'target_name': 'skia', 64 'target_name': 'skia',
60 'type': 'shared_library', 65 'type': 'shared_library',
61 'includes': [ 66 'includes': [
62 'skia_library.gypi', 67 'skia_library.gypi',
63 'skia_chrome.gypi', 68 'skia_chrome.gypi',
64 'skia_common.gypi', 69 'skia_common.gypi',
70 '../build/android/increase_size_for_speed.gypi',
65 ], 71 ],
66 'defines': [ 72 'defines': [
67 'SKIA_DLL', 73 'SKIA_DLL',
68 'SKIA_IMPLEMENTATION=1', 74 'SKIA_IMPLEMENTATION=1',
69 'GR_GL_IGNORE_ES3_MSAA=0', 75 'GR_GL_IGNORE_ES3_MSAA=0',
70 ], 76 ],
71 'direct_dependent_settings': { 77 'direct_dependent_settings': {
72 'defines': [ 78 'defines': [
73 'SKIA_DLL', 79 'SKIA_DLL',
74 'GR_GL_IGNORE_ES3_MSAA=0', 80 'GR_GL_IGNORE_ES3_MSAA=0',
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 { 144 {
139 'target_name': 'filter_fuzz_stub', 145 'target_name': 'filter_fuzz_stub',
140 'type': 'executable', 146 'type': 'executable',
141 'dependencies': [ 147 'dependencies': [
142 '../base/base.gyp:base', 148 '../base/base.gyp:base',
143 'skia.gyp:skia', 149 'skia.gyp:skia',
144 ], 150 ],
145 'sources': [ 151 'sources': [
146 'tools/filter_fuzz_stub/filter_fuzz_stub.cc', 152 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
147 ], 153 ],
154 'includes': [
155 '../build/android/increase_size_for_speed.gypi',
156 ],
148 }, 157 },
149 ], 158 ],
150 } 159 }
OLDNEW
« cc/BUILD.gn ('K') | « skia/BUILD.gn ('k') | skia/skia_library_opts.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698