From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- cmake/platform/android/android.cmake | 1 + cmake/platform/android/defines.txt | 1 + cmake/platform/freebsd/defines.txt | 1 + cmake/platform/ios/defines.txt | 1 + cmake/platform/ios/ios.cmake | 1 + cmake/platform/linux/aml.cmake | 1 + cmake/platform/linux/defines.txt | 1 + cmake/platform/linux/imx.cmake | 1 + cmake/platform/linux/mir.cmake | 2 ++ cmake/platform/linux/x11.cmake | 2 ++ cmake/platform/osx/defines.txt | 1 + cmake/platform/osx/osx.cmake | 1 + cmake/platform/rbpi/defines.txt | 1 + cmake/platform/rbpi/rbpi.cmake | 1 + cmake/platform/windows/defines.txt | 1 + cmake/platform/windows/windows.cmake | 1 + 16 files changed, 18 insertions(+) create mode 100644 cmake/platform/android/android.cmake create mode 100644 cmake/platform/android/defines.txt create mode 100644 cmake/platform/freebsd/defines.txt create mode 100644 cmake/platform/ios/defines.txt create mode 100644 cmake/platform/ios/ios.cmake create mode 100644 cmake/platform/linux/aml.cmake create mode 100644 cmake/platform/linux/defines.txt create mode 100644 cmake/platform/linux/imx.cmake create mode 100644 cmake/platform/linux/mir.cmake create mode 100644 cmake/platform/linux/x11.cmake create mode 100644 cmake/platform/osx/defines.txt create mode 100644 cmake/platform/osx/osx.cmake create mode 100644 cmake/platform/rbpi/defines.txt create mode 100644 cmake/platform/rbpi/rbpi.cmake create mode 100644 cmake/platform/windows/defines.txt create mode 100644 cmake/platform/windows/windows.cmake (limited to 'cmake/platform') diff --git a/cmake/platform/android/android.cmake b/cmake/platform/android/android.cmake new file mode 100644 index 0000000..ab0f361 --- /dev/null +++ b/cmake/platform/android/android.cmake @@ -0,0 +1 @@ +set(PLATFORM_REQUIRED_DEPS OpenGLES) diff --git a/cmake/platform/android/defines.txt b/cmake/platform/android/defines.txt new file mode 100644 index 0000000..fa103d0 --- /dev/null +++ b/cmake/platform/android/defines.txt @@ -0,0 +1 @@ +-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -DTARGET_ANDROID diff --git a/cmake/platform/freebsd/defines.txt b/cmake/platform/freebsd/defines.txt new file mode 100644 index 0000000..9483597 --- /dev/null +++ b/cmake/platform/freebsd/defines.txt @@ -0,0 +1 @@ +-DTARGET_POSIX -DTARGET_FREEBSD -D_LINUX diff --git a/cmake/platform/ios/defines.txt b/cmake/platform/ios/defines.txt new file mode 100644 index 0000000..d0989ea --- /dev/null +++ b/cmake/platform/ios/defines.txt @@ -0,0 +1 @@ +-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_IOS -D_LINUX diff --git a/cmake/platform/ios/ios.cmake b/cmake/platform/ios/ios.cmake new file mode 100644 index 0000000..ab0f361 --- /dev/null +++ b/cmake/platform/ios/ios.cmake @@ -0,0 +1 @@ +set(PLATFORM_REQUIRED_DEPS OpenGLES) diff --git a/cmake/platform/linux/aml.cmake b/cmake/platform/linux/aml.cmake new file mode 100644 index 0000000..c1d464d --- /dev/null +++ b/cmake/platform/linux/aml.cmake @@ -0,0 +1 @@ +set(PLATFORM_REQUIRED_DEPS OpenGLES AML EGL) diff --git a/cmake/platform/linux/defines.txt b/cmake/platform/linux/defines.txt new file mode 100644 index 0000000..3fe9c5c --- /dev/null +++ b/cmake/platform/linux/defines.txt @@ -0,0 +1 @@ +-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -fPIC diff --git a/cmake/platform/linux/imx.cmake b/cmake/platform/linux/imx.cmake new file mode 100644 index 0000000..c0c7196 --- /dev/null +++ b/cmake/platform/linux/imx.cmake @@ -0,0 +1 @@ +set(PLATFORM_REQUIRED_DEPS OpenGLES EGL IMX) diff --git a/cmake/platform/linux/mir.cmake b/cmake/platform/linux/mir.cmake new file mode 100644 index 0000000..7f20da8 --- /dev/null +++ b/cmake/platform/linux/mir.cmake @@ -0,0 +1,2 @@ +set(PLATFORM_REQUIRED_DEPS OpenGl EGL Mir LibDRM) +set(PLATFORM_OPTIONAL_DEPS VAAPI OpenGLES) diff --git a/cmake/platform/linux/x11.cmake b/cmake/platform/linux/x11.cmake new file mode 100644 index 0000000..edea24d --- /dev/null +++ b/cmake/platform/linux/x11.cmake @@ -0,0 +1,2 @@ +set(PLATFORM_REQUIRED_DEPS OpenGl EGL X XRandR LibDRM GLX) +set(PLATFORM_OPTIONAL_DEPS VAAPI VDPAU) diff --git a/cmake/platform/osx/defines.txt b/cmake/platform/osx/defines.txt new file mode 100644 index 0000000..33b009e --- /dev/null +++ b/cmake/platform/osx/defines.txt @@ -0,0 +1 @@ +-DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX -D_LINUX diff --git a/cmake/platform/osx/osx.cmake b/cmake/platform/osx/osx.cmake new file mode 100644 index 0000000..e81703c --- /dev/null +++ b/cmake/platform/osx/osx.cmake @@ -0,0 +1 @@ +set(PLATFORM_REQUIRED_DEPS OpenGl Sdl) diff --git a/cmake/platform/rbpi/defines.txt b/cmake/platform/rbpi/defines.txt new file mode 100644 index 0000000..08fe4cb --- /dev/null +++ b/cmake/platform/rbpi/defines.txt @@ -0,0 +1 @@ +-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_ARMEL -DTARGET_RASPBERRY_PI diff --git a/cmake/platform/rbpi/rbpi.cmake b/cmake/platform/rbpi/rbpi.cmake new file mode 100644 index 0000000..4899857 --- /dev/null +++ b/cmake/platform/rbpi/rbpi.cmake @@ -0,0 +1 @@ +set(PLATFORM_REQUIRED_DEPS OpenGLES EGL MMAL) diff --git a/cmake/platform/windows/defines.txt b/cmake/platform/windows/defines.txt new file mode 100644 index 0000000..2482237 --- /dev/null +++ b/cmake/platform/windows/defines.txt @@ -0,0 +1 @@ +-DTARGET_WINDOWS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_WINSOCKAPI_ \ No newline at end of file diff --git a/cmake/platform/windows/windows.cmake b/cmake/platform/windows/windows.cmake new file mode 100644 index 0000000..dbe9417 --- /dev/null +++ b/cmake/platform/windows/windows.cmake @@ -0,0 +1 @@ +# File intentionally left empty -- cgit v1.2.3