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

Side by Side Diff: site_scons/site_tools/target_platform_linux.py

Issue 13134: Pulling in hammer changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « site_scons/site_tools/replicate.py ('k') | site_scons/site_tools/target_platform_mac.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python2.4 1 #!/usr/bin/python2.4
2 # Copyright 2008, Google Inc. 2 # Copyright 2008, Google Inc.
3 # All rights reserved. 3 # All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 # Declare bits 66 # Declare bits
67 DeclareBit('linux', 'Target platform is linux.', 67 DeclareBit('linux', 'Target platform is linux.',
68 exclusive_groups=('target_platform')) 68 exclusive_groups=('target_platform'))
69 DeclareBit('posix', 'Target platform is posix.') 69 DeclareBit('posix', 'Target platform is posix.')
70 env.SetBits('linux', 'posix') 70 env.SetBits('linux', 'posix')
71 71
72 env.Replace( 72 env.Replace(
73 TARGET_PLATFORM='LINUX', 73 TARGET_PLATFORM='LINUX',
74 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup, 74 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup,
75 CCFLAG_INCLUDE='-include', # Command line option to include a header 75 CCFLAG_INCLUDE='-include', # Command line option to include a header
76
77 # Code coverage related.
78 COVERAGE_CCFLAGS=['-ftest-coverage', '-fprofile-arcs'],
79 COVERAGE_LIBS='gcov',
80 COVERAGE_STOP_CMD=[
81 '$COVERAGE_MCOV --directory "$TARGET_ROOT" --output "$TARGET"',
82 ('$COVERAGE_GENHTML --output-directory $COVERAGE_HTML_DIR '
83 '$COVERAGE_OUTPUT_FILE'),
84 ],
76 ) 85 )
77 86
78 env.Append( 87 env.Append(
79 HOST_PLATFORMS=['LINUX'], 88 HOST_PLATFORMS=['LINUX'],
80 CPPDEFINES=['OS_LINUX=OS_LINUX'], 89 CPPDEFINES=['OS_LINUX=OS_LINUX'],
81 90
82 # Settings for debug 91 # Settings for debug
83 CCFLAGS_DEBUG=[ 92 CCFLAGS_DEBUG=[
84 '-O0', # turn off optimizations 93 '-O0', # turn off optimizations
85 '-g', # turn on debugging info 94 '-g', # turn on debugging info
86 ], 95 ],
87 96
88 # Settings for optimized 97 # Settings for optimized
89 CCFLAGS_OPTIMIZED=['-O2'], 98 CCFLAGS_OPTIMIZED=['-O2'],
90 99
91 # Settings for component_builders 100 # Settings for component_builders
92 COMPONENT_LIBRARY_LINK_SUFFIXES=['.so', '.a'], 101 COMPONENT_LIBRARY_LINK_SUFFIXES=['.so', '.a'],
93 COMPONENT_LIBRARY_DEBUG_SUFFIXES=[], 102 COMPONENT_LIBRARY_DEBUG_SUFFIXES=[],
94 ) 103 )
OLDNEW
« no previous file with comments | « site_scons/site_tools/replicate.py ('k') | site_scons/site_tools/target_platform_mac.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698