1# This file is generated; do not edit.
2
3import os
4
5Import("env")
6
7configurations = {
8    'Debug' : {
9        'Append' : dict(
10            ASFLAGS = [
11                '-32'
12            ],
13            CCFLAGS = [
14                '-Werror',
15                '-pthread',
16                '-m32',
17                '-fno-exceptions',
18                '-Wall',
19                '-march=pentium4',
20                '-msse2',
21                '-mfpmath=sse',
22                '-DPNG_NO_MMX_CODE',
23                '-I/usr/include/gtk-2.0',
24                '-I/usr/lib/gtk-2.0/include',
25                '-I/usr/include/atk-1.0',
26                '-I/usr/include/cairo',
27                '-I/usr/include/pango-1.0',
28                '-I/usr/include/glib-2.0',
29                '-I/usr/lib/glib-2.0/include',
30                '-I/usr/include/freetype2',
31                '-I/usr/include/libpng12',
32                '-I/usr/include/pixman-1',
33                '-O0',
34                '-g'
35            ],
36            CPPDEFINES = [
37                '__STDC_FORMAT_MACROS',
38                'CHROMIUM_BUILD',
39                'CHROME_PNG_WRITE_SUPPORT',
40                'PNG_USER_CONFIG',
41                '_DEBUG'
42            ],
43            CPPPATH = [
44                '..',
45                '../skia/config',
46                '../third_party/skia/include/core',
47                '../third_party/skia/include/effects',
48                '../skia/ext',
49                '../third_party/harfbuzz/src',
50                '../third_party/harfbuzz/contrib',
51                '../third_party/libjpeg',
52                '../third_party/libpng',
53                '../third_party/zlib'
54            ],
55            CXXFLAGS = [
56                '-fno-threadsafe-statics'
57            ],
58            LINKFLAGS = [
59                '-pthread',
60                '-m32',
61                '-rdynamic'
62            ],
63            SHLINKFLAGS = [
64                '-pthread',
65                '-m32',
66                '-rdynamic'
67            ],
68        ),
69        'FilterOut' : dict(
70        ),
71        'Replace' : dict(
72             FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
73             FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
74             FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
75             IMPLICIT_COMMAND_DEPENDENCIES = 0,
76             LDMODULECOM = [['$FLOCK_LDMODULE',
77  '-o',
78  '$TARGET',
79  '$_LIBDIRFLAGS',
80  '$LDMODULEFLAGS',
81  '$SOURCES',
82  '-Wl,--start-group',
83  '$_LIBFLAGS',
84  '-Wl,--end-group']],
85             LIBPATH = ['$LIB_DIR'],
86             LINKCOM = [['$FLOCK_LINK',
87  '-o',
88  '$TARGET',
89  '$_LIBDIRFLAGS',
90  '$LINKFLAGS',
91  '$SOURCES',
92  '-Wl,--start-group',
93  '$_LIBFLAGS',
94  '-Wl,--end-group']],
95             SHLINKCOM = [['$FLOCK_SHLINK',
96  '-o',
97  '$TARGET',
98  '$_LIBDIRFLAGS',
99  '$SHLINKFLAGS',
100  '$SOURCES',
101  '-Wl,--start-group',
102  '$_LIBFLAGS',
103  '-Wl,--end-group']],
104        ),
105        'ImportExternal' : [
106             'AS',
107             'CC',
108             'CXX',
109             'LINK',
110        ],
111        'PropagateExternal' : [
112             'AS',
113             'CC',
114             'CCACHE_DIR',
115             'CXX',
116             'DISTCC_DIR',
117             'DISTCC_HOSTS',
118             'HOME',
119             'INCLUDE_SERVER_ARGS',
120             'INCLUDE_SERVER_PORT',
121             'LINK',
122             'CHROME_BUILD_TYPE',
123             'CHROMIUM_BUILD',
124             'OFFICIAL_BUILD',
125        ],
126    },
127    'Release' : {
128        'Append' : dict(
129            ASFLAGS = [
130                '-32'
131            ],
132            CCFLAGS = [
133                '-Werror',
134                '-pthread',
135                '-m32',
136                '-fno-exceptions',
137                '-Wall',
138                '-march=pentium4',
139                '-msse2',
140                '-mfpmath=sse',
141                '-DPNG_NO_MMX_CODE',
142                '-I/usr/include/gtk-2.0',
143                '-I/usr/lib/gtk-2.0/include',
144                '-I/usr/include/atk-1.0',
145                '-I/usr/include/cairo',
146                '-I/usr/include/pango-1.0',
147                '-I/usr/include/glib-2.0',
148                '-I/usr/lib/glib-2.0/include',
149                '-I/usr/include/freetype2',
150                '-I/usr/include/libpng12',
151                '-I/usr/include/pixman-1',
152                '-O2',
153                '-fno-ident',
154                '-fdata-sections',
155                '-ffunction-sections'
156            ],
157            CPPDEFINES = [
158                '__STDC_FORMAT_MACROS',
159                'CHROMIUM_BUILD',
160                'CHROME_PNG_WRITE_SUPPORT',
161                'PNG_USER_CONFIG',
162                'NDEBUG'
163            ],
164            CPPPATH = [
165                '..',
166                '../skia/config',
167                '../third_party/skia/include/core',
168                '../third_party/skia/include/effects',
169                '../skia/ext',
170                '../third_party/harfbuzz/src',
171                '../third_party/harfbuzz/contrib',
172                '../third_party/libjpeg',
173                '../third_party/libpng',
174                '../third_party/zlib'
175            ],
176            CXXFLAGS = [
177                '-fno-threadsafe-statics'
178            ],
179            LINKFLAGS = [
180                '-pthread',
181                '-m32'
182            ],
183            SHLINKFLAGS = [
184                '-pthread',
185                '-m32'
186            ],
187        ),
188        'FilterOut' : dict(
189        ),
190        'Replace' : dict(
191             FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
192             FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
193             FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
194             IMPLICIT_COMMAND_DEPENDENCIES = 0,
195             LDMODULECOM = [['$FLOCK_LDMODULE',
196  '-o',
197  '$TARGET',
198  '$_LIBDIRFLAGS',
199  '$LDMODULEFLAGS',
200  '$SOURCES',
201  '-Wl,--start-group',
202  '$_LIBFLAGS',
203  '-Wl,--end-group']],
204             LIBPATH = ['$LIB_DIR'],
205             LINKCOM = [['$FLOCK_LINK',
206  '-o',
207  '$TARGET',
208  '$_LIBDIRFLAGS',
209  '$LINKFLAGS',
210  '$SOURCES',
211  '-Wl,--start-group',
212  '$_LIBFLAGS',
213  '-Wl,--end-group']],
214             SHLINKCOM = [['$FLOCK_SHLINK',
215  '-o',
216  '$TARGET',
217  '$_LIBDIRFLAGS',
218  '$SHLINKFLAGS',
219  '$SOURCES',
220  '-Wl,--start-group',
221  '$_LIBFLAGS',
222  '-Wl,--end-group']],
223        ),
224        'ImportExternal' : [
225             'AS',
226             'CC',
227             'CXX',
228             'LINK',
229        ],
230        'PropagateExternal' : [
231             'AS',
232             'CC',
233             'CCACHE_DIR',
234             'CXX',
235             'DISTCC_DIR',
236             'DISTCC_HOSTS',
237             'HOME',
238             'INCLUDE_SERVER_ARGS',
239             'INCLUDE_SERVER_PORT',
240             'LINK',
241             'CHROME_BUILD_TYPE',
242             'CHROMIUM_BUILD',
243             'OFFICIAL_BUILD',
244        ],
245    },
246}
247
248env = env.Clone(COMPONENT_NAME='base',
249                TARGET_NAME='base_gfx')
250
251config = configurations[env['CONFIG_NAME']]
252env.Append(**config['Append'])
253env.FilterOut(**config['FilterOut'])
254env.Replace(**config['Replace'])
255for _var in config['ImportExternal']:
256  if _var in ARGUMENTS:
257    env[_var] = ARGUMENTS[_var]
258  elif _var in os.environ:
259    env[_var] = os.environ[_var]
260for _var in config['PropagateExternal']:
261  if _var in ARGUMENTS:
262    env[_var] = ARGUMENTS[_var]
263  elif _var in os.environ:
264    env['ENV'][_var] = os.environ[_var]
265
266if ARGUMENTS.get('COVERAGE') not in (None, '0'):
267  env.Append(
268      CCFLAGS = [
269          '-fprofile-arcs',
270          '-ftest-coverage'
271      ],
272      LINKFLAGS = [
273          '-fprofile-arcs'
274      ],
275      SHLINKFLAGS = [
276          '-fprofile-arcs'
277      ],
278  )
279
280if ARGUMENTS.get('PROFILE') not in (None, '0'):
281  env.Append(
282      CCFLAGS = [
283          '-pg',
284          '-g'
285      ],
286      LINKFLAGS = [
287          '-pg'
288      ],
289      SHLINKFLAGS = [
290          '-pg'
291      ],
292  )
293
294if ARGUMENTS.get('SYMBOLS') not in (None, '0'):
295  env.Append(
296      CCFLAGS = [
297          '-g'
298      ],
299  )
300
301input_files = ChromeFileList([
302    'gfx/gdi_util.h',
303    'gfx/gtk_native_view_id_manager.cc',
304    'gfx/gtk_native_view_id_manager.h',
305    'gfx/gtk_util.cc',
306    'gfx/gtk_util.h',
307    'gfx/jpeg_codec.cc',
308    'gfx/jpeg_codec.h',
309    'gfx/native_theme.h',
310    'gfx/native_widget_types.h',
311    'gfx/native_widget_types_gtk.cc',
312    'gfx/png_decoder.cc',
313    'gfx/png_decoder.h',
314    'gfx/png_encoder.cc',
315    'gfx/png_encoder.h',
316    'gfx/point.cc',
317    'gfx/point.h',
318    'gfx/rect.cc',
319    'gfx/rect.h',
320    'gfx/size.cc',
321    'gfx/size.h',
322])
323
324target_files = []
325prerequisites = []
326
327_outputs = env.ChromeStaticLibrary('base_gfx', input_files)
328target_files.extend(_outputs)
329
330gyp_target = env.Alias('base_gfx', target_files)
331env.Requires(gyp_target, [
332    Alias('gtk')
333])
334env.Requires(gyp_target, prerequisites)
335Return("gyp_target")
336