Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added build script

  • Loading branch information...
commit a842bc10dbe66fa967135935c486437e996bbf7b 1 parent 3606c83
Peteris Krumins authored August 12, 2010

Showing 1 changed file with 28 additions and 0 deletions. Show diff stats Hide diff stats

  1. 28  wscript
28  wscript
... ...
@@ -0,0 +1,28 @@
  1
+import Options
  2
+from os import unlink, symlink, popen
  3
+from os.path import exists 
  4
+
  5
+srcdir = "."
  6
+blddir = "build"
  7
+VERSION = "0.0.1"
  8
+
  9
+def set_options(opt):
  10
+  opt.tool_options("compiler_cxx")
  11
+
  12
+def configure(conf):
  13
+  conf.check_tool("compiler_cxx")
  14
+  conf.check_tool("node_addon")
  15
+
  16
+def build(bld):
  17
+  obj = bld.new_task_gen("cxx", "shlib", "node_addon")
  18
+  obj.target = "rfb-protocols"
  19
+  obj.source = "src/common.cpp src/hextile.cpp src/hextilenode.cpp src/module.cpp"
  20
+  obj.cxxflags = ["-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE"]
  21
+
  22
+def shutdown():
  23
+  if Options.commands['clean']:
  24
+    if exists('rfb-protocols.node'): unlink('rfb-protocols.node')
  25
+  else:
  26
+    if exists('build/default/rfb-protocols.node') and not exists('rfb-protocols.node'):
  27
+      symlink('build/default/rfb-protocols.node', 'rfb-protocols.node')
  28
+

0 notes on commit a842bc1

Please sign in to comment.
Something went wrong with that request. Please try again.