Skip to content

Commit 9df363e

Browse files
committed
libdatachannel: force to update libdatachannel
1 parent e987d23 commit 9df363e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CCACHE ?= ccache
2525
endif
2626

2727
LIBDATACHANNEL_PATH ?= third_party/libdatachannel
28+
LIBDATACHANNEL_VERSION ?= $(LIBDATACHANNEL_PATH)/v0.23.222529eb2c8ae44
2829

2930
USE_HW_H264 ?= 1
3031
USE_FFMPEG ?= $(shell pkg-config libavutil libavformat libavcodec && echo 1)
@@ -117,6 +118,10 @@ html/%.c: html/%
117118
xxd -i $< > $@.tmp
118119
mv $@.tmp $@
119120

120-
$(LIBDATACHANNEL_PATH)/build/libdatachannel-static.a: $(LIBDATACHANNEL_PATH)
121+
$(LIBDATACHANNEL_VERSION):
122+
123+
$(LIBDATACHANNEL_PATH)/build/libdatachannel-static.a: $(LIBDATACHANNEL_PATH) $(LIBDATACHANNEL_VERSION)
124+
git submodule update --init --recursive $(LIBDATACHANNEL_PATH)
121125
[ -e $</build/Makefile ] || cmake -S $< -B $</build
122126
$(MAKE) -C $</build datachannel-static
127+
touch $(LIBDATACHANNEL_VERSION) $@

0 commit comments

Comments
 (0)