Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add binding.gyp sypport for node v0.6.x, refs #111
- Loading branch information
Showing
8 changed files
with
72 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
'targets': [ | ||
{ | ||
# have to specify 'liblib' here since gyp will remove the first one :\ | ||
'target_name': 'mysql_bindings', | ||
'sources': [ | ||
'src/mysql_bindings.cc', | ||
'src/mysql_bindings_connection.cc', | ||
'src/mysql_bindings_result.cc', | ||
'src/mysql_bindings_statement.cc', | ||
], | ||
'conditions': [ | ||
['OS=="win"', { | ||
# no Windows support yet... | ||
}, { | ||
'libraries': [ | ||
'<!@(mysql_config --libs)' | ||
], | ||
}], | ||
['OS=="mac"', { | ||
# cflags on OS X are stupid and have to be defined like this | ||
'xcode_settings': { | ||
'OTHER_CFLAGS': [ | ||
'<!@(mysql_config --cflags)' | ||
] | ||
} | ||
}, { | ||
'cflags': [ | ||
'<!@(mysql_config --cflags)' | ||
], | ||
}] | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/*! | ||
* Copyright by Oleg Efimov and node-mysql-libmysqlclient contributors | ||
* See contributors list in README | ||
* | ||
* See license text in LICENSE file | ||
*/ | ||
|
||
try { | ||
module.exports = require('./build/default/mysql_bindings'); | ||
} catch(e) { | ||
// For node v0.5.5+ | ||
module.exports = require('./build/Release/mysql_bindings'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters