All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 5m29s
Check code formatting / Check-C-Format (push) Successful in 9s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
The python and C modules that are supposed to be built into the firmware image (i.e. those that are in manifest.py or in USER_C_MODULES) have been moved to the software/modules directory. The software/src directory should now only contain python scripts and other files that should be installed to the Picos flash filesystem. The idea is that these should be those scripts that implement the application behaviour, as these are the ones that a user who does not want to build the whole firmware themself wants to modify.
23 lines
759 B
CMake
23 lines
759 B
CMake
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2024 Matthias Blankertz <matthias@blankertz.org>
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../../lib/helix_mp3 helix_mp3)
|
|
add_library(usermod_audiocore INTERFACE)
|
|
|
|
pico_generate_pio_header(usermod_audiocore ${CMAKE_CURRENT_LIST_DIR}/i2s_max98357.pio)
|
|
|
|
target_sources(usermod_audiocore INTERFACE
|
|
${CMAKE_CURRENT_LIST_DIR}/audiocore.c
|
|
${CMAKE_CURRENT_LIST_DIR}/i2s.c
|
|
${CMAKE_CURRENT_LIST_DIR}/module.c
|
|
${CMAKE_CURRENT_LIST_DIR}/mp3.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/i2s_max98357.pio.h
|
|
)
|
|
|
|
target_include_directories(usermod_audiocore INTERFACE
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
target_link_libraries(usermod_audiocore INTERFACE helix_mp3)
|
|
target_link_libraries(usermod INTERFACE usermod_audiocore)
|