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"', {
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"', {
31 'target_name': 'skia',
37 'export_dependent_settings': [
43 'target_name': 'skia_chrome',
44 'type': 'static_library',
48 '../build/android/increase_size_for_speed.gypi',
53 { # component != static_library
56 'target_name': 'skia',
57 'type': 'shared_library',
62 '../build/android/increase_size_for_speed.gypi',
66 'SKIA_IMPLEMENTATION=1',
67 'GR_GL_IGNORE_ES3_MSAA=0',
69 'direct_dependent_settings': {
72 'GR_GL_IGNORE_ES3_MSAA=0',
77 'target_name': 'skia_library',
81 'target_name': 'skia_chrome',
88 # targets that are not dependent upon the component type
91 'target_name': 'skia_chrome_opts',
92 'type': 'static_library',
96 '../third_party/skia/include/core',
99 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
100 target_arch != "arm" and target_arch != "mipsel" and \
101 target_arch != "arm64" and target_arch != "mips64el"', {
106 [ 'target_arch != "arm" and target_arch != "mipsel" and \
107 target_arch != "arm64" and target_arch != "mips64el"', {
109 'ext/convolver_SSE2.cc',
110 'ext/convolver_SSE2.h',
113 [ 'target_arch == "mipsel" and mips_dsp_rev >= 2',{
115 'ext/convolver_mips_dspr2.cc',
116 'ext/convolver_mips_dspr2.h',
122 'target_name': 'image_operations_bench',
123 'type': 'executable',
125 '../base/base.gyp:base',
132 'ext/image_operations_bench.cc',
136 'target_name': 'filter_fuzz_stub',
137 'type': 'executable',
139 '../base/base.gyp:base',
140 '../base/base.gyp:test_support_base',
144 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
147 '../build/android/increase_size_for_speed.gypi',