OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 # In component mode (shared_lib), we build all of skia as a single DLL. | 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 | 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 | 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. | 10 # already have a copy of skia as a system library. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 'target_name': 'skia_chrome', | 81 'target_name': 'skia_chrome', |
82 'type': 'none', | 82 'type': 'none', |
83 }, | 83 }, |
84 ], | 84 ], |
85 }], | 85 }], |
86 ], | 86 ], |
87 | 87 |
88 # targets that are not dependent upon the component type | 88 # targets that are not dependent upon the component type |
89 'targets': [ | 89 'targets': [ |
90 { | 90 { |
91 'target_name': 'skia_chrome_opts', | |
92 'type': 'static_library', | |
93 'include_dirs': [ | |
94 '..', | |
95 'config', | |
96 '../third_party/skia/include/core', | |
97 ], | |
98 'conditions': [ | |
99 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ | |
100 target_arch != "arm" and target_arch != "mipsel" and \ | |
101 target_arch != "arm64" and target_arch != "mips64el"', { | |
102 'cflags': [ | |
103 '-msse2', | |
104 ], | |
105 }], | |
106 [ 'target_arch != "arm" and target_arch != "mipsel" and \ | |
107 target_arch != "arm64" and target_arch != "mips64el"', { | |
108 'sources': [ | |
109 'ext/convolver_SSE2.cc', | |
110 'ext/convolver_SSE2.h', | |
111 ], | |
112 }], | |
113 [ 'target_arch == "mipsel" and mips_dsp_rev >= 2',{ | |
114 'sources': [ | |
115 'ext/convolver_mips_dspr2.cc', | |
116 'ext/convolver_mips_dspr2.h', | |
117 ], | |
118 }], | |
119 ], | |
120 }, | |
121 { | |
122 'target_name': 'image_operations_bench', | 91 'target_name': 'image_operations_bench', |
123 'type': 'executable', | 92 'type': 'executable', |
124 'dependencies': [ | 93 'dependencies': [ |
125 '../base/base.gyp:base', | 94 '../base/base.gyp:base', |
126 'skia', | 95 'skia', |
127 ], | 96 ], |
128 'include_dirs': [ | 97 'include_dirs': [ |
129 '..', | 98 '..', |
130 ], | 99 ], |
131 'sources': [ | 100 'sources': [ |
(...skipping 27 matching lines...) Expand all Loading... |
159 ], | 128 ], |
160 'sources': [ | 129 'sources': [ |
161 # Note: file list duplicated in GN build. | 130 # Note: file list duplicated in GN build. |
162 'public/interfaces/bitmap.mojom', | 131 'public/interfaces/bitmap.mojom', |
163 'public/type_converters.cc', | 132 'public/type_converters.cc', |
164 'public/type_converters.h', | 133 'public/type_converters.h', |
165 ], | 134 ], |
166 }, | 135 }, |
167 ], | 136 ], |
168 } | 137 } |
OLD | NEW |