• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_)
9  set(LIBWEBM_BUILD_X86_MINGW_GCC_CMAKE_ 1)
10
11  set(CMAKE_SYSTEM_PROCESSOR "x86")
12  set(CMAKE_SYSTEM_NAME "Windows")
13  set(CMAKE_C_COMPILER_ARG1 "-m32")
14  set(CMAKE_CXX_COMPILER_ARG1 "-m32")
15
16  if("${CROSS}" STREQUAL "")
17    set(CROSS i686-w64-mingw32-)
18  endif()
19
20  set(CMAKE_C_COMPILER ${CROSS}gcc)
21  set(CMAKE_CXX_COMPILER ${CROSS}g++)
22
23  # Disable googletest CMake usage for mingw cross compiles.
24  set(LIBWEBM_DISABLE_GTEST_CMAKE 1)
25
26endif() # LIBWEBM_BUILD_X86_MINGW_GCC_CMAKE_
27