Skip to content

Commit

Permalink
optimize build process
Browse files Browse the repository at this point in the history
  • Loading branch information
SighingSnow committed Jan 25, 2023
1 parent 0234028 commit c0a0583
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[submodule "3rd_party/librtc"]
path = 3rd_party/librtc
url = https://github.com/paullouisageneau/libdatachannel.git
[submodule "3rd_party/json"]
path = 3rd_party/json
url = https://github.com/nlohmann/json.git
shallow = true
1 change: 1 addition & 0 deletions 3rd_party/json
Submodule json added at da6b90
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ project(ors)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-D__STDC_CONSTANT_MACROS")

option(NO_EXAMPLES "Disable examples" ON)
option(NO_TESTS "Disable tests build" ON)

find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
libavdevice
Expand Down Expand Up @@ -37,6 +40,7 @@ endif()
include_directories(3rd_party/glm)

add_subdirectory(3rd_party/librtc)
add_subdirectory(3rd_party/json)

add_executable(
ors
Expand Down
2 changes: 1 addition & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### 0 Local
On your local pc, please set up the signaling server first.
```shell
git submodule update --init --recursive
git submodule update --init --recursive --depth 1
cd client
python3 signaling-server.py
python3 -m http.server --bind 127.0.0.1 8080
Expand Down

0 comments on commit c0a0583

Please sign in to comment.