summaryrefslogtreecommitdiff
path: root/third_party/aom/CMakeLists.txt
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-10-19 23:01:02 -0500
committertrav90 <travawine@palemoon.org>2018-10-19 23:01:02 -0500
commitaf073e6d8721ca0c8030d0dfb343095204568aad (patch)
tree294a3d0d8a555cb3e82307459220946230ec23c7 /third_party/aom/CMakeLists.txt
parent976f46a7d6d1954bdd5edbf1187c3da33ede57e2 (diff)
downloaduxp-af073e6d8721ca0c8030d0dfb343095204568aad.tar.gz
[aom] Only build stats code if examples are enabled
Diffstat (limited to 'third_party/aom/CMakeLists.txt')
-rw-r--r--third_party/aom/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/aom/CMakeLists.txt b/third_party/aom/CMakeLists.txt
index 0b445722d1..a1e810d491 100644
--- a/third_party/aom/CMakeLists.txt
+++ b/third_party/aom/CMakeLists.txt
@@ -255,7 +255,10 @@ add_rtcd_build_step("${AOM_ROOT}/av1/common/av1_rtcd_defs.pl"
add_library(aom_rtcd OBJECT ${AOM_RTCD_SOURCES})
add_dependencies(aom_rtcd aom_version)
+if (ENABLE_EXAMPLES)
add_library(aom_encoder_stats OBJECT ${AOM_ENCODER_STATS_SOURCES})
+endif ()
+
add_library(aom ${AOM_SOURCES} $<TARGET_OBJECTS:aom_rtcd>)
if(NOT MSVC AND NOT APPLE)