User applications selection using CMake
Fix typos in Apps.md and add new line in src/displayapp/apps/CMakeLists.txt
This commit is contained in:
parent
06171dad38
commit
2ee2b8523a
|
@ -159,7 +159,10 @@ If your application is a **user** application, you don't need to add anything in
|
||||||
everything will be automatically generated for you.
|
everything will be automatically generated for you.
|
||||||
The user application will also be automatically be added to the app launcher menu.
|
The user application will also be automatically be added to the app launcher menu.
|
||||||
|
|
||||||
Since the list of **user** application is generated by CMake, you need to add the variable `ENABLE_USERAPPS` to the command line of CMake. This variable must be set with a string composed of an ordered list of the **user** applications that must be built into the firmware. The items of the list are fields from the enumeration `Apps`. Ex : build the firmware with 3 user application : Alarm, Timer and MyApp (the application will be listed in this specific order in the application menu).
|
Since the list of **user** application is generated by CMake, you need to add the variable `ENABLE_USERAPPS` to the command line of CMake.
|
||||||
|
This variable must be set with a string composed of an ordered list of the **user** applications that must be built into the firmware.
|
||||||
|
The items of the list are fields from the enumeration `Apps`.
|
||||||
|
Ex : build the firmware with 3 user application : Alarm, Timer and MyApp (the application will be listed in this specific order in the application menu).
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
$ cmake ... -DENABLE_USERAPPS="Apps::Alarm, Apps::Timer, Apps::MyApp" ...
|
$ cmake ... -DENABLE_USERAPPS="Apps::Alarm, Apps::Timer, Apps::MyApp" ...
|
||||||
|
|
|
@ -9,4 +9,4 @@ target_sources(infinitime_apps INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/Apps.h")
|
||||||
target_include_directories(infinitime_apps INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/")
|
target_include_directories(infinitime_apps INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/")
|
||||||
|
|
||||||
# Generate the list of user apps to be compiled into the firmware
|
# Generate the list of user apps to be compiled into the firmware
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Apps.h.in ${CMAKE_CURRENT_BINARY_DIR}/Apps.h)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Apps.h.in ${CMAKE_CURRENT_BINARY_DIR}/Apps.h)
|
||||||
|
|
Loading…
Reference in a new issue