diff options
author | Brent Cook <busterb@gmail.com> | 2023-11-07 19:30:09 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-11-07 19:30:09 -0600 |
commit | 34641e8f1ae4b95475c2c84a12b6d075444f3193 (patch) | |
tree | 1d2af2ffb17407a27848efd8729f193b29bed638 | |
parent | 5db1aec4b7da71e756d67830a91e4000b7360fe1 (diff) | |
parent | 557b5a191a3d413d3e3121fb7f1b6c92e9052771 (diff) | |
download | portable-34641e8f1ae4b95475c2c84a12b6d075444f3193.tar.gz portable-34641e8f1ae4b95475c2c84a12b6d075444f3193.tar.bz2 portable-34641e8f1ae4b95475c2c84a12b6d075444f3193.zip |
Land #937, remove unused C defines
-rw-r--r-- | .github/workflows/android.yml | 31 | ||||
-rw-r--r-- | .github/workflows/android_test.yml | 30 | ||||
-rw-r--r-- | CMakeLists.txt | 2 |
3 files changed, 32 insertions, 31 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..205a400 --- /dev/null +++ b/.github/workflows/android.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | # GitHub Actions workflow to run tests on Android. | ||
2 | name: "Android" | ||
3 | |||
4 | on: [push, pull_request] | ||
5 | |||
6 | jobs: | ||
7 | test: | ||
8 | name: "Test ${{ matrix.name }}" | ||
9 | runs-on: ubuntu-latest | ||
10 | permissions: | ||
11 | contents: read | ||
12 | strategy: | ||
13 | fail-fast: false | ||
14 | matrix: | ||
15 | include: | ||
16 | - name: "Android 8-9" | ||
17 | min-nal: 26 | ||
18 | max-nal: 28 | ||
19 | - name: "Android 10-11" | ||
20 | min-nal: 29 | ||
21 | max-nal: 30 | ||
22 | steps: | ||
23 | - name: "Checkout repository" | ||
24 | uses: actions/checkout@v4 | ||
25 | |||
26 | - name: "Run CI script" | ||
27 | run: ./scripts/test | ||
28 | env: | ||
29 | ARCH: "android" | ||
30 | MIN_NAL: "${{ matrix.min-nal }}" | ||
31 | MAX_NAL: "${{ matrix.max-nal }}" | ||
diff --git a/.github/workflows/android_test.yml b/.github/workflows/android_test.yml deleted file mode 100644 index ebce794..0000000 --- a/.github/workflows/android_test.yml +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | name: android_ci | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
6 | build-android-8-9: | ||
7 | runs-on: ubuntu-22.04 | ||
8 | continue-on-error: false | ||
9 | env: | ||
10 | ARCH: android | ||
11 | MIN_NAL: 26 | ||
12 | MAX_NAL: 28 | ||
13 | name: Android 8.x 9 | ||
14 | steps: | ||
15 | - uses: actions/checkout@main | ||
16 | - name: Run CI script | ||
17 | run: ./scripts/test | ||
18 | |||
19 | build-android-10-11: | ||
20 | runs-on: ubuntu-22.04 | ||
21 | continue-on-error: false | ||
22 | env: | ||
23 | ARCH: android | ||
24 | MIN_NAL: 29 | ||
25 | MAX_NAL: 30 | ||
26 | name: Android 10 11 | ||
27 | steps: | ||
28 | - uses: actions/checkout@main | ||
29 | - name: Run CI script | ||
30 | run: ./scripts/test | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt index 950a79e..541cc11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -129,7 +129,7 @@ if(WIN32) | |||
129 | add_definitions(-D_CRT_SECURE_NO_WARNINGS) | 129 | add_definitions(-D_CRT_SECURE_NO_WARNINGS) |
130 | add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS) | 130 | add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS) |
131 | add_definitions(-D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS) | 131 | add_definitions(-D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS) |
132 | add_definitions(-DCPPFLAGS -DNO_SYSLOG -DNO_CRYPT) | 132 | add_definitions(-DNO_SYSLOG) |
133 | add_definitions(-DWIN32_LEAN_AND_MEAN) | 133 | add_definitions(-DWIN32_LEAN_AND_MEAN) |
134 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") | 134 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") |
135 | add_definitions(-D_WIN32_WINNT=0x0600) | 135 | add_definitions(-D_WIN32_WINNT=0x0600) |