From 9e2a15fe48310694306dd1f368da75a65077411e Mon Sep 17 00:00:00 2001 From: Naruto TAKAHASHI Date: Mon, 2 Oct 2017 22:26:32 +0900 Subject: [PATCH] support WebGL --- modules/simon-speck-c | 2 +- net/plugins/WebGL/speck.bc | Bin 0 -> 10304 bytes net/plugins/WebGL/speck_common.bc | Bin 0 -> 1784 bytes net/plugins/WebGL/speck_ctr.bc | Bin 0 -> 3852 bytes scripts/create_unitypackage.sh | 1 + scripts/plugins/deploy_emscripten.sh | 20 ++++++++++++++++++++ 6 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 net/plugins/WebGL/speck.bc create mode 100644 net/plugins/WebGL/speck_common.bc create mode 100644 net/plugins/WebGL/speck_ctr.bc create mode 100755 scripts/plugins/deploy_emscripten.sh diff --git a/modules/simon-speck-c b/modules/simon-speck-c index 2851e51..76d5525 160000 --- a/modules/simon-speck-c +++ b/modules/simon-speck-c @@ -1 +1 @@ -Subproject commit 2851e51b6b975b131d674af976b70e8e9881df72 +Subproject commit 76d5525ffc52b2f69d314c11230401557e54611f diff --git a/net/plugins/WebGL/speck.bc b/net/plugins/WebGL/speck.bc new file mode 100644 index 0000000000000000000000000000000000000000..eddd5b9d6ce617382886a129cd708a6e62984ae6 GIT binary patch literal 10304 zcmds-eOyylw)gi*PEG>kxqiR4$$yY1be49 zZ<45Jqf(_~I}w(W@Ei-jV(Yjqx*oECqSLds5)SEjkt9Be+_>DL$`k0fM(MlhbY-SQH7_!KxhvnT zWDIj$ucP>M{b0V_9X+nws4KEI4cISjASchEic|>gA`nVwVo;ptG$#>w(dX21m8Dep zGW|3B%tmIEPiD1sWjpMdUPD$pk>fDT@EQ`D44Gcx%w8cUAMnX<8Rf_?zob>%>Z67j z#U-u$s#bBSkGhN$*J$}5Y60V}>}Da`(KWN(n$=^-Y{#y$4;yB52y>e4+3mV4uVF^J zkX76?DlQ@E^&xo$C%;L{uNmbPNO8k0zs@QyF^USK{2RCYS|0@l*ZZh%jPe0ajt1m6 z`lz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hp;(h8K(teYn54X+c4^NB(kb6Mj89-=6Q3 O<=$^$LGaQF`uv~qWK-4v literal 0 HcmV?d00001 diff --git a/net/plugins/WebGL/speck_common.bc b/net/plugins/WebGL/speck_common.bc new file mode 100644 index 0000000000000000000000000000000000000000..38cba880b5d56d2aed553d93cdcd0919e9ff658d GIT binary patch literal 1784 zcmb7Fe@qis9Dn87zQdO5A&o2XuHGRmUBXx`L#V)Vw7@X(M^Ur5WNuW1m2AS%LVuZT zEv>%l$kG|JG-hg>xJCDmBpT-*Y?Kz2U}u<`jZ{V?VB?GuVx032-S)1!Xfm^8m%MlH z-uHcfd_Ldr_npO>oUhRWpa1~uQX9)RzxzY(-XCwh-YhdoTYy&sa8?F@YM28B_`3uT z7+n8F)0BL(k~WzS$-?Ri1zD<>f3_4b8V*l(O>wH1qh+QFw9)F>r+k4Y=X%K^eLX5 zO%z?^nb{zllNpiNiF^ha=tRyK@;L}^6ghQhFov8C!WBSn5;{Q!AGYhKW!&5Xn@uuH zJd?$yfPS85=Ysm_CVe)}%<^nj7Kgr*$O)7lFWP8?J`%YNXk!3*+Mp+noKdvV0NriK z?I1i}=y4EODjH!xL>@V$`cp8rzM@$8ieb~?ypg>^XKdAlA1xtS=+^2}`+3tS|0W5^)liz88ohVnc}G3%h; z3o$JNC!x!jhY&-9Gx+2R;OJFL4<1d7&#V;c|PC7=I25Y{t35r2tBX z0XV<`P=wc}GP01{y-!|Jb|Q?Y#c(33UELlTQH8_pbh%63X;Xr@p#c0SB(+I0$uvp& zqhbuXZ8&!!zleq~8|N{%A*TcRbkNrZy%>dvin?vo9-#3Xp)(F$9NZJ7+yeA>!oeBk zLmD~*@Tq8kgWehCGCnq=Jd@wI9s?kN{Rnt~{S8Du>VWj2_9;QWj3pQ|q}{ngb^6X& zj5 zsRg5^&!|~kp;l~EH9g7BITnqc4nGq zCWGv>UHNm=YM!#1WBK`fy6&*GE<)5FPQQVjJ|3>WPSlU4)t7paxC3W2H0XfdPBe&n zHI7QJY||_Q&3zlS6r~mg%>qZ=#V9xfJ2!zFMt_xOaHG!MWR@1#J2HKbuA^?$y6LM> zea2S)3`i%!J?V{gv_FVyFarSiaDBdlc`ti=D%zoJX7LgX;L-K5z3)TL-R*Ss_V;ns zRpu%q#~Hf!xVoIZ;$U|lx1p-KwyK)j^lb4O)>%6&tPd7`o4VNZOYTtXJGs`{3R1Fn z3j0vuw`!HsfH{Ny9b(Mdh@p>K%`@rY9CI;Ibh}APDem9fJUc(Z0y_r)gLO*eEtNEW zTiX!xka4nkFiM zNmo!z3d#im>q+;Ku8cu_?J@c9cE2Cxt5 zpR<*s%XSZ+V7TU~r8ct=i6%xAVe(XRQP@piJ5A5_n}6b-6kTv6zZbgbYwOJ0s~;C# ZFbL<8;kHi|l~bU75+53;r7J7{{0(}PN1Xrw literal 0 HcmV?d00001 diff --git a/net/plugins/WebGL/speck_ctr.bc b/net/plugins/WebGL/speck_ctr.bc new file mode 100644 index 0000000000000000000000000000000000000000..41eae83dc694c84d386d7534adcc1a88a83fc0fa GIT binary patch literal 3852 zcmaJ^4^SKDmH(ubb{8bA79(t7{qc%Ft>QRXfGrCH_Uexv#pYt+xE<1DQVAOeH$av@ z#e!ZF{WB{Q;>b3WQ)eXNCaBOyvCrXAJJAL8MBlEIvvxRf{~wKHyV zZ-pnx+}zyG=$K!CoUW=lBMQmOrDU;Q@=~);wMT3_BeRXtRVoXq-k)D} zFzk$|82jGv&rordZP7_ZPM1u&td0JmZ1BdQEQ!V2m;rH< zIh^Mq)Mj$`%1!MZVPP29e7%&q~zxLp&s*Mx#KC{%mVt{Dy1 zMpJcQm9T4I(KNObEzv@RHxRwNLbb=JPt(*&E`A}AZ$zFmAGce^|37n+@)k!eyQsx9 z{y7A^LVW^>AZ2@+%CgFvC~CLFA!Ur6#p**T%dc`gT!ffYmUOCi+O7%P>!ZOMA%$e! zXmHms<|9y}a@nNJx&0~njeK8}H~WY_Bj4%d zL7Gj3x0UA@A|Zg6Mzm-`cWp#5Yt>JT2(B_&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=dUD1Y?ExrN}_Y$bAxC49kG}W91~%Zpi51hF^0x`Br<$2t^%tmE0Z_I?xYzSKWBVr09|(fl)2vm|k?&u;IwakTgUVTgSE(Eo^mK8%X /dev/null /bin/cp -r ${BASEDIR}/net/plugins/* Assets/Plugins # copy dll files /bin/cp -r ${BASEDIR}/SimonSpeckNet_Static.dll Assets/Plugins/iOS/ +/bin/cp -r ${BASEDIR}/SimonSpeckNet_Static.dll Assets/Plugins/WebGL/ /bin/cp -r ${BASEDIR}/SimonSpeckNet.dll Assets/Plugins/Android/ /bin/cp -r ${BASEDIR}/SimonSpeckNet.dll Assets/Plugins/x64/ /bin/rm -f ${BASEDIR}/SimonSpeckNet_Static.dll ${BASEDIR}/SimonSpeckNet.dll diff --git a/scripts/plugins/deploy_emscripten.sh b/scripts/plugins/deploy_emscripten.sh new file mode 100755 index 0000000..e60a1ef --- /dev/null +++ b/scripts/plugins/deploy_emscripten.sh @@ -0,0 +1,20 @@ +#!/bin/bash -xe + +SCRIPTDIR=`dirname $0` +SCRIPTDIR=`cd $SCRIPTDIR && pwd -P` +BASEDIR=${SCRIPTDIR}/../.. +BASEDIR=`cd ${BASEDIR} && pwd -P` + +pushd ${BASEDIR} > /dev/null + +# build speck by emscripten +pushd ./modules/simon-speck-c +./scripts/speck/build_emscripten.sh +popd > /dev/null # ./modules/simon-speck-c + +OUTPUT_DIR=./net/plugins/WebGL +/bin/rm -rf ${OUTPUT_DIR} +/bin/mkdir -p ${OUTPUT_DIR} +unzip ./modules/simon-speck-c/libs/emscripten/libspeck.zip -d ${OUTPUT_DIR} + +popd > /dev/null