🏡 index : github.com/captn3m0/epicqr.git

author Nemo <me@captnemo.in> 2024-01-08 10:53:49.0 +05:30:00
committer Nemo <me@captnemo.in> 2024-01-08 10:53:49.0 +05:30:00
commit
4882c0c09b0f24dcaafe7b082ee09629b7b771c2 [patch]
tree
8cb17de06d9d2d256919ad2c20e5979c288de5f0
parent
28d3191077389bf63ecec3b69feb7ab19681b7bf
download
4882c0c09b0f24dcaafe7b082ee09629b7b771c2.tar.gz

move target hxmls away from root



Diff

 build-js.hxml         |  9 ---------
 build-jvm.hxml        |  7 -------
 build-nodejs.hxml     | 10 ----------
 php.hxml              | 10 ----------
 _scripts/build.sh     |  8 ++++++--
 _targets/browser.hxml |  8 ++++++++
 _targets/jvm.hxml     |  6 ++++++
 _targets/nodejs.hxml  | 10 ++++++++++
 _targets/php.hxml     | 10 ++++++++++
 9 files changed, 40 insertions(+), 38 deletions(-)

diff --git a/build-js.hxml b/build-js.hxml
deleted file mode 100644
index 7711267..0000000 100644
--- a/build-js.hxml
+++ /dev/null
@@ -1,9 +1,0 @@
-cp src 
eci.EpicQR
-L crypto
-w -WDeprecatedEnumAbstract
-js bin/lib.js
--dce full
--macro keep('eci.EpicQR')
--macro keep('eci.Result')
--verbose
diff --git a/build-jvm.hxml b/build-jvm.hxml
deleted file mode 100644
index b5e1a11..0000000 100644
--- a/build-jvm.hxml
+++ /dev/null
@@ -1,7 +1,0 @@
-cp src 
eci.EpicQR
-L crypto
-w -WDeprecatedEnumAbstract
# -js bin/lib.js
--java src/
-D source-map
diff --git a/build-nodejs.hxml b/build-nodejs.hxml
deleted file mode 100644
index 9d510dd..0000000 100644
--- a/build-nodejs.hxml
+++ /dev/null
@@ -1,10 +1,0 @@
-cp src 
-L crypto
-L hxnodejs
-w -WDeprecatedEnumAbstract
-js src/eci/epic.js
--dce full
--macro keep('eci.EpicQR')
--macro keep('eci.Result')
-D js-es=6
eci.EpicQR
diff --git a/php.hxml b/php.hxml
deleted file mode 100644
index e6bb4ac..0000000 100644
--- a/php.hxml
+++ /dev/null
@@ -1,10 +1,0 @@
-cp src
-w -WDeprecatedEnumAbstract
-php .
--dce full
--macro keep('eci.EpicQR')
--macro keep('eci.Result')
-D analyzer_optimize
-D real-position
-D php-lib=src
eci.EpicQR
diff --git a/_scripts/build.sh b/_scripts/build.sh
index 769c87a..59ec2e3 100644
--- a/_scripts/build.sh
+++ a/_scripts/build.sh
@@ -1,13 +1,17 @@
#!/bin/sh
# Haxe
rm -f haxe-build.zip
zip -r haxe-build.zip src LICENSE *.md *.json *.hxml

# Java
# TODO: Directly generate JAR from haxe
javac -cp src src/eci/*.java -d build/
jar -cf epicqr-release.jar build/*

# PHP
haxe php.hxml
haxe _targets/php.hxml
sed -i '/^use/d' src/eci/*.php
sed -i '/^Boot::/d' src/eci/*.php
sed -i '/^Boot::/d' src/eci/*.php

# Node.js
haxe _targets/nodejs.hxml
diff --git a/_targets/browser.hxml b/_targets/browser.hxml
new file mode 100644
index 0000000..1dcff66 100644
--- /dev/null
+++ a/_targets/browser.hxml
@@ -1,0 +1,8 @@
-cp src 
eci.EpicQR
-L crypto
-w -WDeprecatedEnumAbstract
-js src/lib.js
--dce full
--macro keep('eci.EpicQR')
--macro keep('eci.Result')
diff --git a/_targets/jvm.hxml b/_targets/jvm.hxml
new file mode 100644
index 0000000..a5a3e5b 100644
--- /dev/null
+++ a/_targets/jvm.hxml
@@ -1,0 +1,6 @@
-cp src 
eci.EpicQR
-L crypto
-w -WDeprecatedEnumAbstract
--java src/
-D source-map
diff --git a/_targets/nodejs.hxml b/_targets/nodejs.hxml
new file mode 100644
index 0000000..9d510dd 100644
--- /dev/null
+++ a/_targets/nodejs.hxml
@@ -1,0 +1,10 @@
-cp src 
-L crypto
-L hxnodejs
-w -WDeprecatedEnumAbstract
-js src/eci/epic.js
--dce full
--macro keep('eci.EpicQR')
--macro keep('eci.Result')
-D js-es=6
eci.EpicQR
diff --git a/_targets/php.hxml b/_targets/php.hxml
new file mode 100644
index 0000000..e6bb4ac 100644
--- /dev/null
+++ a/_targets/php.hxml
@@ -1,0 +1,10 @@
-cp src
-w -WDeprecatedEnumAbstract
-php .
--dce full
--macro keep('eci.EpicQR')
--macro keep('eci.Result')
-D analyzer_optimize
-D real-position
-D php-lib=src
eci.EpicQR