mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 14:45:06 +00:00
Refinements for SYSTEM=msys builds (MSYS2)
This commit is contained in:
parent
3f91cd177a
commit
0831041e9f
@ -7,9 +7,9 @@ CFLAGS.EXTRA += -D_WIN32
|
|||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
LDFLAGS.EXTRA =
|
LDFLAGS.EXTRA =
|
||||||
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
#LDFLAGS.EXTRA += -nostdlib
|
|
||||||
LIBDIR = $(GLEW_DEST)/bin
|
LIBDIR = $(GLEW_DEST)/bin
|
||||||
WARN = -Wall -W
|
WARN += -Wall -W
|
||||||
|
WARN += -Wno-cast-function-type
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
LIB.SONAME = lib$(NAME).dll
|
LIB.SONAME = lib$(NAME).dll
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
include config/Makefile.msys
|
include config/Makefile.msys
|
||||||
|
|
||||||
POPT := -mtune=generic -O2
|
POPT := -mtune=generic -O2
|
||||||
CFLAGS.EXTRA += -m64 -Wno-cast-function-type
|
CFLAGS.EXTRA += -m64
|
||||||
LDFLAGS.EXTRA += -m64
|
LDFLAGS.EXTRA += -m64
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
** Copyright (C) Nate Robins, 1997
|
** Copyright (C) Nate Robins, 1997
|
||||||
** Michael Wimmer, 1999
|
** Michael Wimmer, 1999
|
||||||
** Milan Ikits, 2002-2008
|
** Milan Ikits, 2002-2008
|
||||||
** Nigel Stewart, 2008-2013
|
** Nigel Stewart, 2008-2019
|
||||||
**
|
**
|
||||||
** visualinfo is a small utility that displays all available visuals,
|
** visualinfo is a small utility that displays all available visuals,
|
||||||
** aka. pixelformats, in an OpenGL system along with renderer version
|
** aka. pixelformats, in an OpenGL system along with renderer version
|
||||||
@ -592,7 +592,7 @@ VisualInfoGDI (GLContext* ctx)
|
|||||||
|| (drawableonly && !(pfd.dwFlags & PFD_DRAW_TO_WINDOW))) continue;
|
|| (drawableonly && !(pfd.dwFlags & PFD_DRAW_TO_WINDOW))) continue;
|
||||||
fprintf(file, "Visual ID: %2d depth=%d class=%s\n", i, pfd.cDepthBits,
|
fprintf(file, "Visual ID: %2d depth=%d class=%s\n", i, pfd.cDepthBits,
|
||||||
pfd.cColorBits <= 8 ? "PseudoColor" : "TrueColor");
|
pfd.cColorBits <= 8 ? "PseudoColor" : "TrueColor");
|
||||||
fprintf(file, " bufferSize=%d level=%d renderType=%s doubleBuffer=%ld stereo=%ld\n", pfd.cColorBits, pfd.bReserved, pfd.iPixelType == PFD_TYPE_RGBA ? "rgba" : "ci", pfd.dwFlags & PFD_DOUBLEBUFFER, pfd.dwFlags & PFD_STEREO);
|
fprintf(file, " bufferSize=%d level=%d renderType=%s doubleBuffer=%ld stereo=%ld\n", pfd.cColorBits, pfd.bReserved, pfd.iPixelType == PFD_TYPE_RGBA ? "rgba" : "ci", (long) (pfd.dwFlags & PFD_DOUBLEBUFFER), (long) (pfd.dwFlags & PFD_STEREO));
|
||||||
fprintf(file, " generic=%d generic accelerated=%d\n", (pfd.dwFlags & PFD_GENERIC_FORMAT) == PFD_GENERIC_FORMAT, (pfd.dwFlags & PFD_GENERIC_ACCELERATED) == PFD_GENERIC_ACCELERATED);
|
fprintf(file, " generic=%d generic accelerated=%d\n", (pfd.dwFlags & PFD_GENERIC_FORMAT) == PFD_GENERIC_FORMAT, (pfd.dwFlags & PFD_GENERIC_ACCELERATED) == PFD_GENERIC_ACCELERATED);
|
||||||
fprintf(file, " rgba: redSize=%d greenSize=%d blueSize=%d alphaSize=%d\n", pfd.cRedBits, pfd.cGreenBits, pfd.cBlueBits, pfd.cAlphaBits);
|
fprintf(file, " rgba: redSize=%d greenSize=%d blueSize=%d alphaSize=%d\n", pfd.cRedBits, pfd.cGreenBits, pfd.cBlueBits, pfd.cAlphaBits);
|
||||||
fprintf(file, " auxBuffers=%d depthSize=%d stencilSize=%d\n", pfd.cAuxBuffers, pfd.cDepthBits, pfd.cStencilBits);
|
fprintf(file, " auxBuffers=%d depthSize=%d stencilSize=%d\n", pfd.cAuxBuffers, pfd.cDepthBits, pfd.cStencilBits);
|
||||||
|
Loading…
Reference in New Issue
Block a user