Skip to content

Commit

Permalink
make smjs compile as a dep of another project
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 13, 2012
1 parent b78159b commit 1bd38b3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 116 deletions.
114 changes: 0 additions & 114 deletions config/linux/js-confdefs.h

This file was deleted.

File renamed without changes.
22 changes: 20 additions & 2 deletions smjs.gyp
Expand Up @@ -16,22 +16,40 @@
},
},

'direct_dependent_settings': {
'include_dirs': [
'extra/',
'src',
],
'conditions': [
['target_arch == "x64"', {
'defines': ['JS_BYTES_PER_WORD=8'],
}],
['target_arch == "ia32"', {
'defines': ['JS_BYTES_PER_WORD=4'],
}],
['target_arch == "arm"', {
'defines': ['JS_BYTES_PER_WORD=4'],
}],
],
},

'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
'config/common',
'extra/',
'src',
'src/assembler',
'src/methodjit',
],

'defines': [
'HAVE_VA_LIST_AS_ARRAY=0', # XXX arch/platform/ABI/compiler dependent...
'HAVE_VA_LIST_AS_ARRAY=1', # XXX arch/platform/ABI/compiler dependent...
'__STDC_LIMIT_MACROS=1',
'JS_MONOIC=1',
'JS_POLYIC=1',
'JS_METHODJIT=1',
'JS_DEFAULT_JITREPORT_GRANULARITY=3',
'JSGC_INCREMENTAL=1',
],

# XXX I have frankly no idea what JS_NUNBOX32 and JS_PUNBOX64 *really* do
Expand Down

0 comments on commit 1bd38b3

Please sign in to comment.