1## Copyright (c) 2017 The WebM project authors. All Rights Reserved. 2## 3## Use of this source code is governed by a BSD-style license 4## that can be found in the LICENSE file in the root of the source 5## tree. An additional intellectual property rights grant can be found 6## in the file PATENTS. All contributing project authors may 7## be found in the AUTHORS file in the root of the source tree. 8if (NOT LIBWEBM_BUILD_X86_MINGW_GCC_CMAKE_) 9set(LIBWEBM_BUILD_X86_MINGW_GCC_CMAKE_ 1) 10 11set(CMAKE_SYSTEM_PROCESSOR "x86") 12set(CMAKE_SYSTEM_NAME "Windows") 13set(CMAKE_C_COMPILER_ARG1 "-m32") 14set(CMAKE_CXX_COMPILER_ARG1 "-m32") 15 16if ("${CROSS}" STREQUAL "") 17 set(CROSS i686-w64-mingw32-) 18endif () 19 20set(CMAKE_C_COMPILER ${CROSS}gcc) 21set(CMAKE_CXX_COMPILER ${CROSS}g++) 22 23# Disable googletest CMake usage for mingw cross compiles. 24set(LIBWEBM_DISABLE_GTEST_CMAKE 1) 25 26endif () # LIBWEBM_BUILD_X86_MINGW_GCC_CMAKE_ 27