forked from pxscene/pxCore2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Duktape proof of concept (pxscene#715) * Initial duktape support / swap to replace node / v8 * Basic README * Linux build updates * Remove node dependency * Stability updates * Step by step build instructions * Cleaning up. * Reverting additional changes that weren’t absolutely necessary. * Fix compliation issue on Linux * Minor formatting cleanup * Require fix-up * Changes to support both Node and duktape at compile time. * Unnecessary changes * Update build doc for duktape build flag * Move dukluv to external directory * Some fixes for building OSX with duktape... node probably broken right now * Build changes to build OS for duktape... node probably broken * First cut refactoring to push node support under a rtScript abstraction * Added support for support both node and duktape in same build with a runtime switch * Eliminated need for "mapKeys" property used in duktape interop. * Added support for js arrays (makes dom.js work now) * duktape doesn't need v8 * Added a few more convenience APIs for retrieving env variables * Adding #defines for script engines into build * Code cleanup * changes for verifying nodestuff in _duktape branch (pxscene#775) * changes for verifying nodestuff in _duktape branch * changes for verifying nodestuff in _duktape branch * few more changes to make it work on all platforms * few more changes to make it work on all platforms * updates for the duktape branch * Some rudimentry websocket support for duktape... (no wss yet) * ignore false positive leak report (timing issue) * build updates
- Loading branch information
mfiess
authored
Jan 18, 2018
1 parent
d870a36
commit 2cb2fc5
Showing
739 changed files
with
428,195 additions
and
14,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
cmake_minimum_required(VERSION 2.8.9) | ||
|
||
project (dukluv) | ||
|
||
include(duktape.cmake) | ||
include(uv.cmake) | ||
|
||
add_library(duv | ||
src/duv.c | ||
src/refs.c | ||
src/utils.c | ||
src/loop.c | ||
src/req.c | ||
src/handle.c | ||
src/timer.c | ||
src/stream.c | ||
src/tcp.c | ||
src/pipe.c | ||
src/tty.c | ||
src/fs.c | ||
src/misc.c | ||
src/utils.c | ||
src/uv_schema.c | ||
src/callbacks.c | ||
src/miniz.c | ||
) | ||
|
||
|
||
add_library(dschema | ||
src/schema.c | ||
) | ||
|
||
add_executable(dukluv src/main.c) | ||
|
||
target_link_libraries(dukluv duv dschema duktape uv) | ||
|
||
set(CMAKE_INSTALL_NAME_DIR ${LIB_INSTALL_DIR}) | ||
SET (BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE STRING "Directory where lib will install") | ||
SET (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Directory where lib will install") | ||
SET (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The directory the headers are installed in") | ||
|
||
#install(TARGETS duv dschema duktape uv DESTINATION ${LIB_INSTALL_DIR}) | ||
#install(TARGETS dukluv DESTINATION ${BIN_INSTALL_DIR}) | ||
#install(FILES src/refs.h src/duv.h lib/duktape/src-separate/duk_config.h lib/duktape/src-separate/duktape.h DESTINATION ${INCLUDE_INSTALL_DIR}/duv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Tim Caswell | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
dukluv | ||
====== | ||
|
||
LibUV bindings for duktape JS engine | ||
|
||
The goal of this project is to make a node.js-like environment that's ultra lean for tiny devices. | ||
|
||
<http://dukluv.io/> | ||
|
||
Prerequisites | ||
------------- | ||
|
||
Linux: | ||
|
||
$ sudo apt-get build-essential | ||
$ sudo apt-get install cmake | ||
|
||
OS X (using Brew) | ||
|
||
$ brew install cmake | ||
|
||
Windows | ||
|
||
- Install cmake manually | ||
- Use cygwin or start an MSVC command prompt | ||
|
||
Compiling | ||
--------- | ||
|
||
$ git submodule init; git submodule update | ||
$ mkdir build | ||
$ cd build | ||
$ cmake .. | ||
$ make | ||
|
||
The result is `./dukluv`, a standalone binary which you can add to | ||
PATH or copy to e.g. `/usr/local/bin/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
return 42; |
Oops, something went wrong.