Skip to content

Commit

Permalink
Merge pull request #539 from Level/normalize-gyp-files
Browse files Browse the repository at this point in the history
Normalize gyp files
  • Loading branch information
ralphtheninja authored Dec 6, 2018
2 parents a941d96 + bc48b15 commit d7b73d3
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 427 deletions.
108 changes: 53 additions & 55 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,57 +1,55 @@
{
"targets": [{
"target_name": "leveldown"
, "conditions": [
["OS == 'win'", {
"defines": [
"_HAS_EXCEPTIONS=0"
]
, "msvs_settings": {
"VCCLCompilerTool": {
"RuntimeTypeInfo": "false"
, "EnableFunctionLevelLinking": "true"
, "ExceptionHandling": "2"
, "DisableSpecificWarnings": [ "4355", "4530" ,"4267", "4244", "4506" ]
}
}
}]
, ['OS == "linux"', {
'cflags': [
]
, 'cflags!': [ '-fno-tree-vrp']
}]
, ['OS == "android"', {
'cflags': [ '-fPIC' ]
, 'ldflags': [ '-fPIC' ]
, 'cflags!': [
'-fno-tree-vrp'
, '-fno-exceptions'
, '-mfloat-abi=hard'
, '-fPIE'
]
, 'cflags_cc!': [ '-fno-exceptions' ]
, 'ldflags!': [ '-fPIE' ]
}]
, ['target_arch == "arm"', {
'cflags': [ '-mfloat-abi=hard'
]
}]
]
, "dependencies": [
"<(module_root_dir)/deps/leveldb/leveldb.gyp:leveldb"
]
, "include_dirs" : [
"<!(node -e \"require('nan')\")"
]
, "sources": [
"src/batch.cc"
, "src/batch_async.cc"
, "src/database.cc"
, "src/database_async.cc"
, "src/iterator.cc"
, "src/iterator_async.cc"
, "src/leveldown.cc"
, "src/leveldown_async.cc"
]
}]
"targets": [{
"target_name": "leveldown",
"conditions": [
["OS == 'win'", {
"defines": [
"_HAS_EXCEPTIONS=0"
],
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeTypeInfo": "false",
"EnableFunctionLevelLinking": "true",
"ExceptionHandling": "2",
"DisableSpecificWarnings": [ "4355", "4530" ,"4267", "4244", "4506" ]
}
}
}],
["OS == 'linux'", {
"cflags": [],
"cflags!": [ "-fno-tree-vrp"]
}],
["OS == 'android'", {
"cflags": [ "-fPIC" ],
"ldflags": [ "-fPIC" ],
"cflags!": [
"-fno-tree-vrp",
"-fno-exceptions",
"-mfloat-abi=hard",
"-fPIE"
],
"cflags_cc!": [ "-fno-exceptions" ],
"ldflags!": [ "-fPIE" ]
}],
["target_arch == 'arm'", {
"cflags": [ "-mfloat-abi=hard" ]
}]
],
"dependencies": [
"<(module_root_dir)/deps/leveldb/leveldb.gyp:leveldb"
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"sources": [
"src/batch.cc",
"src/batch_async.cc",
"src/database.cc",
"src/database_async.cc",
"src/iterator.cc",
"src/iterator_async.cc",
"src/leveldown.cc",
"src/leveldown_async.cc"
]
}]
}
Loading

0 comments on commit d7b73d3

Please sign in to comment.