Commit 1b4e318
committed
feat(juce): let JUCE projects add the module through FetchContent
The top-level CMakeLists always looked up OpenSSL, and CURL unless
MOONBASE_USE_CURL was off, although the JUCE module needs neither. A JUCE
project therefore could not FetchContent_MakeAvailable() this repository
on a machine without them, and had to fetch the sources and call
juce_add_module() itself.
MOONBASE_JUCE_MODULE_ONLY (off by default) adds just the moonbase_licensing
module with JUCE's juce_add_module and leaves out the core SDK target and
everything built on it, so OpenSSL, CURL and nlohmann_json are never looked
up. JUCE has to be added first; the configure says so if it was not.
The JUCE workflow now configures with the option, and a new job builds
tests/juce_consumer_smoke, a JUCE project consuming the repository this
way, with the OpenSSL and CURL lookups disabled outright.1 parent ddeebc5 commit 1b4e318
11 files changed
Lines changed: 307 additions & 167 deletions
File tree
- .github/workflows
- docs
- modules/moonbase_licensing
- scripts
- tests
- juce_consumer_smoke
- juce
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments