Bug 1421501 - build integration for vendored msgpack r=glandium

MozReview-Commit-ID: 4AKDbOU4aWx

--HG--
extra : rebase_source : 3c35f85a5cf25ba60e33fd64fbb265b490df4a33
This commit is contained in:
Robert Helmer 2018-08-06 15:10:36 -07:00
Родитель 7dce2bd3b9
Коммит 5e9fa7fdb4
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'