Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added auto installer script for uWebSockets on mac
- Loading branch information
1 parent
3e60678
commit a0f467e
Showing
5 changed files
with
61 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- CMakeLists.txt 2017-03-23 20:58:47.000000000 +0900 | ||
+++ CMakeListsnew.txt 2017-03-23 20:57:33.000000000 +0900 | ||
@@ -32,10 +32,16 @@ | ||
target_link_libraries (uWS LINK_PUBLIC ${OPENSSL_CRYPTO_LIBRARY}) | ||
target_link_libraries (uWS LINK_PUBLIC ${ZLIB_LIBRARY}) | ||
|
||
-if (UNIX) | ||
+if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
target_link_libraries (uWS LINK_PUBLIC pthread) | ||
install (TARGETS uWS DESTINATION /usr/lib64) | ||
install (FILES src/Extensions.h src/WebSocketProtocol.h src/Networking.h src/WebSocket.h src/Hub.h src/Group.h src/Node.h src/Socket.h src/HTTPSocket.h src/uWS.h src/uUV.h DESTINATION /usr/include/uWS) | ||
-endif (UNIX) | ||
+endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
+ | ||
+if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||
+target_link_libraries (uWS LINK_PUBLIC pthread) | ||
+install (TARGETS uWS DESTINATION /usr/local/lib) | ||
+install (FILES src/Extensions.h src/WebSocketProtocol.h src/Networking.h src/WebSocket.h src/Hub.h src/Group.h src/Node.h src/Socket.h src/HTTPSocket.h src/uWS.h src/uUV.h DESTINATION /usr/local/include/uWS) | ||
+endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||
|
||
add_subdirectory(examples) |
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,14 @@ | ||
brew install openssh libuv cmake | ||
git clone https://github.com/uWebSockets/uWebSockets | ||
cd uWebSockets | ||
git checkout e94b6e1 | ||
patch CMakeLists.txt < ../cmakepatch.txt | ||
mkdir build | ||
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig | ||
cd build | ||
cmake .. | ||
make | ||
sudo make install | ||
cd .. | ||
cd .. | ||
sudo rm -r uWebSockets |
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,13 @@ | ||
sudo apt-get install libuv1-dev | ||
git clone https://github.com/uWebSockets/uWebSockets | ||
cd uWebSockets | ||
git checkout e94b6e1 | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make | ||
sudo make install | ||
cd .. | ||
cd .. | ||
sudo ln -s /usr/lib64/libuWS.so /usr/lib/libuWS.so | ||
sudo rm -r uWebSockets |