Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Feb 27, 2020
0 parents commit 2b1f4cb
Show file tree
Hide file tree
Showing 16 changed files with 3,136 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
.vscode
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
notifications:
email: false

language: cpp

os: linux
dist: bionic

jobs:
include:
- name: "STM32"
env:
- TOOLCHAIN=../32blit-beta/32blit.toolchain
- RELEASE_FILE=${TRAVIS_BUILD_DIR}${REPO}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}-STM32
addons:
apt:
gcc-arm-none-eabi
libnewlib-arm-none-eabi
libstdc++-arm-none-eabi-newlib
python3-pip
python3-setuptools
zip
before_deploy:
- make install
- tar -zcf ${RELEASE_FILE}.tar.gz bin/
- zip -9 ${RELEASE_FILE}.zip bin/*
deploy:
provider: releases
file:
- ${RELEASE_FILE}.tar.gz
- ${RELEASE_FILE}.zip
on:
tags: true
edge: true

install:
- git clone --depth 1 https://github.com/pimoroni/32blit-beta
- python3 -m pip install 32blit

script:
- mkdir build && cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN -DCMAKE_INSTALL_PREFIX=`pwd` -D32BLIT_PATH=../32blit-beta $CMAKE_ARGS ..
- cmake --build .
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.1.0)
set(32BLIT_PATH "../" CACHE PATH "Path to 32blit.cmake")
project(mjpeg-player)

#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address")

include(${32BLIT_PATH}/32blit.cmake)

#add_definitions("-DPROFILER")

blit_executable(mjpeg-player
avi-file.cpp
control-icons.cpp
file-browser.cpp
mjpeg-player.cpp
)

blit_assets_yaml(mjpeg-player assets.yml)
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Building

```
mkdir build
cd build
cmake -D32BLIT_PATH=path/to/32blit-beta ..
make
```

(See 32Blit docs for more info)
3 changes: 3 additions & 0 deletions assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assets.cpp:
prefix: asset_
assets/buttons.png: buttons
Binary file added assets/buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2b1f4cb

Please sign in to comment.