Skip to content

Commit

Permalink
Merge pull request #10 from fredemmott/external-sdk-pr
Browse files Browse the repository at this point in the history
Use SDK and dependencies from external repositories instead of copies
  • Loading branch information
ChekTek authored Aug 2, 2022
2 parents e5a04d3 + 8ad6e1c commit dc9d207
Show file tree
Hide file tree
Showing 4,715 changed files with 132 additions and 572,000 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
name: ${{matrix.os}}/${{matrix.build-type}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v2
- name: Make build directory
run: cmake -E make_directory build
- name: Configure
working-directory: build
run: |
cmake ../Sources \
-DCMAKE_BUILD_TYPE=${{matrix.build-type}}
shell: bash
- name: Compile
working-directory: build
run: cmake --build . --config ${{matrix.build-type}}
- name: Upload binary (Mac)
if: matrix.os == 'macos'
uses: actions/upload-artifact@v2
with:
name: cpu-${{matrix.build-type}}
path: build/cpu
- name: Upload binary (Windows)
if: matrix.os == 'windows'
uses: actions/upload-artifact@v2
with:
name: cpu-${{matrix.build-type}}.exe
path: build/${{matrix.build-type}}/cpu.exe
strategy:
matrix:
os: [windows, macos]
build-type: [Release, Debug]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
.vscode
*.swp
Binary file removed Release/com.elgato.cpu.streamDeckPlugin
Binary file not shown.
40 changes: 40 additions & 0 deletions Sources/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cmake_minimum_required(VERSION 3.10)

project(com.elgato.cpu VERSION 1.2)

if (APPLE)
set(
STREAMDECK_PLUGIN_DIR
"$ENV{HOME}/Library/ApplicationSupport/com.elgato.StreamDeck/Plugins"
)
endif()
set(
CMAKE_INSTALL_PREFIX
"${STREAMDECK_PLUGIN_DIR}/${CMAKE_PROJECT_NAME}"
CACHE STRING "See cmake documentation"
)

set(CMAKE_CXX_STANDARD 11)
set(CXX_STANDARD_REQUIRED true)
if (MSVC)
add_definitions("/Zc:__cplusplus" -DUNICODE=1)
endif()
include_directories("${CMAKE_SOURCE_DIR}")

include("StreamDeckSDK.cmake")

set(
SOURCES
MyStreamDeckPlugin.cpp
main.cpp
)
if (APPLE)
list(APPEND SOURCES macOS/CpuUsageHelper.cpp)
elseif (WIN32)
list(APPEND SOURCES Windows/CpuUsageHelper.cpp)
endif()
add_executable(
cpu
${SOURCES}
)
target_link_libraries(cpu StreamDeckSDK)
153 changes: 0 additions & 153 deletions Sources/Common/EPLJSONUtils.h

This file was deleted.

39 changes: 0 additions & 39 deletions Sources/Common/ESDBasePlugin.h

This file was deleted.

Loading

0 comments on commit dc9d207

Please sign in to comment.