Bug 1421501 - build integration for vendored msgpack r=glandium
authorRobert Helmer <rhelmer@mozilla.com>
Mon, 06 Aug 2018 15:10:36 -0700
changeset 488271 1e6b919293b6075e306b013f76230ecef262d59d
parent 488270 6857282a711cf693aed3813cc5dd997868573452
child 488272 9b41ca132dbc6462cc5afbd52b06a9a9b5b00c12
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1421501
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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