Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 1 | # |
Lester Lu | 6bc30d6 | 2021-12-16 19:13:21 +0000 | [diff] [blame^] | 2 | # Copyright (c) 2021, Alliance for Open Media. All rights reserved |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 3 | # |
Lester Lu | 6bc30d6 | 2021-12-16 19:13:21 +0000 | [diff] [blame^] | 4 | # 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/. |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 10 | # |
| 11 | if(AOM_BUILD_CMAKE_TOOLCHAINS_IOS_SIMULATOR_COMMON_CMAKE_) |
Johann | 29a5973 | 2018-04-27 10:51:00 -0700 | [diff] [blame] | 12 | return() |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 13 | endif() # AOM_BUILD_CMAKE_TOOLCHAINS_IOS_SIMULATOR_COMMON_CMAKE_ |
Tom Finegan | 0c0ab99 | 2017-03-22 12:12:01 -0700 | [diff] [blame] | 14 | set(AOM_BUILD_CMAKE_IOS_SIMULATOR_COMMON_CMAKE_ 1) |
| 15 | |
| 16 | set(CMAKE_SYSTEM_NAME "Darwin") |
| 17 | set(CMAKE_OSX_SYSROOT iphonesimulator) |
| 18 | set(CMAKE_C_COMPILER clang) |
| 19 | set(CMAKE_C_COMPILER_ARG1 "-arch ${CMAKE_SYSTEM_PROCESSOR}") |
| 20 | set(CMAKE_CXX_COMPILER clang++) |
| 21 | set(CMAKE_CXX_COMPILER_ARG1 "-arch ${CMAKE_SYSTEM_PROCESSOR}") |
| 22 | |
| 23 | # TODO(tomfinegan): Handle bit code embedding. |