Skip to content

Instantly share code, notes, and snippets.

@hhrhhr
Created June 17, 2014 11:24
Show Gist options
  • Save hhrhhr/b6d7181dffa87420dfaa to your computer and use it in GitHub Desktop.
Save hhrhhr/b6d7181dffa87420dfaa to your computer and use it in GitHub Desktop.
FreeGlut qbs project
import qbs
DynamicLibrary {
Depends { name: "cpp" }
name: "freeglut"
cpp.defines: ["FREEGLUT_STATIC"]
cpp.includePaths: ["include"]
cpp.warningLevel: ["all"]
cpp.dynamicLibraries: ["opengl32", "gdi32", "winmm"]
cpp.cFlags: ["-flto", "-O3"]
cpp.linkerName: ["gcc"]
cpp.linkerFlags: ["-flto", "-O3", "-s",
product.sourceDirectory +"/src/freeglutdll.def"
]
files: [ "src/*.c" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment