Hi,
I am trying to generate POSIX sockets proxying in "js" , use it in Browser and make it act as a server.
The program under "tools/websocket_to_posix_proxy/" use CMake which works perfect when build with "cmake && make" but when I used "emcamke cmake" , it generate Makefile using "node" as the cross_compiler which is fine but when I use "emmake make" it wont build because "node" dont support posix socket.
So is there any other way things could work?
----------CMAKELIST.TXT------------------
cmake_minimum_required(VERSION 2.8)
project(websocket_to_posix_proxy)
file(GLOB sourceFiles src/*.cpp src/*.h)
add_executable(websocket_to_posix_proxy ${sourceFiles})
find_package(Threads)
target_link_libraries(websocket_to_posix_proxy ${CMAKE_THREAD_LIBS_INIT})
if (WIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(/wd4200) # "nonstandard extension used: zero-sized array in struct/union"
target_link_libraries(websocket_to_posix_proxy Ws2_32.lib)
endif()