Skip to content

Commit

Permalink
Remove unused part in example and build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sepfy committed Oct 29, 2023
1 parent 192d7f0 commit 2a9b115
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
7 changes: 0 additions & 7 deletions build-third-party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ mkdir -p build && cd build
cmake -DCMAKE_C_FLAGS="-fPIC" -DENABLE_TESTING=off -DENABLE_PROGRAMS=off -DCMAKE_INSTALL_PREFIX=$BASE_DIR/dist ..
make install

cd $BASE_DIR/third_party/MQTT-C
mkdir -p build && cd build
cmake -DMQTT_C_EXAMPLES=off -DCMAKE_PREFIX_PATH=$BASE_DIR/dist -DCMAKE_INSTALL_LIBDIR=$BASE_DIR/dist/lib -DCMAKE_INSTALL_INCLUDEDIR=$BASE_DIR/dist/include/ -DMQTT_C_MbedTLS_SUPPORT=on ..
make -j4
make install
cp ../examples/templates/mbedtls_sockets.h $BASE_DIR/dist/include/

cd $BASE_DIR/third_party/usrsctp
mkdir -p build && cd build
cmake -DCMAKE_C_FLAGS="-fPIC" -Dsctp_build_programs=off -DCMAKE_INSTALL_PREFIX=$BASE_DIR/dist ..
Expand Down
5 changes: 0 additions & 5 deletions examples/raspberrypi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ int main(int argc, char *argv[]) {
.on_request_keyframe = on_request_keyframe
};

if (argc < 2) {
printf("usage: %s <cacert>\n", argv[0]);
return 0;
}

strcpy(device_id, "rpi-");
get_hwaddr(device_id + 4, sizeof(device_id) - 4);
printf("open https://sepfy.github.io/webrtc?deviceId=%s\n", device_id);
Expand Down
5 changes: 0 additions & 5 deletions examples/sample/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ int main(int argc, char *argv[]) {
.audio_codec = CODEC_PCMA
};

if (argc < 2) {
printf("usage: %s <cacert>\n", argv[0]);
return 0;
}

snprintf((char*)buf, sizeof(buf), "test_%d", getpid());
printf("open https://sepfy.github.io/webrtc?deviceId=%s\n", buf);

Expand Down

0 comments on commit 2a9b115

Please sign in to comment.