Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
ae280b14
提交
ae280b14
authored
10月 25, 2021
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cosmetic
上级
ff74c1ff
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
6 行删除
+12
-6
Makefile
worker/Makefile
+12
-6
没有找到文件。
worker/Makefile
浏览文件 @
ae280b14
...
@@ -28,7 +28,8 @@ else
...
@@ -28,7 +28,8 @@ else
export
NINJA
=
$(PIP_DIR)
/bin/ninja
export
NINJA
=
$(PIP_DIR)
/bin/ninja
endif
endif
# Instruct Python where to look for modules it needs, such that `meson` actually runs from installed location.
# Instruct Python where to look for modules it needs, such that `meson` actually
# runs from installed location.
# For some reason on Windows adding `:${PYTHONPATH}` breaks things.
# For some reason on Windows adding `:${PYTHONPATH}` breaks things.
ifeq
($(OS),Windows_NT)
ifeq
($(OS),Windows_NT)
export
PYTHONPATH
:=
$(PIP_DIR)
export
PYTHONPATH
:=
$(PIP_DIR)
...
@@ -45,17 +46,21 @@ default: mediasoup-worker
...
@@ -45,17 +46,21 @@ default: mediasoup-worker
meson-ninja
:
meson-ninja
:
ifeq
($(wildcard
$(PIP_DIR)),)
ifeq
($(wildcard
$(PIP_DIR)),)
# Updated pip and setuptools are needed for meson
# Updated pip and setuptools are needed for meson
# `--system` is not present everywhere and is only needed as workaround for Debian-specific issue (copied from
# `--system` is not present everywhere and is only needed as workaround for
# https://github.com/gluster/gstatus/pull/33), fallback to command without `--system` if the first one fails.
# Debian-specific issue (copied from
# https://github.com/gluster/gstatus/pull/33), fallback to command without
# `--system` if the first one fails.
$(PYTHON)
-m
pip
install
--system
--target
=
$(PIP_DIR)
pip setuptools
||
\
$(PYTHON)
-m
pip
install
--system
--target
=
$(PIP_DIR)
pip setuptools
||
\
$(PYTHON)
-m
pip
install
--target
=
$(PIP_DIR)
pip setuptools
||
\
$(PYTHON)
-m
pip
install
--target
=
$(PIP_DIR)
pip setuptools
||
\
echo
"Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package"
echo
"Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package"
# Install `meson` and `ninja` using `pip` into custom location, so we don't depend on system-wide installation.
# Install `meson` and `ninja` using `pip` into custom location, so we don't
# depend on system-wide installation.
$(PYTHON)
-m
pip
install
--upgrade
--target
=
$(PIP_DIR)
$(PIP_BUILD_BINARIES)
meson ninja
$(PYTHON)
-m
pip
install
--upgrade
--target
=
$(PIP_DIR)
$(PIP_BUILD_BINARIES)
meson ninja
endif
endif
setup
:
meson-ninja
setup
:
meson-ninja
# We try to call `--reconfigure` first as a workaround for https://github.com/ninja-build/ninja/issues/1997
# We try to call `--reconfigure` first as a workaround for this issue:
# https://github.com/ninja-build/ninja/issues/1997
ifeq
($(MEDIASOUP_BUILDTYPE),Release)
ifeq
($(MEDIASOUP_BUILDTYPE),Release)
$(MESON)
setup
\
$(MESON)
setup
\
--buildtype
release
\
--buildtype
release
\
...
@@ -135,7 +140,8 @@ format:
...
@@ -135,7 +140,8 @@ format:
test
:
setup
test
:
setup
ifeq
($(MEDIASOUP_WORKER_BIN),)
ifeq
($(MEDIASOUP_WORKER_BIN),)
$(MESON)
compile
-j
$(CORES)
-C
$(MEDIASOUP_OUT_DIR)/$(MEDIASOUP_BUILDTYPE)
mediasoup-worker-test
$(MESON)
compile
-j
$(CORES)
-C
$(MEDIASOUP_OUT_DIR)/$(MEDIASOUP_BUILDTYPE)
mediasoup-worker-test
# On Windows lcov doesn't work (at least not yet) and we need to add `.exe` to the binary path.
# On Windows lcov doesn't work (at least not yet) and we need to add `.exe` to
# the binary path.
ifeq
($(OS),Windows_NT)
ifeq
($(OS),Windows_NT)
$(MEDIASOUP_OUT_DIR)/$(MEDIASOUP_BUILDTYPE)/mediasoup-worker-test.exe
--invisibles
--use-colour
=
yes
$(MEDIASOUP_TEST_TAGS)
$(MEDIASOUP_OUT_DIR)/$(MEDIASOUP_BUILDTYPE)/mediasoup-worker-test.exe
--invisibles
--use-colour
=
yes
$(MEDIASOUP_TEST_TAGS)
else
else
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论