mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 790517: mtransport import/build for nrappkit/nICEr r=ted
This commit is contained in:
parent
c95f0a93cc
commit
1b0e6c406c
18
configure.in
18
configure.in
@ -8894,6 +8894,24 @@ if test -n "$MOZ_WEBRTC"; then
|
||||
if test "$?" != 0; then
|
||||
AC_MSG_ERROR([failed to generate gtest Makefiles])
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT("generating nrappkit Makefiles...")
|
||||
$PYTHON ${srcdir}/media/webrtc/trunk/build/gyp_chromium --format=mozmake \
|
||||
$GYP_WEBRTC_OPTIONS \
|
||||
--generator-output=${_objdir}/media/mtransport/third_party/nrappkit \
|
||||
${srcdir}/media/mtransport/third_party/nrappkit/nrappkit.gyp
|
||||
if test "$?" != 0; then
|
||||
AC_MSG_ERROR([failed to generate nrappkit Makefiles])
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT("generating nICEr Makefiles...")
|
||||
$PYTHON ${srcdir}/media/webrtc/trunk/build/gyp_chromium --format=mozmake \
|
||||
$GYP_WEBRTC_OPTIONS \
|
||||
--generator-output=${_objdir}/media/mtransport/third_party/nICEr \
|
||||
${srcdir}/media/mtransport/third_party/nICEr/nicer.gyp
|
||||
if test "$?" != 0; then
|
||||
AC_MSG_ERROR([failed to generate nICEr Makefiles])
|
||||
fi
|
||||
fi
|
||||
|
||||
# Generate a JSON config file for unittest harnesses etc to read
|
||||
|
53
media/mtransport/third_party/Makefile.in
vendored
Normal file
53
media/mtransport/third_party/Makefile.in
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is the Mozilla Foundation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2010
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Chris Pearce <chris@pearce.org.nz>
|
||||
# Eric Rescorla <ekr@rtfm.com>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
|
||||
DEPTH = @DEPTH@
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PARALLEL_DIRS = \
|
||||
nrappkit \
|
||||
nICEr \
|
||||
$(NULL)
|
||||
|
||||
NO_SUBMAKEFILES_RULE = 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
40
media/mtransport/third_party/import.py
vendored
Normal file
40
media/mtransport/third_party/import.py
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env 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/.
|
||||
#
|
||||
# Execute as: /import.py <source-distribution> <target-dir>
|
||||
# <target-dir> must have 'IMPORT_FILES' in it
|
||||
|
||||
import sys
|
||||
import re
|
||||
import os
|
||||
import shutil
|
||||
|
||||
def die(msg):
|
||||
sys.stderr.write('ERROR:' + msg + '\n')
|
||||
sys.exit(1)
|
||||
|
||||
DISTRO = sys.argv[1]
|
||||
IMPORT_DIR = sys.argv[2]
|
||||
FILES = []
|
||||
|
||||
f = open("%s/IMPORT_FILES" % IMPORT_DIR)
|
||||
for l in f:
|
||||
l = l.strip()
|
||||
l = l.strip("'")
|
||||
if l.startswith("#"):
|
||||
continue
|
||||
if not l:
|
||||
continue
|
||||
FILES.append(l)
|
||||
|
||||
for f in FILES:
|
||||
print f
|
||||
SOURCE_PATH = "%s/%s"%(DISTRO,f)
|
||||
DEST_PATH = "%s/%s"%(IMPORT_DIR,f)
|
||||
if not os.path.exists(SOURCE_PATH):
|
||||
die("%s does not exist"%SOURCE_PATH)
|
||||
if not os.path.exists(os.path.dirname(DEST_PATH)):
|
||||
os.makedirs(os.path.dirname(DEST_PATH))
|
||||
shutil.copyfile(SOURCE_PATH, DEST_PATH)
|
@ -134,8 +134,8 @@ endif
|
||||
ifdef MOZ_WEBRTC
|
||||
tier_platform_dirs += \
|
||||
media/webrtc \
|
||||
media/mtransport/third_party \
|
||||
$(NULL)
|
||||
# media/mtransport/third_party \
|
||||
# media/mtransport/build \
|
||||
# media/mtransport/standalone \
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user