Tom Finegan | dd6d057 | 2017-03-01 19:01:23 -0800 | [diff] [blame] | 1 | ## |
| 2 | ## Copyright (c) 2017, Alliance for Open Media. All rights reserved |
| 3 | ## |
| 4 | ## This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | ## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | ## was not distributed with this source code in the LICENSE file, you can |
| 7 | ## obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | ## Media Patent License 1.0 was not distributed with this source code in the |
| 9 | ## PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
| 10 | ## |
Tom Finegan | 17ccaec | 2017-05-25 17:47:42 -0700 | [diff] [blame] | 11 | if (NOT AOM_AOM_MEM_AOM_MEM_CMAKE_) |
| 12 | set(AOM_AOM_MEM_AOM_MEM_CMAKE_ 1) |
| 13 | |
Tom Finegan | dd6d057 | 2017-03-01 19:01:23 -0800 | [diff] [blame] | 14 | set(AOM_MEM_SOURCES |
| 15 | "${AOM_ROOT}/aom_mem/aom_mem.c" |
| 16 | "${AOM_ROOT}/aom_mem/aom_mem.h" |
| 17 | "${AOM_ROOT}/aom_mem/include/aom_mem_intrnl.h") |
| 18 | |
| 19 | # Creates the aom_mem build target and makes libaom depend on it. The libaom |
| 20 | # target must exist before this function is called. |
| 21 | function (setup_aom_mem_targets) |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 22 | add_library(aom_mem OBJECT ${AOM_MEM_SOURCES}) |
Tom Finegan | dd6d057 | 2017-03-01 19:01:23 -0800 | [diff] [blame] | 23 | set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_mem PARENT_SCOPE) |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 24 | target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_mem>) |
Tom Finegan | dd6d057 | 2017-03-01 19:01:23 -0800 | [diff] [blame] | 25 | endfunction () |
Tom Finegan | 17ccaec | 2017-05-25 17:47:42 -0700 | [diff] [blame] | 26 | |
| 27 | endif () # AOM_AOM_MEM_AOM_MEM_CMAKE_ |