Bug 1421501 - build integration for vendored msgpack r=glandium
authorRobert Helmer <rhelmer@mozilla.com>
Mon, 06 Aug 2018 15:10:36 -0700
changeset 481558 1e6b919293b6075e306b013f76230ecef262d59d
parent 481557 6857282a711cf693aed3813cc5dd997868573452
child 481559 9b41ca132dbc6462cc5afbd52b06a9a9b5b00c12
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersglandium
bugs1421501
milestone63.0a1
Bug 1421501 - build integration for vendored msgpack r=glandium MozReview-Commit-ID: 4AKDbOU4aWx
config/external/msgpack/moz.build
third_party/moz.build
third_party/msgpack/moz.build
new file mode 100644
--- /dev/null
+++ b/config/external/msgpack/moz.build
@@ -0,0 +1,8 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DIRS += ['/third_party/msgpack']
+
--- a/third_party/moz.build
+++ b/third_party/moz.build
@@ -7,8 +7,11 @@ with Files('aom/**'):
 with Files('rust/**'):
     BUG_COMPONENT = ('Firefox Build System', 'General')
 
 with Files('webkit/**'):
     BUG_COMPONENT = ('Firefox Build System', 'General')
 
 with Files('prio/**'):
     BUG_COMPONENT = ('Firefox Build System', 'General')
+
+with Files('msgpack/**'):
+    BUG_COMPONENT = ('Firefox Build System', 'General')
new file mode 100644
--- /dev/null
+++ b/third_party/msgpack/moz.build
@@ -0,0 +1,28 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DEFINES['MSGPACK_BUILD_LIBRARY'] = True
+
+LOCAL_INCLUDES += [
+    'include',
+]
+
+EXPORTS += [
+    'include/msgpack.h',
+]
+
+# We allow warnings for third-party code that can be updated from upstream.
+AllowCompilerWarnings()
+
+SOURCES += [
+    'objectc.c',
+    'unpack.c',
+    'version.c',
+    'vrefbuffer.c',
+    'zone.c',
+]
+
+FINAL_LIBRARY = 'xul'
\ No newline at end of file