Bug 1355671 - Build the brotli command line tool as a host program. r?gps draft
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 07 Apr 2017 17:02:54 +0900
changeset 560868 39e84b311bd56af297b5510dbc9e7dc6090c4357
parent 560867 8a29f044fe91dfe36728883a4680fb13a65a01a9
child 560869 c675cc6ba733b69ddca2b424599d20d39b770ff6
push id53566
push userbmo:mh+mozilla@glandium.org
push dateWed, 12 Apr 2017 01:41:16 +0000
reviewersgps
bugs1355671
milestone55.0a1
Bug 1355671 - Build the brotli command line tool as a host program. r?gps
modules/brotli/moz.build
--- a/modules/brotli/moz.build
+++ b/modules/brotli/moz.build
@@ -16,8 +16,29 @@ UNIFIED_SOURCES += [
 ]
 
 # We allow warnings for third-party code that can be updated from upstream.
 ALLOW_COMPILER_WARNINGS = True
 
 CFLAGS += ['-DBROTLI_BUILD_PORTABLE']
 
 Library('brotli')
+
+HostProgram('bro')
+
+HOST_SOURCES += UNIFIED_SOURCES
+
+HOST_SOURCES += [
+    'enc/backward_references.cc',
+    'enc/block_splitter.cc',
+    'enc/brotli_bit_stream.cc',
+    'enc/compress_fragment.cc',
+    'enc/compress_fragment_two_pass.cc',
+    'enc/encode.cc',
+    'enc/entropy_encode.cc',
+    'enc/histogram.cc',
+    'enc/literal_cost.cc',
+    'enc/metablock.cc',
+    'enc/static_dict.cc',
+    'enc/streams.cc',
+    'enc/utf8_util.cc',
+    'tools/bro.cc',
+]