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

Side by Side Diff: skia/skia_common.gypi

Issue 1812563002: Enable building pdf_use_skia in the standalone build. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 | « skia/skia.gyp ('k') | skia/skia_library.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This gypi file handles the removal of platform-specific files from the
6 # Skia build.
7 {
8 'include_dirs': [
9 '..',
10 'config',
11 ],
12
13 'conditions': [
14 [ 'OS != "android"', {
15 'sources/': [
16 ['exclude', '_android\\.(cc|cpp)$'],
17 ],
18 }],
19 [ 'OS != "ios"', {
20 'sources/': [
21 ['exclude', '_ios\\.(cc|cpp|mm?)$'],
22 ],
23 }],
24 [ 'OS == "ios"', {
25 'defines': [
26 'SK_BUILD_FOR_IOS',
27 ],
28 }],
29 [ 'OS != "mac"', {
30 'sources/': [
31 ['exclude', '_mac\\.(cc|cpp|mm?)$'],
32 ],
33 }],
34 [ 'OS == "mac"', {
35 'defines': [
36 'SK_BUILD_FOR_MAC',
37 ],
38 }],
39 [ 'OS != "win"', {
40 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
41 }],
42 [ 'OS == "win"', {
43 'defines': [
44 # On windows, GDI handles are a scarse system-wide resource so we have t o keep
45 # the glyph cache, which holds up to 4 GDI handles per entry, to a fairl y small
46 # size.
47 # http://crbug.com/314387
48 'SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=256',
49 'GR_GL_FUNCTION_TYPE=__stdcall',
50 ],
51 }],
52 [ 'OS!="linux"', {
53 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
54 }],
55
56 #Settings for text blitting, chosen to approximate the system browser.
57 [ 'OS == "linux"', {
58 'defines': [
59 'SK_GAMMA_EXPONENT=1.2',
60 'SK_GAMMA_CONTRAST=0.2',
61 ],
62 }],
63 ['OS == "android"', {
64 'defines': [
65 'SK_GAMMA_APPLY_TO_A8',
66 'SK_GAMMA_EXPONENT=1.4',
67 'SK_GAMMA_CONTRAST=0.0',
68 ],
69 }],
70 ['OS == "win"', {
71 'defines': [
72 'SK_GAMMA_SRGB',
73 'SK_GAMMA_CONTRAST=0.5',
74 ],
75 }],
76 ['OS == "mac"', {
77 'defines': [
78 'SK_GAMMA_SRGB',
79 'SK_GAMMA_CONTRAST=0.0',
80 ],
81 }],
82
83 # Neon support.
84 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', {
85 'defines': [
86 'SK_ARM_HAS_NEON',
87 ],
88 }],
89 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 0 and arm_neon_ optional == 1', {
90 'defines': [
91 'SK_ARM_HAS_OPTIONAL_NEON',
92 ],
93 }],
94 ],
95
96 'variables': {
97 'variables': {
98 'conditions': [
99 ['OS== "ios"', {
100 'skia_support_gpu': 0,
101 }, {
102 'skia_support_gpu': 1,
103 }],
104 ],
105 },
106 'skia_support_gpu': '<(skia_support_gpu)',
107 'skia_support_pdf': '<(skia_support_pdf)',
108
109 # These two set the paths so we can include skia/gyp/core.gypi
110 'skia_src_path': '../third_party/skia/src',
111 'skia_include_path': '../third_party/skia/include',
112
113 # This list will contain all defines that also need to be exported to
114 # dependent components.
115 'skia_export_defines': [
116 'SK_SUPPORT_GPU=<(skia_support_gpu)',
117 ],
118
119 'default_font_cache_limit%': '(20*1024*1024)',
120
121 'conditions': [
122 ['OS== "android"', {
123 # Android devices are typically more memory constrained, so
124 # default to a smaller glyph cache (it may be overriden at runtime
125 # when the renderer starts up, depending on the actual device memory).
126 'default_font_cache_limit': '(1*1024*1024)',
127 'skia_export_defines': [
128 'SK_BUILD_FOR_ANDROID',
129 ],
130 }],
131 ],
132 },
133
134 'defines': [
135 '<@(skia_export_defines)',
136
137 'SK_DEFAULT_FONT_CACHE_LIMIT=<(default_font_cache_limit)',
138 ],
139
140 'direct_dependent_settings': {
141 'defines': [
142 '<@(skia_export_defines)',
143 ],
144 },
145
146 # We would prefer this to be direct_dependent_settings,
147 # however we currently have no means to enforce that direct dependents
148 # re-export if they include Skia headers in their public headers.
149 'all_dependent_settings': {
150 'include_dirs': [
151 '..',
152 'config',
153 ],
154 },
155
156 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800],
157 }
OLDNEW
« no previous file with comments | « skia/skia.gyp ('k') | skia/skia_library.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698