Skip to content

Commit

Permalink
Update for boilerplate/sdk changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Feb 10, 2021
1 parent f13b4ac commit d849638
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ jobs:
- os: ubuntu-20.04
name: Linux
#release-suffix: LIN64
cmake-args: -D32BLIT_PATH=$GITHUB_WORKSPACE/32blit
cmake-args: -D32BLIT_DIR=$GITHUB_WORKSPACE/32blit-sdk
apt-packages: libsdl2-dev libsdl2-image-dev libsdl2-net-dev python3-setuptools

- os: ubuntu-20.04
name: STM32
release-suffix: STM32
cmake-args: -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/32blit/32blit.toolchain
cmake-args: -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/32blit-sdk/32blit.toolchain
apt-packages: gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib python3-setuptools

- os: macos-latest
name: macOS
#release-suffix: MACOS
cmake-args: -D32BLIT_PATH=$GITHUB_WORKSPACE/32blit
cmake-args: -D32BLIT_DIR=$GITHUB_WORKSPACE/32blit-sdk
brew-packages: sdl2 sdl2_image sdl2_net

- os: windows-latest
name: Visual Studio
#release-suffix: WIN64
cmake-args: -D32BLIT_PATH=$GITHUB_WORKSPACE/32blit
cmake-args: -D32BLIT_DIR=$GITHUB_WORKSPACE/32blit-sdk

runs-on: ${{matrix.os}}

Expand All @@ -62,8 +62,8 @@ jobs:
- name: Checkout 32Blit API
uses: actions/checkout@v2
with:
repository: pimoroni/32blit-beta
path: 32blit
repository: 32blit/32blit-sdk
path: 32blit-sdk

# Linux dependencies
- name: Install Linux deps
Expand Down
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.9)

project(mjpeg-player)
set(32BLIT_PATH "../" CACHE PATH "Path to 32blit.cmake")

set(PROJECT_SOURCE
avi-file.cpp
mjpeg-player.cpp
Expand All @@ -19,10 +19,8 @@ if(MSVC)
else()
add_compile_options("-Wall" "-Wextra" "-Wdouble-promotion")
endif()
if(NOT EXISTS ${32BLIT_PATH}/32blit.cmake)
message(FATAL_ERROR "Define location of 32Blit API with -D32BLIT_PATH=<path to 32blit.cmake>")
endif()
include (${32BLIT_PATH}/32blit.cmake)

find_package (32BLIT CONFIG REQUIRED PATHS ../32blit-sdk)
add_subdirectory(DUH)

blit_executable (${PROJECT_NAME} ${PROJECT_SOURCE})
Expand Down

0 comments on commit d849638

Please sign in to comment.