Commit d13a62a
committed
build: drop vendored midi2.{h,c} and link midi2_cpp PUBLIC midi2::midi2
This is the final step of the depends=midi2 migration. Every recipe
under examples/ has been migrated to pull midi2 externally (Pico SDK
+ TinyUSB CMake via FetchContent, ESP-IDF via Component Manager,
PlatformIO via lib_deps), so the duplicated copy of dist/midi2.{h,c}
that lived under src/ no longer has any consumer.
Removes:
- src/midi2.h
- src/midi2.c
Updates the root CMakeLists.txt:
- find_package + FetchContent now ask for midi2 0.3.3 (matches the
ESP-IDF idiom and the Library Manager constraint).
- midi2_cpp library target drops src/midi2.c from its source list.
- target_link_libraries(midi2_cpp PUBLIC midi2::midi2) exposes the
C99 core to downstream link consumers transitively.
Bumps the manifest declarations in lockstep:
- library.properties: depends=midi2 (>=0.3.3)
- library.json: sauloverissimo/midi2: ^0.3.3
Verified locally: cmake configure pulls midi2 v0.3.3 via
FetchContent, the host suite (7 executables, including the m2bridge
ASan + UBSan smoke) builds and runs clean.1 parent 05b97dd commit d13a62a
5 files changed
Lines changed: 10 additions & 5155 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | | - | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| 40 | + | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
This file was deleted.
0 commit comments