Files
filament/third_party/civetweb/resources/mingw.bat
Philip Rideout 6d74d31ecd Add civetweb to third_party (MIT).
This is a dependency of our upcoming web-based material debugger. This
CL also includes `tnt/CMakeLists.txt`, which builds a static lib in a
minimal configuration that enables WebSocket support. The entire library
is built from only 4 files:

    ${PUBLIC_HDR_DIR}/CivetServer.h
    ${PUBLIC_HDR_DIR}/civetweb.h
    ${SRC_DIR}/civetweb.c
    ${SRC_DIR}/CivetServer.cpp
2019-08-21 17:45:37 -07:00

16 lines
574 B
Batchfile

@rem MinGW build test - used to test MinGW builds locally
@rem Adapt path/versions before use
@rem This batch file must be used from the repository root
@if exist mingw.bat cd ..
@set PATH=%ProgramFiles%\mingw-w64\i686-4.9.2-win32-dwarf-rt_v3-rev1\mingw32\bin;%PATH%
@set PATH=%ProgramFiles%\GnuWin32\bin;%PATH%
@rem Alternative ways to use mingw
@rem make CC=gcc CFLAGS=-w CFLAGS+=-Iinclude/ CFLAGS+=-lws2_32 CFLAGS+=-liphlpapi
@rem gcc src\civetweb.c src\main.c -Iinclude\ -lws2_32 -lpthread -lcomdlg32 -w
make build CC=gcc WITH_LUA=1 WITH_WEBSOCKET=1