mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Update docs - initial pr draft commit
This commit is contained in:
parent
ff21f5b357
commit
353a9aa671
12
BUILDING.md
12
BUILDING.md
@ -29,12 +29,18 @@ make -j4
|
|||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On other linux OS's, use this cmake command instead:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cmake -DLIBOBS_INCLUDE_DIR="<path to the libobs sub-folder in obs-studio's source code>" -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||||
|
```
|
||||||
|
|
||||||
## OS X
|
## OS X
|
||||||
|
|
||||||
As a prerequisite, you will need Xcode for your current OSX version, the Xcode command line tools, and [Homebrew](https://brew.sh/).
|
As a prerequisite, you will need Xcode for your current OSX version, the Xcode command line tools, and [Homebrew](https://brew.sh/).
|
||||||
Homebrew's setup will guide you in getting your system set up, you should be good to go once Homebrew is successfully up and running.
|
Homebrew's setup will guide you in getting your system set up, you should be good to go once Homebrew is successfully up and running.
|
||||||
|
|
||||||
Use of the Travis macOS CI scripts is recommended. Please note that these
|
Use of the macOS CI scripts is recommended. Please note that these
|
||||||
scripts install new software and can change several settings on your system. An
|
scripts install new software and can change several settings on your system. An
|
||||||
existing obs-studio development environment is not required, as
|
existing obs-studio development environment is not required, as
|
||||||
`install-build-obs-macos.sh` will install it for you. If you already have a
|
`install-build-obs-macos.sh` will install it for you. If you already have a
|
||||||
@ -57,6 +63,4 @@ This will result in a ready-to-use `obs-websocket.pkg` installer in the `release
|
|||||||
|
|
||||||
## Automated Builds
|
## Automated Builds
|
||||||
|
|
||||||
- Windows: [](https://ci.appveyor.com/project/Palakis/obs-websocket/history)
|
[](https://dev.azure.com/Palakis/obs-websocket/_build/latest?definitionId=2&branchName=4.x-current)
|
||||||
- Linux: [](https://travis-ci.org/Palakis/obs-websocket)
|
|
||||||
- macOS: [](https://dev.azure.com/Palakis/obs-websocket/_build)
|
|
||||||
|
38
CONTRIBUTING.md
Normal file
38
CONTRIBUTING.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
### Branches
|
||||||
|
|
||||||
|
Development happens on `4.x-current`
|
||||||
|
|
||||||
|
### Pull Requests
|
||||||
|
|
||||||
|
Pull Requests must never be based off your fork's main branch (in this case, `4.x-current`). Start your work in a new branch
|
||||||
|
based on the upstream main one (e.g.: `cool-new-feature`, `fix-palakis-mistakes`, ...) and open a Pull Request once you feel ready to show your work.
|
||||||
|
|
||||||
|
**If your Pull Request is not ready to merge yet, create it as a Draft Pull Request** (open the little arrow menu next to the "Create pull request" button, then select "Create draft pull request").
|
||||||
|
|
||||||
|
### Code style & formatting
|
||||||
|
|
||||||
|
Source code is indented with tabs, with spaces allowed for alignment.
|
||||||
|
|
||||||
|
Regarding protocol changes: new and updated request types / events must always come with accompanying documentation comments (see existing protocol elements for examples).
|
||||||
|
These are required to automatically generate the [protocol specification document](docs/generated/protocol.md).
|
||||||
|
|
||||||
|
Among other recommendations: favor return-early code and avoid wrapping huge portions of code in conditionals. As an example, this:
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
if (success) {
|
||||||
|
return req->SendOKResponse();
|
||||||
|
} else {
|
||||||
|
return req->SendErrorResponse("something went wrong");
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
is better like this:
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
if (!success) {
|
||||||
|
return req->SendErrorResponse("something went wrong");
|
||||||
|
}
|
||||||
|
return req->SendOKResponse();
|
||||||
|
```
|
42
README.md
42
README.md
@ -46,47 +46,13 @@ See the [build instructions](BUILDING.md).
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
### Branches
|
See [the contributing document](/CONTRIBUTING.md)
|
||||||
|
|
||||||
Development happens on `4.x-current`
|
|
||||||
|
|
||||||
### Pull Requests
|
|
||||||
|
|
||||||
Pull Requests must never be based off your fork's main branch (in this case, `4.x-current`). Start your work in a new branch
|
|
||||||
based on the main one (e.g.: `cool-new-feature`, `fix-palakis-mistakes`, ...) and open a Pull Request once you feel ready to show your work.
|
|
||||||
|
|
||||||
**If your Pull Request is not ready to merge yet, create it as a Draft Pull Request** (open the little arrow menu next to the "Create pull request" button, then select "Create draft pull request").
|
|
||||||
|
|
||||||
### Code style & formatting
|
|
||||||
|
|
||||||
Source code is indented with tabs, with spaces allowed for alignment.
|
|
||||||
|
|
||||||
Regarding protocol changes: new and updated request types / events must always come with accompanying documentation comments (see existing protocol elements for examples).
|
|
||||||
These are required to automatically generate the [protocol specification document](docs/generated/protocol.md).
|
|
||||||
|
|
||||||
Among other recommendations: favor return-early code and avoid wrapping huge portions of code in conditionals. As an example, this:
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
if (success) {
|
|
||||||
return req->SendOKResponse();
|
|
||||||
} else {
|
|
||||||
return req->SendErrorResponse("something went wrong");
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
is better like this:
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
if (!success) {
|
|
||||||
return req->SendErrorResponse("something went wrong");
|
|
||||||
}
|
|
||||||
return req->SendOKResponse();
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
|
|
||||||
**Your help is welcome on translations**. Please join the localization project on Crowdin: https://crowdin.com/project/obs-websocket
|
**Your help is welcome on translations.**
|
||||||
|
|
||||||
|
Please join the localization project on Crowdin: https://crowdin.com/project/obs-websocket
|
||||||
|
|
||||||
## Special thanks
|
## Special thanks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user