Skip to content

Commit

Permalink
only include copied linux/gpio.h if building py bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Apr 5, 2024
1 parent 360f52c commit 8ea196a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
check_formatting:
uses: ./.github/workflows/cpp_lint.yaml
with:
ignore: 'examples|!examples/linux|src/utility/bcm2xxx/bcm2835.h|src/utility/bcm2xxx/bcm2835.c|src/utility/linux_kernel/linux'
ignore: 'examples|!examples/linux|src/utility/bcm2xxx/bcm2835.h|src/utility/bcm2xxx/bcm2835.c|src/linux'
build:
needs: check_formatting
runs-on: ubuntu-latest
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions src/utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ elseif("${PINNACLE_DRIVER}" STREQUAL "linux_kernel") # use linux_kernel
endif()
install(FILES
${CIRQUE_PINNACLE_UTILITY_HEADERS}
${CMAKE_CURRENT_LIST_DIR}/${PINNACLE_DRIVER}/linux/gpio.h
DESTINATION include/CirquePinnacle/utility/${PINNACLE_DRIVER}
)
set(PINNACLE_DRIVER_SOURCES
${PINNACLE_UTILITY_IMPLEMENTATION_FILES}
${CMAKE_CURRENT_LIST_DIR}/${PINNACLE_DRIVER}/gpio.cpp
${CMAKE_CURRENT_LIST_DIR}/${PINNACLE_DRIVER}/linux/gpio.h
PARENT_SCOPE
)
elseif("${PINNACLE_DRIVER}" STREQUAL "mraa") # use mraa
Expand Down

0 comments on commit 8ea196a

Please sign in to comment.