Browse Source

cmake: Mark source lists in feature files sortable

gxalpha 2 years ago
parent
commit
b3485dd354

+ 5 - 4
UI/cmake/feature-macos-update.cmake

@@ -8,14 +8,15 @@ endif()
 
 target_sources(
   obs-studio
-  PRIVATE update/crypto-helpers.hpp
+  PRIVATE # cmake-format: sortable
           update/crypto-helpers-mac.mm
+          update/crypto-helpers.hpp
+          update/models/branches.hpp
+          update/models/whatsnew.hpp
           update/shared-update.cpp
           update/shared-update.hpp
           update/update-helpers.cpp
-          update/update-helpers.hpp
-          update/models/branches.hpp
-          update/models/whatsnew.hpp)
+          update/update-helpers.hpp)
 
 target_link_libraries(obs-studio PRIVATE "$<LINK_LIBRARY:FRAMEWORK,Security.framework>" nlohmann_json::nlohmann_json
                                          OBS::blake2)

+ 4 - 3
UI/cmake/feature-whatsnew.cmake

@@ -10,13 +10,14 @@ if(ENABLE_WHATSNEW AND TARGET OBS::browser-panels)
 
     target_sources(
       obs-studio
-      PRIVATE update/crypto-helpers-mbedtls.cpp
+      PRIVATE # cmake-format: sortable
+              update/crypto-helpers-mbedtls.cpp
               update/crypto-helpers.hpp
+              update/models/whatsnew.hpp
               update/shared-update.cpp
               update/shared-update.hpp
               update/update-helpers.cpp
-              update/update-helpers.hpp
-              update/models/whatsnew.hpp)
+              update/update-helpers.hpp)
   endif()
 
   target_enable_feature(obs-studio "What's New panel" WHATSNEW_ENABLED)

+ 2 - 1
UI/cmake/feature-youtube.cmake

@@ -4,7 +4,8 @@ if(YOUTUBE_CLIENTID
    AND YOUTUBE_SECRET_HASH MATCHES "(0|[a-fA-F0-9]+)")
   target_sources(
     obs-studio
-    PRIVATE auth-youtube.cpp
+    PRIVATE # cmake-format: sortable
+            auth-youtube.cpp
             auth-youtube.hpp
             window-dock-youtube-app.cpp
             window-dock-youtube-app.hpp