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',
70 'direct_dependent_settings': {
77 'target_name': 'skia_library',
81 'target_name': 'skia_chrome',
88 # targets that are not dependent upon the component type
91 'target_name': 'skia_chrome_opts',
92 'type': 'static_library',
96 '../third_party/skia/include/core',
99 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
100 target_arch != "arm" and target_arch != "mipsel"', {
105 [ 'target_arch != "arm" and target_arch != "mipsel"', {
107 'ext/convolver_SSE2.cc',
110 [ 'target_arch == "mipsel"',{
112 '-fomit-frame-pointer',
115 'ext/convolver_mips_dspr2.cc',
121 'target_name': 'image_operations_bench',
122 'type': 'executable',
124 '../base/base.gyp:base',
131 'ext/image_operations_bench.cc',