Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: SConstruct

Issue 6816005: Add -Werror compile flag. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/theme.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium OS 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 import os 5 import os
6 6
7 SOURCES=['theme_draw.cc', 'theme_main.cc'] 7 SOURCES=['theme_draw.cc', 'theme_main.cc']
8 8
9 env = Environment( 9 env = Environment(
10 CPPPATH=[ '..' ], 10 CPPPATH=[ '..' ],
11 CCFLAGS=['-g'], 11 CCFLAGS=['-g'],
12 ) 12 )
13 13
14 for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'): 14 for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'):
15 value = os.environ.get(key) 15 value = os.environ.get(key)
16 if value != None: 16 if value != None:
17 env[key] = Split(value) 17 env[key] = Split(value)
18 env['CCFLAGS'] += ['-fPIC', '-fno-exceptions', '-Wall'] 18 env['CCFLAGS'] += ['-fPIC', '-fno-exceptions', '-Wall', '-Werror']
19 19
20 # Fix issue with scons not passing some vars through the environment. 20 # Fix issue with scons not passing some vars through the environment.
21 for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH SYSROOT'): 21 for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH SYSROOT'):
22 if os.environ.has_key(key): 22 if os.environ.has_key(key):
23 env['ENV'][key] = os.environ[key] 23 env['ENV'][key] = os.environ[key]
24 24
25 env.ParseConfig('pkg-config --cflags --libs gtk+-2.0 glib-2.0') 25 env.ParseConfig('pkg-config --cflags --libs gtk+-2.0 glib-2.0')
26 26
27 env.SharedLibrary('theme', SOURCES) 27 env.SharedLibrary('theme', SOURCES)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698