Bug 1421501 - build integration for vendored msgpack r=glandium

MozReview-Commit-ID: 4AKDbOU4aWx

--HG--
extra : rebase_source : f3aabdd38d6051bfef924ff34585940fff155157
This commit is contained in:
Robert Helmer 2018-08-06 15:10:36 -07:00
Родитель 51ac1fcfc7
Коммит d0af2bd6c6
3 изменённых файлов: 39 добавлений и 0 удалений

8
config/external/msgpack/moz.build поставляемый Normal file
Просмотреть файл

@ -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
third_party/moz.build поставляемый
Просмотреть файл

@ -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
third_party/msgpack/moz.build поставляемый Normal file
Просмотреть файл

@ -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'