| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 | 5 |
| 6 import atexit | 6 import atexit |
| 7 import glob | 7 import glob |
| 8 import os | 8 import os |
| 9 import platform | 9 import platform |
| 10 import stat | 10 import stat |
| (...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1652 ], | 1652 ], |
| 1653 CPPPATH = ['${SOURCE_ROOT}'], | 1653 CPPPATH = ['${SOURCE_ROOT}'], |
| 1654 | 1654 |
| 1655 EXTRA_CFLAGS = [], | 1655 EXTRA_CFLAGS = [], |
| 1656 EXTRA_CCFLAGS = [], | 1656 EXTRA_CCFLAGS = [], |
| 1657 EXTRA_CXXFLAGS = [], | 1657 EXTRA_CXXFLAGS = [], |
| 1658 EXTRA_LIBS = [], | 1658 EXTRA_LIBS = [], |
| 1659 CFLAGS = ['${EXTRA_CFLAGS}'], | 1659 CFLAGS = ['${EXTRA_CFLAGS}'], |
| 1660 CCFLAGS = ['${EXTRA_CCFLAGS}'], | 1660 CCFLAGS = ['${EXTRA_CCFLAGS}'], |
| 1661 CXXFLAGS = ['${EXTRA_CXXFLAGS}'], | 1661 CXXFLAGS = ['${EXTRA_CXXFLAGS}'], |
| 1662 LIBS = ['${EXTRA_LIBS}'], |
| 1662 ) | 1663 ) |
| 1663 | 1664 |
| 1664 base_env.Append( | 1665 base_env.Append( |
| 1665 BUILD_SCONSCRIPTS = [ | 1666 BUILD_SCONSCRIPTS = [ |
| 1666 # KEEP THIS SORTED PLEASE | 1667 # KEEP THIS SORTED PLEASE |
| 1667 'src/shared/gio/build.scons', | 1668 'src/shared/gio/build.scons', |
| 1668 'src/shared/imc/build.scons', | 1669 'src/shared/imc/build.scons', |
| 1669 'src/shared/platform/build.scons', | 1670 'src/shared/platform/build.scons', |
| 1670 'src/shared/ppapi/build.scons', | 1671 'src/shared/ppapi/build.scons', |
| 1671 'src/shared/ppapi_proxy/build.scons', | 1672 'src/shared/ppapi_proxy/build.scons', |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2090 werror_flags + | 2091 werror_flags + |
| 2091 ['${EXTRA_CCFLAGS}'] , | 2092 ['${EXTRA_CCFLAGS}'] , |
| 2092 CPPPATH = ['$SOURCE_ROOT'], | 2093 CPPPATH = ['$SOURCE_ROOT'], |
| 2093 CFLAGS = ['-std=gnu99', | 2094 CFLAGS = ['-std=gnu99', |
| 2094 ] + | 2095 ] + |
| 2095 ['${EXTRA_CFLAGS}'], | 2096 ['${EXTRA_CFLAGS}'], |
| 2096 CXXFLAGS = ['-std=gnu++98', | 2097 CXXFLAGS = ['-std=gnu++98', |
| 2097 '-Wno-long-long', | 2098 '-Wno-long-long', |
| 2098 ] + | 2099 ] + |
| 2099 ['${EXTRA_CXXFLAGS}'], | 2100 ['${EXTRA_CXXFLAGS}'], |
| 2100 LIBS = [], | 2101 LIBS = ['${EXTRA_LIBS}'], |
| 2101 LINKFLAGS = ['${EXTRA_LINKFLAGS}'], | 2102 LINKFLAGS = ['${EXTRA_LINKFLAGS}'], |
| 2102 CPPDEFINES = [ | 2103 CPPDEFINES = [ |
| 2103 # _GNU_SOURCE ensures that strtof() gets declared. | 2104 # _GNU_SOURCE ensures that strtof() gets declared. |
| 2104 ['_GNU_SOURCE', 1], | 2105 ['_GNU_SOURCE', 1], |
| 2105 # This ensures that PRId64 etc. get defined. | 2106 # This ensures that PRId64 etc. get defined. |
| 2106 ['__STDC_FORMAT_MACROS', '1'], | 2107 ['__STDC_FORMAT_MACROS', '1'], |
| 2107 # strdup, and other common stuff | 2108 # strdup, and other common stuff |
| 2108 ['_BSD_SOURCE', '1'], | 2109 ['_BSD_SOURCE', '1'], |
| 2109 ['_POSIX_C_SOURCE', '199506'], | 2110 ['_POSIX_C_SOURCE', '199506'], |
| 2110 ['_XOPEN_SOURCE', '600'], | 2111 ['_XOPEN_SOURCE', '600'], |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2747 Default(['all_programs', 'all_bundles', 'all_test_programs', 'all_libraries']) | 2748 Default(['all_programs', 'all_bundles', 'all_test_programs', 'all_libraries']) |
| 2748 | 2749 |
| 2749 if BROKEN_TEST_COUNT > 0: | 2750 if BROKEN_TEST_COUNT > 0: |
| 2750 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 2751 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
| 2751 if GetOption('brief_comstr'): | 2752 if GetOption('brief_comstr'): |
| 2752 msg += " Add --verbose to the command line for more information." | 2753 msg += " Add --verbose to the command line for more information." |
| 2753 print msg | 2754 print msg |
| 2754 | 2755 |
| 2755 # separate warnings from actual build output | 2756 # separate warnings from actual build output |
| 2756 Banner('B U I L D - O U T P U T:') | 2757 Banner('B U I L D - O U T P U T:') |
| OLD | NEW |