Improve Js2C converter (#1408)

* Rename 'jerry_targetjs.h' to 'jerry-targetjs.h',
   because we use dashes in filen ames instead of underscores.
 * Made destination and js souce directory configurable.
 * Updated esp8266 target to the recent changes.
 * Updated mbed and mbedos5 target to the recent changes.

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2016-10-27 09:54:01 +02:00
committed by GitHub
parent ac1bf19c90
commit a30b89c536
10 changed files with 25 additions and 27 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ Basically, you can create a new target in this way (If the mbed OS support your
You can run this rule with the following command:
- `make -f targets/mbed/Makefile.mbed board=$(TARGET) jerry`
2. The next rule is the `js2c`. This rule calls a `js2c.py` python script from the `jerryscript/targets/tools` and creates the JavaScript builtin file into the `targets/mbed/source/` folder. This file is the `jerry_targetjs.h`. You can run this rule with the follwoing command:
2. The next rule is the `js2c`. This rule calls a `js2c.py` python script from the `jerryscript/targets/tools` and creates the JavaScript builtin file into the `targets/mbed/source/` folder. This file is the `jerry-targetjs.h`. You can run this rule with the follwoing command:
- `make -f targets/mbed/Makefile.mbed board=$(TARGET) js2c`
+1 -1
View File
@@ -19,7 +19,7 @@
#include "jerry-core/jerry-api.h"
#include "jerry_run.h"
#include "jerry_targetjs.h"
#include "jerry-targetjs.h"
static Serial pc (USBTX, USBRX); //tx, rx