Permalink
Browse files

Adding Prototype plugin.

  • Loading branch information...
1 parent d4aebd0 commit f91d0b99cd2a4c278c79fa6c0763f1387df2f21d @akoprow committed Feb 29, 2012
Showing with 4,252 additions and 2 deletions.
  1. +2 −2 Makefile
  2. +27 −0 plugins/prototype/Makefile
  3. +2 −0 plugins/prototype/conf.jsconf
  4. +4,221 −0 plugins/prototype/prototype-1.6.0.2.js
View
@@ -7,8 +7,8 @@ SRC =
MAINSRC = box2d-demo.opa
PCKDIR = ./packages/
PCK = box2d.opx
-PLUGIN =
-PLUGINDIR =
+PLUGINDIR = ./plugins/
+PLUGIN = prototype.opp
OTHER_DEPENDS =
#Compiler variables
@@ -0,0 +1,27 @@
+########################################
+# USER VARIABLES
+MKLIB = opa-plugin-builder
+PLUGNAME = prototype.opp
+SRC = prototype-1.6.0.2.js
+CONF = conf.jsconf
+
+########################################
+# MAKEFILE VARIABLES
+ifeq ($(origin BUILDDIR), undefined)
+ PWD := $(shell pwd)
+ BUILDDIR := $(PWD)/_build/
+ export BUILDDIR
+endif
+
+########################################
+# PLUGIN BUILDING
+$(PLUGNAME) : $(SRC)
+ @echo "### Building plugin $(PLUGNAME)"
+ @$(MKLIB) --js-validator-off -o $(@:%.opp=%) $? $(CONF) --build-dir $(BUILDDIR)
+
+########################################
+# CLEANING
+clean :
+ @echo "### Cleaning plugin $(PLUGNAME)"
+ @rm -rf $(BUILDDIR)/$(PLUGNAME)
+
@@ -0,0 +1,2 @@
+[b2d.js]
+verbatim: true
Oops, something went wrong.

0 comments on commit f91d0b9

Please sign in to comment.