~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from os.path import join, dirname, abspath
34
34
from types import DictType, StringTypes
35
35
root_dir = dirname(File('SConstruct').rfile().abspath)
 
36
src_dir = join(root_dir, 'src')
36
37
sys.path.insert(0, join(root_dir, 'tools'))
37
38
import js2c, utils
38
39
 
53
54
 
54
55
LIBRARY_FLAGS = {
55
56
  'all': {
56
 
    'CPPPATH': [join(root_dir, 'src')],
 
57
    'CPPPATH': [src_dir],
57
58
    'regexp:interpreted': {
58
59
      'CPPDEFINES': ['V8_INTERPRETED_REGEXP']
59
60
    },
111
112
      }
112
113
    },
113
114
    'os:freebsd': {
114
 
      'CPPPATH' : ['/usr/local/include'],
 
115
      'CPPPATH' : [src_dir, '/usr/local/include'],
115
116
      'LIBPATH' : ['/usr/local/lib'],
116
117
      'CCFLAGS':      ['-ansi'],
117
118
      'LIBS': ['execinfo']
118
119
    },
119
120
    'os:openbsd': {
120
 
      'CPPPATH' : ['/usr/local/include'],
 
121
      'CPPPATH' : [src_dir, '/usr/local/include'],
121
122
      'LIBPATH' : ['/usr/local/lib'],
122
123
      'CCFLAGS':      ['-ansi'],
123
124
    },
125
126
      # On Solaris, to get isinf, INFINITY, fpclassify and other macros one
126
127
      # needs to define __C99FEATURES__.
127
128
      'CPPDEFINES': ['__C99FEATURES__'],
128
 
      'CPPPATH' : ['/usr/local/include'],
 
129
      'CPPPATH' : [src_dir, '/usr/local/include'],
129
130
      'LIBPATH' : ['/usr/local/lib'],
130
131
      'CCFLAGS':      ['-ansi'],
131
132
    },
132
133
    'os:netbsd': {
133
 
      'CPPPATH' : ['/usr/pkg/include'],
 
134
      'CPPPATH' : [src_dir, '/usr/pkg/include'],
134
135
      'LIBPATH' : ['/usr/pkg/lib'],
135
136
    },
136
137
    'os:win32': {
403
404
 
404
405
CCTEST_EXTRA_FLAGS = {
405
406
  'all': {
406
 
    'CPPPATH': [join(root_dir, 'src')],
 
407
    'CPPPATH': [src_dir],
407
408
    'library:shared': {
408
409
      'CPPDEFINES': ['USING_V8_SHARED']
409
410
    },
460
461
 
461
462
SAMPLE_FLAGS = {
462
463
  'all': {
463
 
    'CPPPATH': [join(abspath('.'), 'include')],
 
464
    'CPPPATH': [join(root_dir, 'include')],
464
465
    'library:shared': {
465
466
      'CPPDEFINES': ['USING_V8_SHARED']
466
467
    },
643
644
 
644
645
PREPARSER_FLAGS = {
645
646
  'all': {
646
 
    'CPPPATH': [join(abspath('.'), 'include'), join(abspath('.'), 'src')],
 
647
    'CPPPATH': [join(root_dir, 'include'), src_dir],
647
648
    'library:shared': {
648
649
      'CPPDEFINES': ['USING_V8_SHARED']
649
650
    },