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',
23 ['component=="static_library" and use_system_skia==1', {
26 'target_name': 'skia_library',
28 'includes': ['skia_system.gypi'],
32 ['component=="static_library"', {
35 'target_name': 'skia',
41 'export_dependent_settings': [
47 'target_name': 'skia_chrome',
48 'type': 'static_library',
56 { # component != static_library
59 'target_name': 'skia',
60 'type': 'shared_library',
68 'SKIA_IMPLEMENTATION=1',
69 'GR_GL_IGNORE_ES3_MSAA=0',
71 'direct_dependent_settings': {
74 'GR_GL_IGNORE_ES3_MSAA=0',
79 'target_name': 'skia_library',
83 'target_name': 'skia_chrome',
90 # targets that are not dependent upon the component type
93 'target_name': 'skia_chrome_opts',
94 'type': 'static_library',
98 '../third_party/skia/include/core',
101 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
102 target_arch != "arm" and target_arch != "mipsel" and \
103 target_arch != "arm64"', {
108 [ 'target_arch != "arm" and target_arch != "mipsel" and \
109 target_arch != "arm64"', {
111 'ext/convolver_SSE2.cc',
114 [ 'target_arch == "mipsel"',{
116 '-fomit-frame-pointer',
119 'ext/convolver_mips_dspr2.cc',
125 'target_name': 'image_operations_bench',
126 'type': 'executable',
128 '../base/base.gyp:base',
135 'ext/image_operations_bench.cc',
139 'target_name': 'filter_fuzz_stub',
140 'type': 'executable',
142 '../base/base.gyp:base',
146 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',