[aom] Only build stats code if examples are enabled

This commit is contained in:
trav90 2018-10-19 23:01:02 -05:00 committed by Roy Tam
commit 656835e767
2 changed files with 3 additions and 8 deletions

View file

@ -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',
],
}

View file

@ -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)