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',
19 '../build/android/increase_size_for_speed.gypi',
24 ['component=="static_library" and use_system_skia==1', {
27 'target_name': 'skia_library',
31 '../build/android/increase_size_for_speed.gypi',
36 ['component=="static_library"', {
39 'target_name': 'skia',
45 'export_dependent_settings': [
51 'target_name': 'skia_chrome',
52 'type': 'static_library',
56 '../build/android/increase_size_for_speed.gypi',
61 { # component != static_library
64 'target_name': 'skia',
65 'type': 'shared_library',
70 '../build/android/increase_size_for_speed.gypi',
74 'SKIA_IMPLEMENTATION=1',
75 'GR_GL_IGNORE_ES3_MSAA=0',
77 'direct_dependent_settings': {
80 'GR_GL_IGNORE_ES3_MSAA=0',
85 'target_name': 'skia_library',
89 'target_name': 'skia_chrome',
96 # targets that are not dependent upon the component type
99 'target_name': 'skia_chrome_opts',
100 'type': 'static_library',
104 '../third_party/skia/include/core',
107 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
108 target_arch != "arm" and target_arch != "mipsel" and \
109 target_arch != "arm64" and target_arch != "mips64el"', {
114 [ 'target_arch != "arm" and target_arch != "mipsel" and \
115 target_arch != "arm64" and target_arch != "mips64el"', {
117 'ext/convolver_SSE2.cc',
120 [ 'target_arch == "mipsel"',{
122 '-fomit-frame-pointer',
125 'ext/convolver_mips_dspr2.cc',
131 'target_name': 'image_operations_bench',
132 'type': 'executable',
134 '../base/base.gyp:base',
141 'ext/image_operations_bench.cc',
145 'target_name': 'filter_fuzz_stub',
146 'type': 'executable',
148 '../base/base.gyp:base',
152 'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
155 '../build/android/increase_size_for_speed.gypi',