|
1 | | -# Fetch dependencies if forced |
2 | | -if(FETCH_GSDK MATCHES ON) |
3 | | - find_package(GeckoSDK 2024.6.0 REQUIRED) |
4 | | -endif() |
5 | | - |
6 | 1 | # Build options will determine if the applications will be included and build |
7 | 2 |
|
8 | | -## Protocol Controllers |
| 3 | +if(NOT DEFINED BUILD_ZPC) |
| 4 | + set(BUILD_ZPC ON) |
| 5 | +endif() |
| 6 | + |
9 | 7 | if(BUILD_ZPC MATCHES ON) |
10 | 8 | add_subdirectory(zpc) |
11 | 9 | message(STATUS "ZPC will build") |
12 | 10 | else() |
13 | 11 | message(STATUS "ZPC will NOT build") |
14 | 12 | endif() |
15 | | - |
16 | | -## Example applications/components |
17 | | -if((BUILD_UIC_DEMO MATCHES ON) OR (BUILD_EPC MATCHES ON) OR (BUILD_EMD MATCHES ON)) |
18 | | - add_subdirectory(examples) |
19 | | - message(STATUS "UIC Demo, Example MQTT Device (EMD) and/or EPC will build") |
20 | | -else() |
21 | | - message(STATUS "UIC Demo, Example MQTT Device (EMD) and/or EPC will NOT build") |
22 | | -endif() |
23 | | - |
24 | | -## IoT services |
25 | | -if(BUILD_DEV_GUI MATCHES ON) |
26 | | - add_subdirectory(dev_ui/dev_gui) |
27 | | - message(STATUS "DevGui will build") |
28 | | -else() |
29 | | - message(STATUS "DevGui will NOT build") |
30 | | -endif() |
31 | | - |
32 | | -if(BUILD_UPVL MATCHES ON) |
33 | | - message(STATUS "UPVL will build") |
34 | | - add_subdirectory(upvl) |
35 | | -else() |
36 | | - message(STATUS "UPVL will NOT build") |
37 | | -endif() |
38 | | - |
39 | | -if(BUILD_GMS MATCHES ON) |
40 | | - add_subdirectory(gms) |
41 | | - message(STATUS "GMS will build") |
42 | | -else() |
43 | | - message(STATUS "GMS will NOT build") |
44 | | -endif() |
45 | | - |
46 | | -if(BUILD_IMAGE_PROVIDER MATCHES ON) |
47 | | - add_subdirectory(image_provider) |
48 | | - message(STATUS "Image provider will build") |
49 | | -else() |
50 | | - message(STATUS "Image provider will NOT build") |
51 | | -endif() |
52 | | - |
53 | | - |
54 | | -if(BUILD_NAL MATCHES ON) |
55 | | - add_subdirectory(nal) |
56 | | - message(STATUS "NAL will build") |
57 | | -else() |
58 | | - message(STATUS "NAL will NOT build") |
59 | | -endif() |
60 | | - |
61 | | -if(BUILD_UPTI_CAP MATCHES ON) |
62 | | - add_subdirectory(upti_cap) |
63 | | - message(STATUS "UPTI Cap will build") |
64 | | -else() |
65 | | - message(STATUS "UPTI Cap will NOT build") |
66 | | -endif() |
67 | | - |
68 | | -if(BUILD_UPTI_WRITER MATCHES ON) |
69 | | - add_subdirectory(upti_writer) |
70 | | - message(STATUS "UPTI Writer will build") |
71 | | -else() |
72 | | - message(STATUS "UPTI Writer will NOT build") |
73 | | -endif() |
74 | | - |
75 | | -if(NOT APPLE ) |
76 | | - if((BUILD_AOXPC MATCHES ON) OR (BUILD_POSITIONING MATCHES ON)) |
77 | | - add_subdirectory(aox) |
78 | | - message(STATUS "AoX applications will build") |
79 | | - else() |
80 | | - message(STATUS "AoX applications will NOT build") |
81 | | - endif() |
82 | | - |
83 | | - |
84 | | - if(BUILD_CPCD MATCHES ON) |
85 | | - add_subdirectory(cpcd) |
86 | | - add_subdirectory(cpc-hci-bridge) |
87 | | - add_subdirectory(bt_host_empty) |
88 | | - message(STATUS "CPCd daemon and applications will build") |
89 | | - else() |
90 | | - message(STATUS "CPCd daemon and applications will NOT build") |
91 | | - endif() |
92 | | - |
93 | | - IF (BUILD_OTBR MATCHES ON) |
94 | | - add_subdirectory(openthread_border_router) |
95 | | - message(STATUS "OTBR application will build") |
96 | | - else() |
97 | | - message(STATUS "OTBR application will NOT build") |
98 | | - endif() |
99 | | - |
100 | | - if(BUILD_ZIGBEED MATCHES ON) |
101 | | - add_subdirectory(zigbeed) |
102 | | - message(STATUS "Zigbeed will build") |
103 | | - else() |
104 | | - message(STATUS "Zigbeed will NOT build") |
105 | | - endif() |
106 | | - |
107 | | - if(BUILD_ZIGPC MATCHES ON) |
108 | | - add_subdirectory(zigpc) |
109 | | - message(STATUS "ZigPC will build") |
110 | | - else() |
111 | | - message(STATUS "ZigPC will NOT build") |
112 | | - endif() |
113 | | -endif() |
0 commit comments