File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ EMSCRIPTEN_CFLAGS:=-DMICROFLO_MESSAGE_LIMIT=200 -s NO_DYNAMIC_EXECUTION=1 -s EXP
22
22
build-emscripten :
23
23
rm -rf $(BUILD_DIR )
24
24
mkdir -p $(BUILD_DIR )
25
- $(MICROFLO ) generate $(GRAPH ) $(BUILD_DIR ) /main.cpp --target emscripten ${LIBRARYOPTION}
26
- cd $(BUILD_DIR ) && echo ' #include "emscripten.hpp"' >> main.cpp # HAAACK
25
+ $(MICROFLO ) generate $(GRAPH ) $(BUILD_DIR ) /main.cpp --target emscripten --mainfile ` pwd` /src/emscripten_main.hpp ${LIBRARYOPTION}
27
26
cd $(BUILD_DIR ) && emcc -o $(TARGET ) --pre-js ${PROJECT_DIR} /src/emscripten-pre.js main.cpp $(COMMON_CFLAGS ) ${EMSCRIPTEN_CFLAGS}
28
27
test -e $(BUILD_DIR ) /$(TARGET )
29
28
node fix-nodejs-check.js dist/microflo-runtime.js
Original file line number Diff line number Diff line change 1
1
{
2
2
"components" : [
3
3
" AnalogRead" ,
4
- " ArduinoUno" ,
5
4
" BooleanAnd" ,
6
5
" BooleanOr" ,
7
6
" BreakBeforeMake" ,
8
7
" Constrain" ,
9
8
" Count" ,
10
- " Delimit" ,
11
9
" DigitalRead" ,
12
10
" DigitalWrite" ,
13
11
" Forward" ,
21
19
" MonitorPin" ,
22
20
" NumberEquals" ,
23
21
" PwmWrite" ,
24
- " ReadCapacitivePin" ,
25
22
" Route" ,
26
- " SerialIn" ,
27
- " SerialOut" ,
28
23
" Split" ,
29
24
" Timer" ,
30
25
" ToggleBoolean" ,
Original file line number Diff line number Diff line change 21
21
"coffee-script" : " ^1.12.5" ,
22
22
"fbp" : " ^1.5.0" ,
23
23
"mocha" : " ^3.2.0" ,
24
- "microflo" : " ^0.3.47 " ,
25
- "microflo-core" : " ^0.3.34 "
24
+ "microflo" : " ^0.5.2 " ,
25
+ "microflo-core" : " ^0.5.0 "
26
26
}
27
27
}
You can’t perform that action at this time.
0 commit comments