Commit 351ab6a
committed
fix(rust): Add file playback source files to build-source mode
Problem Analysis:
- Build Source (Dist) mode on macOS/Windows was failing with undefined symbols
- Root cause: ccap_file_reader_apple.mm and ccap_file_reader_windows.cpp were missing
- These files are required when CCAP_ENABLE_FILE_PLAYBACK is enabled (default ON in CMake)
- The FileReaderApple/Windows classes are referenced in ccap_imp_apple.mm and ccap_imp_windows.cpp
Changes:
- Add ccap_file_reader_apple.mm to macOS platform sources
- Add ccap_file_reader_windows.cpp to Windows platform sources
- Define CCAP_ENABLE_FILE_PLAYBACK=1 to enable file playback functionality
Verification:
- Linux build-source mode: ✅ cargo build --no-default-features --features build-source
- Linux tests: ✅ cargo test --no-default-features --features build-source
- All 11 tests passed
This fix ensures build-source mode includes all required source files
for the file playback feature, resolving linker errors on macOS and Windows.1 parent f499ce2 commit 351ab6a
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
0 commit comments