mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Summary: Configuration tests check whether all mandatory dependencies to build swift are met. They can also be used to check optional dependencies, which results in certain features to be enabled or disabled. This first batch tests for mandatory libraries libpng, zlib and OpenGL. If this is not tested and some libraries are missing, the developer will be notified very late in the build. Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Subscribers: msutcliffe, jenkins Differential Revision: https://dev.swift-project.org/D34
15 lines
228 B
C++
15 lines
228 B
C++
#if defined(Q_OS_WIN)
|
|
#include <windows.h>
|
|
#include <GL/gl.h>
|
|
#elif defined(Q_OS_MAC)
|
|
#include <OpenGL/gl.h>
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
|
|
int main(int, char **)
|
|
{
|
|
glGetString(GL_VERSION);
|
|
return 0;
|
|
}
|