-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1112 from Sean-Der/version-macro
Add version macros
- Loading branch information
Showing
5 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check version.h values | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
check-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install packages | ||
run: sudo apt update && sudo apt install libssl-dev libsrtp2-dev | ||
- name: submodules | ||
run: git submodule update --init --recursive --depth 1 | ||
- name: cmake | ||
run: cmake -B build -DUSE_GNUTLS=0 -DUSE_SYSTEM_SRTP=1 -DWARNINGS_AS_ERRORS=1 | ||
- name: check diff | ||
run: | | ||
if ! git diff --exit-code | ||
then | ||
exit 1 | ||
fi | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef RTC_VERSION_H | ||
#define RTC_VERSION_H | ||
|
||
#define RTC_VERSION_MAJOR @PROJECT_VERSION_MAJOR@ | ||
#define RTC_VERSION_MINOR @PROJECT_VERSION_MINOR@ | ||
#define RTC_VERSION_PATCH @PROJECT_VERSION_PATCH@ | ||
#define RTC_VERSION "@PROJECT_VERSION@" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
#ifndef RTC_C_API | ||
#define RTC_C_API | ||
|
||
#include "version.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef RTC_VERSION_H | ||
#define RTC_VERSION_H | ||
|
||
#define RTC_VERSION_MAJOR 0 | ||
#define RTC_VERSION_MINOR 20 | ||
#define RTC_VERSION_PATCH 1 | ||
#define RTC_VERSION "0.20.1" | ||
|
||
#endif |