Commit d8c9350d authored by Alex Hultman's avatar Alex Hultman
Browse files

Update & clean nodejs folder

parent 42b76b8a
CPP_SHARED := -DUSE_LIBUV -std=c++11 -O3 -I ../src -shared -fPIC ../src/Extensions.cpp ../src/Group.cpp ../src/WebSocketImpl.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp addon.cpp
CPP_SHARED := -DUSE_LIBUV -std=c++11 -O3 -I ../src -shared -fPIC ../src/Extensions.cpp ../src/Group.cpp ../src/WebSocketImpl.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp src/addon.cpp
CPP_OSX := -stdlib=libc++ -mmacosx-version-min=10.7 -undefined dynamic_lookup
default:
......@@ -10,9 +10,10 @@ default:
cp ../README.md dist/README.md
cp ../LICENSE dist/LICENSE
cp -r ../src dist/
cp addon.cpp dist/src/addon.cpp
cp addon.h dist/src/addon.h
cp http.h dist/src/http.h
cp src/addon.cpp dist/src/addon.cpp
cp src/addon.h dist/src/addon.h
cp src/http.h dist/src/http.h
cp src/uws.js dist/uws.js
for f in dist/*.node; do chmod +x $$f; done
targets:
mkdir targets
......@@ -29,5 +30,6 @@ clean:
rm -f dist/README.md
rm -f dist/LICENSE
rm -f dist/uws_*.node
rm -f dist/uws.js
rm -rf dist/src
rm -rf targets
......@@ -12,12 +12,11 @@
'src/WebSocket.cpp',
'src/HTTPSocket.cpp',
'src/Socket.cpp',
'src/addon.cpp',
'src/uUV.cpp'
'src/addon.cpp'
],
'conditions': [
['OS=="linux"', {
'cflags_cc': [ '-std=c++11' ],
'cflags_cc': [ '-std=c++11', '-DUSE_LIBUV' ],
'cflags_cc!': [ '-fno-exceptions', '-std=gnu++0x', '-fno-rtti' ],
'cflags!': [ '-fno-omit-frame-pointer' ],
'ldflags!': [ '-rdynamic' ],
......@@ -33,11 +32,12 @@
'GCC_THREADSAFE_STATICS': 'YES',
'GCC_OPTIMIZATION_LEVEL': '3',
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_CFLAGS!': [ '-fno-strict-aliasing' ]
'OTHER_CFLAGS!': [ '-fno-strict-aliasing' ],
'OTHER_CPLUSPLUSFLAGS': [ '-DUSE_LIBUV' ]
}
}],
['OS=="win"', {
'cflags_cc': [],
'cflags_cc': [ '/DUSE_LIBUV' ],
'cflags_cc!': []
}]
]
......
{
"name": "uws",
"version": "0.13.0",
"version": "0.14.0",
"scripts": {
"install": "node-gyp rebuild > build_log.txt 2>&1 || exit 0"
},
"main": "uws.js",
"description": "Highly efficient WebSocket & HTTP library",
"description": "Tiny WebSockets",
"engines": {
"node": ">=4"
},
"keywords": [
"websockets",
"µWS",
"µWebSockets",
"uws",
"microWS",
"lightweight",
"fast",
"http",
"uhttp"
"tiny",
"websockets"
],
"homepage": "https://github.com/uWebSockets/uWebSockets",
"license": "Zlib",
......
......@@ -8,8 +8,8 @@ curl https://nodejs.org/dist/v7.1.0/node-v7.1.0-headers.tar.gz | tar xz -C targe
curl https://nodejs.org/dist/v7.1.0/win-x64/node.lib > targets/node-v7.1.0/node.lib
)
cl /I targets/node-v6.4.0/include/node /EHsc /Ox /LD /Fedist/uws_win32_48.node addon.cpp ../src/*.cpp targets/node-v6.4.0/node.lib
cl /I targets/node-v7.1.0/include/node /EHsc /Ox /LD /Fedist/uws_win32_51.node addon.cpp ../src/*.cpp targets/node-v7.1.0/node.lib
cl /I targets/node-v6.4.0/include/node /EHsc /Ox /LD /Fedist/uws_win32_48.node src/addon.cpp ../src/*.cpp targets/node-v6.4.0/node.lib
cl /I targets/node-v7.1.0/include/node /EHsc /Ox /LD /Fedist/uws_win32_51.node src/addon.cpp ../src/*.cpp targets/node-v7.1.0/node.lib
rm *.obj
rm dist/*.exp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment