OLD | NEW |
| (Empty) |
1 # Copyright (c) 2011 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. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 # TODO(rsesek): Remove this target once ui_unittests is run on the | |
9 # waterfall instead of gfx_unittests. | |
10 'target_name': 'gfx_unittests', | |
11 'type': 'none', | |
12 'conditions': [ | |
13 ['inside_chromium_build==1', { | |
14 'dependencies': [ | |
15 'ui_unittests', | |
16 ], | |
17 }], | |
18 ], | |
19 'actions': [ | |
20 { | |
21 'message': 'TEMPORARY: Copying ui_unittests to gfx_unittests', | |
22 'variables': { | |
23 'ui_copy_target': '<(PRODUCT_DIR)/ui_unittests<(EXECUTABLE_SUFFIX)', | |
24 'ui_copy_dest': '<(PRODUCT_DIR)/gfx_unittests<(EXECUTABLE_SUFFIX)', | |
25 }, | |
26 'inputs': ['<(ui_copy_target)'], | |
27 'outputs': ['<(ui_copy_dest)'], | |
28 'action_name': 'TEMP_copy_ui_unittests', | |
29 'action': [ | |
30 'python', '-c', | |
31 'import os, shutil; ' \ | |
32 'shutil.copyfile(\'<(ui_copy_target)\', \'<(ui_copy_dest)\'); ' \ | |
33 'os.chmod(\'<(ui_copy_dest)\', 0700)' | |
34 ] | |
35 } | |
36 ], | |
37 }, | |
38 { | |
39 'target_name': 'ui_gfx', | |
40 'type': 'static_library', | |
41 'dependencies': [ | |
42 '../base/base.gyp:base', | |
43 '../base/base.gyp:base_i18n', | |
44 '../skia/skia.gyp:skia', | |
45 '../third_party/icu/icu.gyp:icui18n', | |
46 '../third_party/icu/icu.gyp:icuuc', | |
47 '../third_party/libpng/libpng.gyp:libpng', | |
48 '../third_party/zlib/zlib.gyp:zlib', | |
49 'gfx_resources', | |
50 '<(libjpeg_gyp_path):libjpeg', | |
51 ], | |
52 'sources': [ | |
53 'gfx/blit.cc', | |
54 'gfx/blit.h', | |
55 'gfx/brush.h', | |
56 'gfx/canvas.cc', | |
57 'gfx/canvas.h', | |
58 'gfx/canvas_skia.h', | |
59 'gfx/canvas_skia.cc', | |
60 'gfx/canvas_skia_linux.cc', | |
61 'gfx/canvas_skia_mac.mm', | |
62 'gfx/canvas_skia_paint.h', | |
63 'gfx/canvas_skia_win.cc', | |
64 'gfx/codec/jpeg_codec.cc', | |
65 'gfx/codec/jpeg_codec.h', | |
66 'gfx/codec/png_codec.cc', | |
67 'gfx/codec/png_codec.h', | |
68 'gfx/color_analysis.cc', | |
69 'gfx/color_analysis.h', | |
70 'gfx/color_utils.cc', | |
71 'gfx/color_utils.h', | |
72 'gfx/favicon_size.h', | |
73 'gfx/font.h', | |
74 'gfx/font.cc', | |
75 'gfx/gfx_paths.cc', | |
76 'gfx/gfx_paths.h', | |
77 'gfx/image/image.cc', | |
78 'gfx/image/image.h', | |
79 'gfx/image/image_mac.mm', | |
80 'gfx/image/image_util.cc', | |
81 'gfx/image/image_util.h', | |
82 'gfx/insets.cc', | |
83 'gfx/insets.h', | |
84 'gfx/interpolated_transform.h', | |
85 'gfx/interpolated_transform.cc', | |
86 'gfx/mac/nsimage_cache.h', | |
87 'gfx/mac/nsimage_cache.mm', | |
88 'gfx/mac/scoped_ns_disable_screen_updates.h', | |
89 'gfx/native_theme.cc', | |
90 'gfx/native_theme.h', | |
91 'gfx/native_widget_types.h', | |
92 'gfx/path.cc', | |
93 'gfx/path.h', | |
94 'gfx/path_gtk.cc', | |
95 'gfx/path_win.cc', | |
96 'gfx/platform_font.h', | |
97 'gfx/platform_font_gtk.h', | |
98 'gfx/platform_font_gtk.cc', | |
99 'gfx/platform_font_mac.h', | |
100 'gfx/platform_font_mac.mm', | |
101 'gfx/platform_font_win.h', | |
102 'gfx/platform_font_win.cc', | |
103 'gfx/point.cc', | |
104 'gfx/point.h', | |
105 'gfx/rect.cc', | |
106 'gfx/rect.h', | |
107 'gfx/scoped_cg_context_save_gstate_mac.h', | |
108 'gfx/scoped_ns_graphics_context_save_gstate_mac.h', | |
109 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm', | |
110 'gfx/scrollbar_size.cc', | |
111 'gfx/scrollbar_size.h', | |
112 'gfx/size.cc', | |
113 'gfx/size.h', | |
114 'gfx/skbitmap_operations.cc', | |
115 'gfx/skbitmap_operations.h', | |
116 'gfx/skia_util.cc', | |
117 'gfx/skia_util.h', | |
118 'gfx/skia_utils_gtk.cc', | |
119 'gfx/skia_utils_gtk.h', | |
120 ], | |
121 'conditions': [ | |
122 ['OS!="mac"', { | |
123 'sources': [ | |
124 'gfx/transform.h', | |
125 'gfx/transform.cc', | |
126 ], | |
127 }], | |
128 ['OS=="win"', { | |
129 'sources': [ | |
130 'gfx/canvas_direct2d.cc', | |
131 'gfx/canvas_direct2d.h', | |
132 'gfx/gdi_util.cc', | |
133 'gfx/gdi_util.h', | |
134 'gfx/icon_util.cc', | |
135 'gfx/icon_util.h', | |
136 'gfx/native_theme_win.cc', | |
137 'gfx/native_theme_win.h', | |
138 'gfx/win_util.cc', | |
139 'gfx/win_util.h', | |
140 ], | |
141 'include_dirs': [ | |
142 '../', | |
143 '../third_party/wtl/include', | |
144 ], | |
145 }], | |
146 ['toolkit_uses_gtk == 1', { | |
147 'dependencies': [ | |
148 # font_gtk.cc uses fontconfig. | |
149 # TODO(evanm): I think this is wrong; it should just use GTK. | |
150 '../build/linux/system.gyp:fontconfig', | |
151 '../build/linux/system.gyp:gtk', | |
152 ], | |
153 'sources': [ | |
154 'gfx/gtk_native_view_id_manager.cc', | |
155 'gfx/gtk_native_view_id_manager.h', | |
156 'gfx/gtk_preserve_window.cc', | |
157 'gfx/gtk_preserve_window.h', | |
158 'gfx/gtk_util.cc', | |
159 'gfx/gtk_util.h', | |
160 'gfx/native_theme_linux.cc', | |
161 'gfx/native_theme_linux.h', | |
162 'gfx/native_widget_types_gtk.cc', | |
163 ], | |
164 }], | |
165 ['chromeos==1', { | |
166 'sources': [ | |
167 'gfx/native_theme_chromeos.cc', | |
168 'gfx/native_theme_chromeos.h', | |
169 ], | |
170 }], | |
171 ], | |
172 }, | |
173 { | |
174 'target_name': 'gfx_resources', | |
175 'type': 'none', | |
176 'variables': { | |
177 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx', | |
178 }, | |
179 'actions': [ | |
180 { | |
181 'action_name': 'gfx_resources', | |
182 'variables': { | |
183 'grit_grd_file': 'gfx/gfx_resources.grd', | |
184 }, | |
185 'includes': [ '../build/grit_action.gypi' ], | |
186 }, | |
187 ], | |
188 'includes': [ '../build/grit_target.gypi' ], | |
189 }, | |
190 | |
191 ], | |
192 } | |
OLD | NEW |