aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-01-23 13:02:16 +0100
committerVictor Häggqvist <[email protected]>2014-01-23 13:02:16 +0100
commit43f59a9737e3f157c707c6868314bbfa77d4a005 (patch)
tree328cff70bb7bb8f698b573c1c1157c42a92a3d40 /wscript
init
Diffstat (limited to 'wscript')
-rw-r--r--wscript24
1 files changed, 24 insertions, 0 deletions
diff --git a/wscript b/wscript
new file mode 100644
index 0000000..0554dc8
--- /dev/null
+++ b/wscript
@@ -0,0 +1,24 @@
+
+#
+# This file is the default set of rules to compile a Pebble project.
+#
+# Feel free to customize this to your needs.
+#
+
+top = '.'
+out = 'build'
+
+def options(ctx):
+ ctx.load('pebble_sdk')
+
+def configure(ctx):
+ ctx.load('pebble_sdk')
+
+def build(ctx):
+ ctx.load('pebble_sdk')
+
+ ctx.pbl_program(source=ctx.path.ant_glob('src/**/*.c'),
+ target='pebble-app.elf')
+
+ ctx.pbl_bundle(elf='pebble-app.elf',
+ js=ctx.path.ant_glob('src/js/**/*.js'))