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',
59 # Include skia_common.gypi first since it contains filename
60 # exclusion rules. This allows the following includes to override
61 # the exclusion rules.
65 '../build/android/increase_size_for_speed.gypi',
69 'SKIA_IMPLEMENTATION=1',
70 'GR_GL_IGNORE_ES3_MSAA=0',
72 'direct_dependent_settings': {
75 'GR_GL_IGNORE_ES3_MSAA=0',
80 'target_name': 'skia_library',
84 'target_name': 'skia_chrome',
91 # targets that are not dependent upon the component type
94 'target_name': 'image_operations_bench',
97 '../base/base.gyp:base',
104 'ext/image_operations_bench.cc',
108 'target_name': 'filter_fuzz_stub',
109 'type': 'executable',
111 '../base/base.gyp:base',
112 '../base/base.gyp:test_support_base',
116 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
119 '../build/android/increase_size_for_speed.gypi',
123 'target_name': 'skia_mojo',
124 'type': 'static_library',
127 '../base/base.gyp:base',
130 '../third_party/mojo/mojom_bindings_generator.gypi',
133 # Note: file list duplicated in GN build.
134 'public/interfaces/bitmap.mojom',
135 'public/type_converters.cc',