Skip to content

Commit

Permalink
fix #126: build with latest webrtc
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Jun 18, 2018
1 parent 0842280 commit 03fdce3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CFLAGS += $(SYSROOTOPT) $(CFLAGS_EXTRA)
LDFLAGS += $(SYSROOTOPT)

CFLAGS += -DWEBRTC_POSIX -fno-rtti -DHAVE_JPEG
CFLAGS += -I $(WEBRTCROOT)/src -I $(WEBRTCROOT)/src/third_party/jsoncpp/source/include -I $(WEBRTCROOT)/src/third_party/libyuv/include
CFLAGS += -I $(WEBRTCROOT)/src -I $(WEBRTCROOT)/src/third_party/jsoncpp/source/include -I $(WEBRTCROOT)/src/third_party/libyuv/include -I $(WEBRTCROOT)/src/third_party/abseil-cpp
#detect debug vs release
TESTDEBUG=$(shell nm $(wildcard $(WEBRTCLIBPATH)/obj/rtc_base/librtc_base_generic.a) | c++filt | grep std::__debug::vector >/dev/null && echo debug)
ifeq ($(TESTDEBUG),debug)
Expand Down Expand Up @@ -118,8 +118,11 @@ clean:
make -C h264bitstream clean
make -k -C live555helper clean PREFIX=$(PREFIX) SYSROOT=$(SYSROOT)

install: $(TARGET)
install -m 0755 $(TARGET) /usr/local/bin
install: $(TARGET) html/index.html
mkdir -p $(PREFIX)/bin
install -m 0755 $(TARGET) $(PREFIX)/bin/
mkdir -p $(PREFIX)/etc/$(TARGET)
find html -type f -exec install -m 0422 {} $(PREFIX)/etc/$(TARGET)/ \;

tgz: $(TARGET) html/index.html
tar cvzf $(TARGET)_$(GITVERSION)_$(GYP_GENERATOR_OUTPUT).tgz $(TARGET) html
Expand Down

0 comments on commit 03fdce3

Please sign in to comment.