summaryrefslogtreecommitdiff
path: root/framework/delibs/cmake/Defs.cmake
diff options
context:
space:
mode:
authorAlexander Galazin <alexander.galazin@arm.com>2021-05-06 18:51:24 +0300
committerGitHub <noreply@github.com>2021-05-06 18:51:24 +0300
commitdab93ea8f88c3661c166ff0771310f36d0a7d790 (patch)
tree0add63544ddec5be66705bf0ed6b2961575d42d1 /framework/delibs/cmake/Defs.cmake
parent9698f0db4cd5a4684fad7da3c125624d9cf17a57 (diff)
parent46eef4a54367678304f0d24b04f1d0f0621abfb4 (diff)
downloadVK-GL-CTS-dab93ea8f88c3661c166ff0771310f36d0a7d790.tar.gz
VK-GL-CTS-dab93ea8f88c3661c166ff0771310f36d0a7d790.tar.bz2
VK-GL-CTS-dab93ea8f88c3661c166ff0771310f36d0a7d790.zip
Merge pull request #261 from Joshua-Ashton/mingw-support
Implement MinGW build support
Diffstat (limited to 'framework/delibs/cmake/Defs.cmake')
-rw-r--r--framework/delibs/cmake/Defs.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/delibs/cmake/Defs.cmake b/framework/delibs/cmake/Defs.cmake
index e710856e0..c1da84b46 100644
--- a/framework/delibs/cmake/Defs.cmake
+++ b/framework/delibs/cmake/Defs.cmake
@@ -149,6 +149,14 @@ if (DE_OS_IS_ANDROID AND NOT DEFINED DE_ANDROID_API)
set(DE_ANDROID_API 5)
endif ()
+# MinGW
+if (CMAKE_CXX_COMPILER MATCHES ".*-mingw32-.*")
+ set(DE_MINGW 1)
+ set(BUILD_SHARED_LIBS OFF)
+else()
+ set(DE_MINGW 0)
+endif()
+
message(STATUS "DE_OS = ${DE_OS}")
message(STATUS "DE_COMPILER = ${DE_COMPILER}")
message(STATUS "DE_CPU = ${DE_CPU}")
@@ -157,6 +165,7 @@ message(STATUS "DE_DEBUG = ${DE_DEBUG}")
if (DE_OS_IS_ANDROID)
message(STATUS "DE_ANDROID_API = ${DE_ANDROID_API}")
endif ()
+message(STATUS "DE_MINGW = ${DE_MINGW}")
# Expose definitions
if (DE_DEBUG)
@@ -167,6 +176,7 @@ add_definitions("-DDE_OS=${DE_OS}")
add_definitions("-DDE_COMPILER=${DE_COMPILER}")
add_definitions("-DDE_CPU=${DE_CPU}")
add_definitions("-DDE_PTR_SIZE=${DE_PTR_SIZE}")
+add_definitions("-DDE_MINGW=${DE_MINGW}")
if (DE_OS_IS_ANDROID)
add_definitions("-DDE_ANDROID_API=${DE_ANDROID_API}")