Fix broken version definition in compiled build

This regression was introduced in 6b1ca2d.

Closes #1816

Change-Id: Icdd5e617771799e19a25fa110cf789bfa009b410
This commit is contained in:
Joey Parrish
2019-02-21 09:17:16 -08:00
parent df3926916e
commit d2069dcd76
+5
View File
@@ -50,6 +50,8 @@ import compiler
import shakaBuildHelpers
shaka_version = shakaBuildHelpers.calculate_version()
common_closure_opts = [
'--language_out', 'ECMASCRIPT3',
@@ -74,6 +76,7 @@ common_closure_defines = [
'-D', 'goog.STRICT_MODE_COMPATIBLE=true',
'-D', 'goog.ENABLE_DEBUG_LOADER=false',
]
debug_closure_opts = [
# Don't use a wrapper script in debug mode so all the internals are visible
# on the global object.
@@ -83,6 +86,7 @@ debug_closure_defines = [
'-D', 'goog.DEBUG=true',
'-D', 'goog.asserts.ENABLE_ASSERTS=true',
'-D', 'shaka.log.MAX_LOG_LEVEL=4', # shaka.log.Level.DEBUG
'-D', 'shaka.Player.version="%s-debug"' % shaka_version,
]
release_closure_opts = [
@@ -92,6 +96,7 @@ release_closure_defines = [
'-D', 'goog.DEBUG=false',
'-D', 'goog.asserts.ENABLE_ASSERTS=false',
'-D', 'shaka.log.MAX_LOG_LEVEL=0',
'-D', 'shaka.Player.version="%s"' % shaka_version,
]