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',
69 'GR_IMPLEMENTATION=1',
70 'SKIA_IMPLEMENTATION=1',
72 'direct_dependent_settings': {
80 'target_name': 'skia_library',
84 'target_name': 'skia_chrome',
91 # targets that are not dependent upon the component type
94 'target_name': 'skia_chrome_opts',
95 'type': 'static_library',
99 '../third_party/skia/include/config',
100 '../third_party/skia/include/core',
103 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
104 target_arch != "arm" and target_arch != "mipsel"', {
109 [ 'target_arch != "arm" and target_arch != "mipsel"', {
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',