Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added node-gyp support.

  • Loading branch information...
commit 2b637550b3e874c52fbdc49bc832c9d72ebb9ea2 1 parent d66d4e3
@fardjad fardjad authored
Showing with 45 additions and 0 deletions.
  1. +45 −0 binding.gyp
View
45 binding.gyp
@@ -0,0 +1,45 @@
+{
+ "targets": [
+ {
+ "target_name": "o3",
+ "include_dirs": [
+ "include",
+ "hosts",
+ "modules",
+ "deps"
+ ],
+ "sources": [
+ "hosts/node-o3/sh_node.cc",
+ "hosts/node-o3/sh_node_libs.cc"
+ ],
+ "conditions": [
+ ["OS==\"win\"", {
+ # TODO: Add Windows libraries
+ }, {
+ "libraries": [
+ "<!@(xml2-config --libs)"
+ ]
+ }],
+ ["OS==\"mac\"", {
+ "xcode_settings": {
+ "OTHER_CFLAGS": [
+ "<!@(xml2-config --cflags)",
+ "-O3",
+ "-msse2",
+ "-ffast-math",
+ "-fexceptions"
+ ]
+ }
+ }, {
+ "cflags": [
+ "<!@(xml2-config --cflags)",
+ "-O3",
+ "-msse2",
+ "-ffast-math",
+ "-fexceptions"
+ ]
+ }]
+ ]
+ }
+ ]
+}
Please sign in to comment.
Something went wrong with that request. Please try again.