| OLD | NEW |
| 1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG', 'ENABLE_DEBUGGER_SUPPORT'] | 118 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG', 'ENABLE_DEBUGGER_SUPPORT'] |
| 119 } | 119 } |
| 120 }, | 120 }, |
| 121 'os:linux': { | 121 'os:linux': { |
| 122 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, | 122 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, |
| 123 'library:shared': { | 123 'library:shared': { |
| 124 'LIBS': ['pthread'] | 124 'LIBS': ['pthread'] |
| 125 } | 125 } |
| 126 }, | 126 }, |
| 127 'os:macos': { | 127 'os:macos': { |
| 128 'CCFLAGS': ['-ansi'], | 128 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], |
| 129 }, | 129 }, |
| 130 'os:freebsd': { | 130 'os:freebsd': { |
| 131 'CPPPATH' : ['/usr/local/include'], | 131 'CPPPATH' : ['/usr/local/include'], |
| 132 'LIBPATH' : ['/usr/local/lib'], | 132 'LIBPATH' : ['/usr/local/lib'], |
| 133 'CCFLAGS': ['-ansi'], | 133 'CCFLAGS': ['-ansi'], |
| 134 }, | 134 }, |
| 135 'os:win32': { | 135 'os:win32': { |
| 136 'CCFLAGS': ['-DWIN32'], | 136 'CCFLAGS': ['-DWIN32'], |
| 137 'CXXFLAGS': ['-DWIN32'], | 137 'CXXFLAGS': ['-DWIN32'], |
| 138 }, | 138 }, |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 if match: | 634 if match: |
| 635 version_components.append(match.group(1).strip()) | 635 version_components.append(match.group(1).strip()) |
| 636 else: | 636 else: |
| 637 version_components.append('0') | 637 version_components.append('0') |
| 638 | 638 |
| 639 return version_components | 639 return version_components |
| 640 | 640 |
| 641 | 641 |
| 642 def GetVersion(): | 642 def GetVersion(): |
| 643 version_components = GetVersionComponents() | 643 version_components = GetVersionComponents() |
| 644 | 644 |
| 645 if version_components[len(version_components) - 1] == '0': | 645 if version_components[len(version_components) - 1] == '0': |
| 646 version_components.pop() | 646 version_components.pop() |
| 647 return '.'.join(version_components) | 647 return '.'.join(version_components) |
| 648 | 648 |
| 649 | 649 |
| 650 def GetSpecificSONAME(): | 650 def GetSpecificSONAME(): |
| 651 SONAME_PATTERN = re.compile(r"#define\s+SONAME\s+\"(.*)\"") | 651 SONAME_PATTERN = re.compile(r"#define\s+SONAME\s+\"(.*)\"") |
| 652 | 652 |
| 653 source = open(join(root_dir, 'src', 'version.cc')).read() | 653 source = open(join(root_dir, 'src', 'version.cc')).read() |
| 654 match = SONAME_PATTERN.search(source) | 654 match = SONAME_PATTERN.search(source) |
| 655 | 655 |
| 656 if match: | 656 if match: |
| 657 return match.group(1).strip() | 657 return match.group(1).strip() |
| 658 else: | 658 else: |
| 659 return '' | 659 return '' |
| 660 | 660 |
| 661 | 661 |
| 662 def SplitList(str): | 662 def SplitList(str): |
| 663 return [ s for s in str.split(",") if len(s) > 0 ] | 663 return [ s for s in str.split(",") if len(s) > 0 ] |
| 664 | 664 |
| 665 | 665 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 # version of scons. Also, there's a bug in some revisions that | 926 # version of scons. Also, there's a bug in some revisions that |
| 927 # doesn't allow this flag to be set, so we swallow any exceptions. | 927 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 928 # Lovely. | 928 # Lovely. |
| 929 try: | 929 try: |
| 930 SetOption('warn', 'no-deprecated') | 930 SetOption('warn', 'no-deprecated') |
| 931 except: | 931 except: |
| 932 pass | 932 pass |
| 933 | 933 |
| 934 | 934 |
| 935 Build() | 935 Build() |
| OLD | NEW |