summaryrefslogtreecommitdiffstats
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
commitba5a1ea60f21da69eb50c28e9fb4e034765e0c62 (patch)
tree294a3d0d8a555cb3e82307459220946230ec23c7
parentb8df135c97a854c2ff9b4394b016649c601177fa (diff)
downloadUXP-ba5a1ea60f21da69eb50c28e9fb4e034765e0c62.tar
UXP-ba5a1ea60f21da69eb50c28e9fb4e034765e0c62.tar.gz
UXP-ba5a1ea60f21da69eb50c28e9fb4e034765e0c62.tar.lz
UXP-ba5a1ea60f21da69eb50c28e9fb4e034765e0c62.tar.xz
UXP-ba5a1ea60f21da69eb50c28e9fb4e034765e0c62.zip
[aom] Only build stats code if examples are enabled
-rw-r--r--media/libaom/sources.mozbuild8
-rw-r--r--third_party/aom/CMakeLists.txt3
2 files changed, 3 insertions, 8 deletions
diff --git a/media/libaom/sources.mozbuild b/media/libaom/sources.mozbuild
index 3531d065a..078b30dca 100644
--- a/media/libaom/sources.mozbuild
+++ b/media/libaom/sources.mozbuild
@@ -109,8 +109,6 @@ files = {
'../../third_party/aom/av1/decoder/dthread.c',
'../../third_party/aom/av1/decoder/obu.c',
'../../third_party/aom/av1/encoder/arm/neon/quantize_neon.c',
- '../../third_party/aom/stats/aomstats.c',
- '../../third_party/aom/stats/rate_hist.c',
],
'GENERIC_EXPORTS': [
'../../third_party/aom/aom/aom.h',
@@ -201,8 +199,6 @@ files = {
'../../third_party/aom/av1/decoder/detokenize.c',
'../../third_party/aom/av1/decoder/dthread.c',
'../../third_party/aom/av1/decoder/obu.c',
- '../../third_party/aom/stats/aomstats.c',
- '../../third_party/aom/stats/rate_hist.c',
],
'IA32_EXPORTS': [
'../../third_party/aom/aom/aom.h',
@@ -363,8 +359,6 @@ files = {
'../../third_party/aom/av1/decoder/detokenize.c',
'../../third_party/aom/av1/decoder/dthread.c',
'../../third_party/aom/av1/decoder/obu.c',
- '../../third_party/aom/stats/aomstats.c',
- '../../third_party/aom/stats/rate_hist.c',
],
'X64_EXPORTS': [
'../../third_party/aom/aom/aom.h',
@@ -524,7 +518,5 @@ files = {
'../../third_party/aom/av1/decoder/detokenize.c',
'../../third_party/aom/av1/decoder/dthread.c',
'../../third_party/aom/av1/decoder/obu.c',
- '../../third_party/aom/stats/aomstats.c',
- '../../third_party/aom/stats/rate_hist.c',
],
}
diff --git a/third_party/aom/CMakeLists.txt b/third_party/aom/CMakeLists.txt
index 0b445722d..a1e810d49 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)