Skip to content

Commit

Permalink
microflo: Update to 0.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Dec 31, 2017
1 parent 06c19ad commit 3c7a9c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ EMSCRIPTEN_CFLAGS:=-DMICROFLO_MESSAGE_LIMIT=200 -s NO_DYNAMIC_EXECUTION=1 -s EXP
build-emscripten:
rm -rf $(BUILD_DIR)
mkdir -p $(BUILD_DIR)
$(MICROFLO) generate $(GRAPH) $(BUILD_DIR)/main.cpp --target emscripten ${LIBRARYOPTION}
cd $(BUILD_DIR) && echo '#include "emscripten.hpp"' >> main.cpp # HAAACK
$(MICROFLO) generate $(GRAPH) $(BUILD_DIR)/main.cpp --target emscripten --mainfile `pwd`/src/emscripten_main.hpp ${LIBRARYOPTION}
cd $(BUILD_DIR) && emcc -o $(TARGET) --pre-js ${PROJECT_DIR}/src/emscripten-pre.js main.cpp $(COMMON_CFLAGS) ${EMSCRIPTEN_CFLAGS}
test -e $(BUILD_DIR)/$(TARGET)
node fix-nodejs-check.js dist/microflo-runtime.js
Expand Down
5 changes: 0 additions & 5 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"components": [
"AnalogRead",
"ArduinoUno",
"BooleanAnd",
"BooleanOr",
"BreakBeforeMake",
"Constrain",
"Count",
"Delimit",
"DigitalRead",
"DigitalWrite",
"Forward",
Expand All @@ -21,10 +19,7 @@
"MonitorPin",
"NumberEquals",
"PwmWrite",
"ReadCapacitivePin",
"Route",
"SerialIn",
"SerialOut",
"Split",
"Timer",
"ToggleBoolean",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"coffee-script": "^1.12.5",
"fbp": "^1.5.0",
"mocha": "^3.2.0",
"microflo": "^0.3.47",
"microflo-core": "^0.3.34"
"microflo": "^0.5.2",
"microflo-core": "^0.5.0"
}
}

0 comments on commit 3c7a9c9

Please sign in to comment.