blob: 1c0efa2d4868bfda9e897991633e0ef0d6d05a37 [file] [log] [blame]
Johann589bae82018-04-27 10:57:44 -07001#
Lester Lu6bc30d62021-12-16 19:13:21 +00002# Copyright (c) 2021, Alliance for Open Media. All rights reserved
Johann589bae82018-04-27 10:57:44 -07003#
Lester Lu6bc30d62021-12-16 19:13:21 +00004# This source code is subject to the terms of the BSD 3-Clause Clear License and
5# the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
6# License was not distributed with this source code in the LICENSE file, you can
7# obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the Alliance
8# for Open Media Patent License 1.0 was not distributed with this source code in
9# the PATENTS file, you can obtain it at aomedia.org/license/patent-license/.
Johann589bae82018-04-27 10:57:44 -070010#
11if(AOM_BUILD_CMAKE_TOOLCHAINS_IOS_SIMULATOR_COMMON_CMAKE_)
Johann29a59732018-04-27 10:51:00 -070012 return()
Johann589bae82018-04-27 10:57:44 -070013endif() # AOM_BUILD_CMAKE_TOOLCHAINS_IOS_SIMULATOR_COMMON_CMAKE_
Tom Finegan0c0ab992017-03-22 12:12:01 -070014set(AOM_BUILD_CMAKE_IOS_SIMULATOR_COMMON_CMAKE_ 1)
15
16set(CMAKE_SYSTEM_NAME "Darwin")
17set(CMAKE_OSX_SYSROOT iphonesimulator)
18set(CMAKE_C_COMPILER clang)
19set(CMAKE_C_COMPILER_ARG1 "-arch ${CMAKE_SYSTEM_PROCESSOR}")
20set(CMAKE_CXX_COMPILER clang++)
21set(CMAKE_CXX_COMPILER_ARG1 "-arch ${CMAKE_SYSTEM_PROCESSOR}")
22
23# TODO(tomfinegan): Handle bit code embedding.