-
Notifications
You must be signed in to change notification settings - Fork 43
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 #10 from fredemmott/external-sdk-pr
Use SDK and dependencies from external repositories instead of copies
- Loading branch information
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.
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,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] |
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,3 @@ | ||
build/ | ||
.vscode | ||
*.swp |
Binary file not shown.
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,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) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.