| OLD | NEW |
| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 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 ) | 76 ) |
| 76 | 77 |
| 77 env.Append( | 78 env.Append( |
| 78 HOST_PLATFORMS=['LINUX'], | 79 HOST_PLATFORMS=['LINUX'], |
| 79 CPPDEFINES=['OS_LINUX=OS_LINUX'], | 80 CPPDEFINES=['OS_LINUX=OS_LINUX'], |
| 80 | 81 |
| 81 # Settings for debug | 82 # Settings for debug |
| 82 CCFLAGS_DEBUG=[ | 83 CCFLAGS_DEBUG=[ |
| 83 '-O0', # turn off optimizations | 84 '-O0', # turn off optimizations |
| 84 '-g', # turn on debugging info | 85 '-g', # turn on debugging info |
| 85 ], | 86 ], |
| 86 | 87 |
| 87 # Settings for optimized | 88 # Settings for optimized |
| 88 CCFLAGS_OPTIMIZED=['-O2'], | 89 CCFLAGS_OPTIMIZED=['-O2'], |
| 89 | 90 |
| 90 # Settings for component_builders | 91 # Settings for component_builders |
| 91 COMPONENT_LIBRARY_LINK_SUFFIXES=['.so', '.a'], | 92 COMPONENT_LIBRARY_LINK_SUFFIXES=['.so', '.a'], |
| 92 COMPONENT_LIBRARY_DEBUG_SUFFIXES=[], | 93 COMPONENT_LIBRARY_DEBUG_SUFFIXES=[], |
| 93 ) | 94 ) |
| OLD | NEW |