From 2bc93184511921abda938790a4bdd1d2ea8e06ce Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Sun, 17 Dec 2023 16:34:00 +0100 Subject: CMake User Applications selection Use CMake's configure_file() functionality to generate the list of User Applications. All the apps included in current versions of InfiniTime are enabled by default, but this can now be overridden by setting variables ENABLE_APP_XXX to True or False. CMake CMP0140 is set to NEW to enable the return PROPAGATE functionality. --- src/displayapp/Apps.h | 97 --------------------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 src/displayapp/Apps.h (limited to 'src/displayapp/Apps.h') diff --git a/src/displayapp/Apps.h b/src/displayapp/Apps.h deleted file mode 100644 index ebd8bf78..00000000 --- a/src/displayapp/Apps.h +++ /dev/null @@ -1,97 +0,0 @@ -#pragma once -#include -#include - -namespace Pinetime { - namespace Applications { - enum class Apps : uint8_t { - None, - Launcher, - Clock, - SysInfo, - FirmwareUpdate, - FirmwareValidation, - NotificationsPreview, - Notifications, - Timer, - Alarm, - FlashLight, - BatteryInfo, - Music, - Paint, - Paddle, - Twos, - HeartRate, - Navigation, - StopWatch, - Metronome, - Motion, - Steps, - PassKey, - QuickSettings, - Settings, - SettingWatchFace, - SettingTimeFormat, - SettingDisplay, - SettingWakeUp, - SettingSteps, - SettingSetDateTime, - SettingChimes, - SettingShakeThreshold, - SettingBluetooth, - Error, - Weather - }; - - enum class WatchFace : uint8_t { - Digital, - Analog, - PineTimeStyle, - Terminal, - Infineat, - CasioStyleG7710, - }; - - template - struct AppTraits {}; - - template - struct WatchFaceTraits {}; - - template - struct TypeList { - static constexpr size_t Count = sizeof...(As); - }; - - template - struct WatchFaceTypeList { - static constexpr size_t Count = sizeof...(Ws); - }; - - using UserAppTypes = TypeList; - - using UserWatchFaceTypes = WatchFaceTypeList; - - static_assert(UserWatchFaceTypes::Count >= 1); - } -} -- cgit v1.2.3-70-g09d2