Created
June 15, 2014 08:41
-
-
Save hhrhhr/810d42ddf5cce48f0449 to your computer and use it in GitHub Desktop.
FreeGLUT project for Qt qmake (shared library)
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
TEMPLATE = lib | |
TARGET = freeglut | |
CONFIG -= app_bundle qt | |
CONFIG += rtti_off exceptions_off | |
DEFINES = FREEGLUT_STATIC | |
INCLUDEPATH += include | |
# disable "-pipe -fno-keep-inline-dllexport" | |
QMAKE_CFLAGS = | |
QMAKE_CFLAGS_RELEASE = -flto -O3 | |
# disable "-Wextra" | |
QMAKE_CFLAGS_WARN_ON = -Wall | |
DEF_FILE = src/freeglutdll.def | |
LIBS += -lopengl32 -lgdi32 -lwinmm | |
#hack linker | |
QMAKE_LFLAGS = -flto -O3 | |
SOURCES += \ | |
src/freeglut_callbacks.c \ | |
src/freeglut_cursor.c \ | |
src/freeglut_display.c \ | |
src/freeglut_ext.c \ | |
src/freeglut_font.c \ | |
src/freeglut_font_data.c \ | |
src/freeglut_gamemode.c \ | |
src/freeglut_geometry.c \ | |
src/freeglut_glutfont_definitions.c \ | |
src/freeglut_init.c \ | |
src/freeglut_input_devices.c \ | |
src/freeglut_joystick.c \ | |
src/freeglut_main.c \ | |
src/freeglut_menu.c \ | |
src/freeglut_misc.c \ | |
src/freeglut_overlay.c \ | |
src/freeglut_spaceball.c \ | |
src/freeglut_state.c \ | |
src/freeglut_stroke_mono_roman.c \ | |
src/freeglut_stroke_roman.c \ | |
src/freeglut_structure.c \ | |
src/freeglut_teapot.c \ | |
src/freeglut_videoresize.c \ | |
src/freeglut_window.c \ | |
src/freeglut_xinput.c | |
HEADERS += \ | |
include/GL/freeglut.h \ | |
include/GL/freeglut_ext.h \ | |
include/GL/freeglut_std.h \ | |
include/GL/glut.h \ | |
src/freeglut_internal.h | |
src/freeglut_teapot_data.h | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment