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': 'image_operations_bench',
94 '../base/base.gyp:base',
101 'ext/image_operations_bench.cc',
105 'target_name': 'filter_fuzz_stub',
106 'type': 'executable',
108 '../base/base.gyp:base',
109 '../base/base.gyp:test_support_base',
113 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
116 '../build/android/increase_size_for_speed.gypi',
120 'target_name': 'skia_mojo',
121 'type': 'static_library',
124 '../base/base.gyp:base',
127 '../third_party/mojo/mojom_bindings_generator.gypi',
130 # Note: file list duplicated in GN build.
131 'public/interfaces/bitmap.mojom',
132 'public/type_converters.cc',
133 'public/type_converters.h',