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_gcc_lto.gypi',
28 ['component=="static_library"', {
31 'target_name': 'skia',
37 'export_dependent_settings': [
41 'direct_dependent_settings': {
45 'GR_GL_FUNCTION_TYPE=__stdcall',
52 'target_name': 'skia_chrome',
53 'type': 'static_library',
57 '../build/android/increase_size_for_speed.gypi',
62 { # component != static_library
65 'target_name': 'skia',
66 'type': 'shared_library',
68 # Include skia_common.gypi first since it contains filename
69 # exclusion rules. This allows the following includes to override
70 # the exclusion rules.
74 '../build/android/increase_size_for_speed.gypi',
78 'SKIA_IMPLEMENTATION=1',
79 'GR_GL_IGNORE_ES3_MSAA=0',
81 'direct_dependent_settings': {
85 'GR_GL_FUNCTION_TYPE=__stdcall',
91 'GR_GL_IGNORE_ES3_MSAA=0',
96 'target_name': 'skia_library',
100 'target_name': 'skia_chrome',
107 # targets that are not dependent upon the component type
110 'target_name': 'image_operations_bench',
111 'type': 'executable',
113 '../base/base.gyp:base',
120 'ext/image_operations_bench.cc',
124 'target_name': 'filter_fuzz_stub',
125 'type': 'executable',
127 '../base/base.gyp:base',
128 '../base/base.gyp:test_support_base',
132 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
135 '../build/android/increase_size_for_speed.gypi',
139 'target_name': 'skia_mojo',
140 'type': 'static_library',
143 '../base/base.gyp:base',
146 '../third_party/mojo/mojom_bindings_generator.gypi',
149 # Note: file list duplicated in GN build.
150 'public/interfaces/bitmap.mojom',
151 'public/type_converters.cc',