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
3 # found in the LICENSE file.
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
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.
11 ['component=="static_library" and use_system_skia==0', {
14 'target_name': 'skia_library',
15 'type': 'static_library',
19 '../build/android/increase_size_for_speed.gypi',
20 # Disable LTO due to compiler error
21 # in mems_in_disjoint_alias_sets_p, at alias.c:393
23 '../build/android/disable_lto.gypi',
28 ['component=="static_library" and use_system_skia==1', {
31 'target_name': 'skia_library',
35 '../build/android/increase_size_for_speed.gypi',
40 ['component=="static_library"', {
43 'target_name': 'skia',
49 'export_dependent_settings': [
55 'target_name': 'skia_chrome',
56 'type': 'static_library',
60 '../build/android/increase_size_for_speed.gypi',
65 { # component != static_library
68 'target_name': 'skia',
69 'type': 'shared_library',
74 '../build/android/increase_size_for_speed.gypi',
78 'SKIA_IMPLEMENTATION=1',
79 'GR_GL_IGNORE_ES3_MSAA=0',
81 'direct_dependent_settings': {
84 'GR_GL_IGNORE_ES3_MSAA=0',
89 'target_name': 'skia_library',
93 'target_name': 'skia_chrome',
100 # targets that are not dependent upon the component type
103 'target_name': 'skia_chrome_opts',
104 'type': 'static_library',
108 '../third_party/skia/include/core',
111 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
112 target_arch != "arm" and target_arch != "mipsel" and \
113 target_arch != "arm64" and target_arch != "mips64el"', {
118 [ 'target_arch != "arm" and target_arch != "mipsel" and \
119 target_arch != "arm64" and target_arch != "mips64el"', {
121 'ext/convolver_SSE2.cc',
124 [ 'target_arch == "mipsel"',{
126 '-fomit-frame-pointer',
129 'ext/convolver_mips_dspr2.cc',
135 'target_name': 'image_operations_bench',
136 'type': 'executable',
138 '../base/base.gyp:base',
145 'ext/image_operations_bench.cc',
149 'target_name': 'filter_fuzz_stub',
150 'type': 'executable',
152 '../base/base.gyp:base',
156 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
159 '../build/android/increase_size_for_speed.gypi',