Skip to content

Commit

Permalink
Bug 1421501 - build integration for vendored msgpack r=glandium
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 4AKDbOU4aWx

--HG--
extra : rebase_source : 3c35f85a5cf25ba60e33fd64fbb265b490df4a33
  • Loading branch information
rhelmer committed Aug 6, 2018
1 parent 7dce2bd commit 5e9fa7f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/external/msgpack/moz.build
Original file line number Diff line number Diff line change
@@ -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']

3 changes: 3 additions & 0 deletions third_party/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ with Files('webkit/**'):

with Files('prio/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')

with Files('msgpack/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')
28 changes: 28 additions & 0 deletions third_party/msgpack/moz.build
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 5e9fa7f

Please sign in to comment.