summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-15 15:16:32 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-17 11:03:51 +0200
commit631d36fd9821e48b3b3b53ac609e2e50b254d15b (patch)
tree48f8af868a0ff3a66bb8d8435aca497bef093113 /Userland/Applications
parent6e094b8dbe91bea983284c747eaba5c6083eb364 (diff)
downloadserenity-631d36fd9821e48b3b3b53ac609e2e50b254d15b.zip
Everywhere: Add component declarations
This adds component declarations so that users can select to not build certain parts of the OS.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/3DFileViewer/CMakeLists.txt6
-rw-r--r--Userland/Applications/About/CMakeLists.txt6
-rw-r--r--Userland/Applications/AnalogClock/CMakeLists.txt6
-rw-r--r--Userland/Applications/Browser/CMakeLists.txt7
-rw-r--r--Userland/Applications/Calculator/CMakeLists.txt6
-rw-r--r--Userland/Applications/Calendar/CMakeLists.txt5
-rw-r--r--Userland/Applications/CrashReporter/CMakeLists.txt6
-rw-r--r--Userland/Applications/Debugger/CMakeLists.txt5
-rw-r--r--Userland/Applications/DisplaySettings/CMakeLists.txt6
-rw-r--r--Userland/Applications/FileManager/CMakeLists.txt7
-rw-r--r--Userland/Applications/FontEditor/CMakeLists.txt6
-rw-r--r--Userland/Applications/Help/CMakeLists.txt6
-rw-r--r--Userland/Applications/HexEditor/CMakeLists.txt6
-rw-r--r--Userland/Applications/IRCClient/CMakeLists.txt5
-rw-r--r--Userland/Applications/ImageViewer/CMakeLists.txt7
-rw-r--r--Userland/Applications/KeyboardMapper/CMakeLists.txt6
-rw-r--r--Userland/Applications/KeyboardSettings/CMakeLists.txt6
-rw-r--r--Userland/Applications/Magnifier/CMakeLists.txt6
-rw-r--r--Userland/Applications/MouseSettings/CMakeLists.txt6
-rw-r--r--Userland/Applications/PDFViewer/CMakeLists.txt5
-rw-r--r--Userland/Applications/Piano/CMakeLists.txt7
-rw-r--r--Userland/Applications/PixelPaint/CMakeLists.txt7
-rw-r--r--Userland/Applications/Run/CMakeLists.txt6
-rw-r--r--Userland/Applications/SoundPlayer/CMakeLists.txt7
-rw-r--r--Userland/Applications/SpaceAnalyzer/CMakeLists.txt5
-rw-r--r--Userland/Applications/Spreadsheet/CMakeLists.txt5
-rw-r--r--Userland/Applications/SystemMonitor/CMakeLists.txt6
-rw-r--r--Userland/Applications/Terminal/CMakeLists.txt6
-rw-r--r--Userland/Applications/TextEditor/CMakeLists.txt7
-rw-r--r--Userland/Applications/ThemeEditor/CMakeLists.txt5
-rw-r--r--Userland/Applications/VideoPlayer/CMakeLists.txt6
-rw-r--r--Userland/Applications/Welcome/CMakeLists.txt5
32 files changed, 191 insertions, 0 deletions
diff --git a/Userland/Applications/3DFileViewer/CMakeLists.txt b/Userland/Applications/3DFileViewer/CMakeLists.txt
index a5aca6e9c1..88abb914d6 100644
--- a/Userland/Applications/3DFileViewer/CMakeLists.txt
+++ b/Userland/Applications/3DFileViewer/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ 3DFileViewer
+ RECOMMENDED
+ TARGETS 3DFileViewer
+)
+
set(SOURCES
Mesh.cpp
WavefrontOBJLoader.cpp
diff --git a/Userland/Applications/About/CMakeLists.txt b/Userland/Applications/About/CMakeLists.txt
index 0b3023c819..eac81f96d1 100644
--- a/Userland/Applications/About/CMakeLists.txt
+++ b/Userland/Applications/About/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ About
+ REQUIRED
+ TARGETS About
+)
+
set(SOURCES
main.cpp
)
diff --git a/Userland/Applications/AnalogClock/CMakeLists.txt b/Userland/Applications/AnalogClock/CMakeLists.txt
index 1597a97484..a3ab6b2abe 100644
--- a/Userland/Applications/AnalogClock/CMakeLists.txt
+++ b/Userland/Applications/AnalogClock/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ AnalogClock
+ RECOMMENDED
+ TARGETS AnalogClock
+)
+
set(SOURCES
main.cpp
AnalogClock.cpp
diff --git a/Userland/Applications/Browser/CMakeLists.txt b/Userland/Applications/Browser/CMakeLists.txt
index 9622e719b0..e37ceeb885 100644
--- a/Userland/Applications/Browser/CMakeLists.txt
+++ b/Userland/Applications/Browser/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ Browser
+ RECOMMENDED
+ TARGETS Browser
+ DEPENDS ImageDecoder RequestServer WebContent WebSocket
+)
+
compile_gml(BrowserWindow.gml BrowserWindowGML.h browser_window_gml)
compile_gml(EditBookmark.gml EditBookmarkGML.h edit_bookmark_gml)
compile_gml(Tab.gml TabGML.h tab_gml)
diff --git a/Userland/Applications/Calculator/CMakeLists.txt b/Userland/Applications/Calculator/CMakeLists.txt
index d72624c308..966e163910 100644
--- a/Userland/Applications/Calculator/CMakeLists.txt
+++ b/Userland/Applications/Calculator/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ Calculator
+ RECOMMENDED
+ TARGETS Calculator
+)
+
compile_gml(CalculatorWindow.gml CalculatorGML.h calculator_gml)
set(SOURCES
main.cpp
diff --git a/Userland/Applications/Calendar/CMakeLists.txt b/Userland/Applications/Calendar/CMakeLists.txt
index fc0628fec4..256383fa55 100644
--- a/Userland/Applications/Calendar/CMakeLists.txt
+++ b/Userland/Applications/Calendar/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ Calendar
+ TARGETS Calendar
+)
+
compile_gml(CalendarWindow.gml CalendarWindowGML.h calendar_window_gml)
set(SOURCES
diff --git a/Userland/Applications/CrashReporter/CMakeLists.txt b/Userland/Applications/CrashReporter/CMakeLists.txt
index d391aa6b84..e89bce6d9a 100644
--- a/Userland/Applications/CrashReporter/CMakeLists.txt
+++ b/Userland/Applications/CrashReporter/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ CrashReporter
+ REQUIRED
+ TARGETS CrashReporter
+)
+
compile_gml(CrashReporterWindow.gml CrashReporterWindowGML.h crash_reporter_window_gml)
diff --git a/Userland/Applications/Debugger/CMakeLists.txt b/Userland/Applications/Debugger/CMakeLists.txt
index 7e6f200ea4..2548c51ebe 100644
--- a/Userland/Applications/Debugger/CMakeLists.txt
+++ b/Userland/Applications/Debugger/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ Debugger
+ TARGETS Debugger
+)
+
set(SOURCES
main.cpp
)
diff --git a/Userland/Applications/DisplaySettings/CMakeLists.txt b/Userland/Applications/DisplaySettings/CMakeLists.txt
index f794ebcce2..3dae443673 100644
--- a/Userland/Applications/DisplaySettings/CMakeLists.txt
+++ b/Userland/Applications/DisplaySettings/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ DisplaySettings
+ REQUIRED
+ TARGETS DisplaySettings
+)
+
compile_gml(MonitorSettings.gml MonitorSettingsGML.h monitor_settings_window_gml)
compile_gml(BackgroundSettings.gml BackgroundSettingsGML.h background_settings_gml)
compile_gml(FontSettings.gml FontSettingsGML.h font_settings_gml)
diff --git a/Userland/Applications/FileManager/CMakeLists.txt b/Userland/Applications/FileManager/CMakeLists.txt
index 2ee5c116ba..b31ef527a7 100644
--- a/Userland/Applications/FileManager/CMakeLists.txt
+++ b/Userland/Applications/FileManager/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ FileManager
+ REQUIRED
+ TARGETS FileManager
+ DEPENDS FileOperation
+)
+
compile_gml(FileManagerWindow.gml FileManagerWindowGML.h file_manager_window_gml)
compile_gml(FileOperationProgress.gml FileOperationProgressGML.h file_operation_progress_gml)
diff --git a/Userland/Applications/FontEditor/CMakeLists.txt b/Userland/Applications/FontEditor/CMakeLists.txt
index 69f67b12ab..37422c4a81 100644
--- a/Userland/Applications/FontEditor/CMakeLists.txt
+++ b/Userland/Applications/FontEditor/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ FontEditor
+ RECOMMENDED
+ TARGETS FontEditor
+)
+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
compile_gml(FontEditorWindow.gml FontEditorWindowGML.h font_editor_window_gml)
compile_gml(NewFontDialogPage1.gml NewFontDialogPage1GML.h new_font_dialog_page_1_gml)
diff --git a/Userland/Applications/Help/CMakeLists.txt b/Userland/Applications/Help/CMakeLists.txt
index 46a832c044..c804dda3f8 100644
--- a/Userland/Applications/Help/CMakeLists.txt
+++ b/Userland/Applications/Help/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ Help
+ RECOMMENDED
+ TARGETS Help
+)
+
set(SOURCES
History.cpp
main.cpp
diff --git a/Userland/Applications/HexEditor/CMakeLists.txt b/Userland/Applications/HexEditor/CMakeLists.txt
index cfc4cd3cfa..18bad55a26 100644
--- a/Userland/Applications/HexEditor/CMakeLists.txt
+++ b/Userland/Applications/HexEditor/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ HexEditor
+ RECOMMENDED
+ TARGETS HexEditor
+)
+
compile_gml(HexEditorWindow.gml HexEditorWindowGML.h hex_editor_window_gml)
compile_gml(GoToOffsetDialog.gml GoToOffsetDialogGML.h go_to_offset_dialog_gml)
compile_gml(FindDialog.gml FindDialogGML.h find_dialog_gml)
diff --git a/Userland/Applications/IRCClient/CMakeLists.txt b/Userland/Applications/IRCClient/CMakeLists.txt
index 3926bbd5dc..73dd4534ae 100644
--- a/Userland/Applications/IRCClient/CMakeLists.txt
+++ b/Userland/Applications/IRCClient/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ IRCClient
+ TARGETS IRCClient
+)
+
set(SOURCES
IRCAppWindow.cpp
IRCChannel.cpp
diff --git a/Userland/Applications/ImageViewer/CMakeLists.txt b/Userland/Applications/ImageViewer/CMakeLists.txt
index d1ee14ff7a..b4909f1ec5 100644
--- a/Userland/Applications/ImageViewer/CMakeLists.txt
+++ b/Userland/Applications/ImageViewer/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ ImageViewer
+ RECOMMENDED
+ TARGETS ImageViewer
+ DEPENDS ImageDecoder
+)
+
set(SOURCES
main.cpp
ViewWidget.cpp
diff --git a/Userland/Applications/KeyboardMapper/CMakeLists.txt b/Userland/Applications/KeyboardMapper/CMakeLists.txt
index af814c44b2..79b69ef815 100644
--- a/Userland/Applications/KeyboardMapper/CMakeLists.txt
+++ b/Userland/Applications/KeyboardMapper/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ KeyboardMapper
+ RECOMMENDED
+ TARGETS KeyboardMapper
+)
+
set(SOURCES
KeyboardMapperWidget.cpp
KeyButton.cpp
diff --git a/Userland/Applications/KeyboardSettings/CMakeLists.txt b/Userland/Applications/KeyboardSettings/CMakeLists.txt
index 62212cda36..d0a2448329 100644
--- a/Userland/Applications/KeyboardSettings/CMakeLists.txt
+++ b/Userland/Applications/KeyboardSettings/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ KeyboardSettings
+ REQUIRED
+ TARGETS KeyboardSettings
+)
+
set(SOURCES
main.cpp
)
diff --git a/Userland/Applications/Magnifier/CMakeLists.txt b/Userland/Applications/Magnifier/CMakeLists.txt
index 0979947268..0099d771d9 100644
--- a/Userland/Applications/Magnifier/CMakeLists.txt
+++ b/Userland/Applications/Magnifier/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ Magnifier
+ RECOMMENDED
+ TARGETS Magnifier
+)
+
set(SOURCES
MagnifierWidget.cpp
MagnifierWidget.h
diff --git a/Userland/Applications/MouseSettings/CMakeLists.txt b/Userland/Applications/MouseSettings/CMakeLists.txt
index 297d264054..398946ae38 100644
--- a/Userland/Applications/MouseSettings/CMakeLists.txt
+++ b/Userland/Applications/MouseSettings/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ MouseSettings
+ REQUIRED
+ TARGETS MouseSettings
+)
+
compile_gml(MouseSettingsWindow.gml MouseSettingsWindowGML.h mouse_settings_window_gml)
set(SOURCES
diff --git a/Userland/Applications/PDFViewer/CMakeLists.txt b/Userland/Applications/PDFViewer/CMakeLists.txt
index 44bed3e5b2..57f89c5259 100644
--- a/Userland/Applications/PDFViewer/CMakeLists.txt
+++ b/Userland/Applications/PDFViewer/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ PDFViewer
+ TARGETS PDFViewer
+)
+
set(SOURCES
NumericInput.cpp
OutlineModel.cpp
diff --git a/Userland/Applications/Piano/CMakeLists.txt b/Userland/Applications/Piano/CMakeLists.txt
index 382e023c3b..83232f89fb 100644
--- a/Userland/Applications/Piano/CMakeLists.txt
+++ b/Userland/Applications/Piano/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ Piano
+ RECOMMENDED
+ TARGETS Piano
+ DEPENDS AudioServer
+)
+
set(SOURCES
Track.cpp
TrackManager.cpp
diff --git a/Userland/Applications/PixelPaint/CMakeLists.txt b/Userland/Applications/PixelPaint/CMakeLists.txt
index d18d3c47bc..5fba876951 100644
--- a/Userland/Applications/PixelPaint/CMakeLists.txt
+++ b/Userland/Applications/PixelPaint/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ PixelPaint
+ RECOMMENDED
+ TARGETS PixelPaint
+ DEPENDS ImageDecoder
+)
+
compile_gml(PixelPaintWindow.gml PixelPaintWindowGML.h pixel_paint_window_gml)
set(SOURCES
diff --git a/Userland/Applications/Run/CMakeLists.txt b/Userland/Applications/Run/CMakeLists.txt
index 4513f91890..1a4f65d4f5 100644
--- a/Userland/Applications/Run/CMakeLists.txt
+++ b/Userland/Applications/Run/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ Run
+ REQUIRED
+ TARGETS Run
+)
+
compile_gml(Run.gml RunGML.h run_gml)
set(SOURCES
diff --git a/Userland/Applications/SoundPlayer/CMakeLists.txt b/Userland/Applications/SoundPlayer/CMakeLists.txt
index f0870bde57..9fe6266b34 100644
--- a/Userland/Applications/SoundPlayer/CMakeLists.txt
+++ b/Userland/Applications/SoundPlayer/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ SoundPlayer
+ RECOMMENDED
+ TARGETS SoundPlayer
+ DEPENDS AudioServer
+)
+
set(SOURCES
main.cpp
PlaybackManager.cpp
diff --git a/Userland/Applications/SpaceAnalyzer/CMakeLists.txt b/Userland/Applications/SpaceAnalyzer/CMakeLists.txt
index 2b1762aaa3..7b99dff2a8 100644
--- a/Userland/Applications/SpaceAnalyzer/CMakeLists.txt
+++ b/Userland/Applications/SpaceAnalyzer/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ SpaceAnalyzer
+ TARGETS SpaceAnalyzer
+)
+
compile_gml(SpaceAnalyzer.gml SpaceAnalyzerGML.h space_analyzer_gml)
set(SOURCES
diff --git a/Userland/Applications/Spreadsheet/CMakeLists.txt b/Userland/Applications/Spreadsheet/CMakeLists.txt
index 50f0225d95..0f0eeec27d 100644
--- a/Userland/Applications/Spreadsheet/CMakeLists.txt
+++ b/Userland/Applications/Spreadsheet/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ Spreadsheet
+ TARGETS Spreadsheet
+)
+
compile_gml(CondFormatting.gml CondFormattingGML.h cond_fmt_gml)
compile_gml(CondView.gml CondFormattingViewGML.h cond_fmt_view_gml)
compile_gml(csv_import.gml CSVImportGML.h csv_import_gml)
diff --git a/Userland/Applications/SystemMonitor/CMakeLists.txt b/Userland/Applications/SystemMonitor/CMakeLists.txt
index f7db8a61ae..12058c1fa7 100644
--- a/Userland/Applications/SystemMonitor/CMakeLists.txt
+++ b/Userland/Applications/SystemMonitor/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ SystemMonitor
+ REQUIRED
+ TARGETS SystemMonitor Profiler Inspector
+)
+
set(SOURCES
DevicesModel.cpp
GraphWidget.cpp
diff --git a/Userland/Applications/Terminal/CMakeLists.txt b/Userland/Applications/Terminal/CMakeLists.txt
index 1fb969546e..dc274cce98 100644
--- a/Userland/Applications/Terminal/CMakeLists.txt
+++ b/Userland/Applications/Terminal/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ Terminal
+ REQUIRED
+ TARGETS Terminal utmpupdate
+)
+
compile_gml(TerminalSettingsWindow.gml TerminalSettingsWindowGML.h terminal_settings_window_gml)
set(SOURCES
diff --git a/Userland/Applications/TextEditor/CMakeLists.txt b/Userland/Applications/TextEditor/CMakeLists.txt
index 25a0dd3fb8..b68b8b5b15 100644
--- a/Userland/Applications/TextEditor/CMakeLists.txt
+++ b/Userland/Applications/TextEditor/CMakeLists.txt
@@ -1,3 +1,10 @@
+serenity_component(
+ TextEditor
+ RECOMMENDED
+ TARGETS TextEditor
+ DEPENDS ImageDecoder RequestServer WebContent
+)
+
compile_gml(TextEditorWindow.gml TextEditorWindowGML.h text_editor_window_gml)
set(SOURCES
diff --git a/Userland/Applications/ThemeEditor/CMakeLists.txt b/Userland/Applications/ThemeEditor/CMakeLists.txt
index 94ca0e1f3e..bb5a32087f 100644
--- a/Userland/Applications/ThemeEditor/CMakeLists.txt
+++ b/Userland/Applications/ThemeEditor/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ ThemeEditor
+ TARGETS ThemeEditor
+)
+
set(SOURCES
PreviewWidget.cpp
main.cpp
diff --git a/Userland/Applications/VideoPlayer/CMakeLists.txt b/Userland/Applications/VideoPlayer/CMakeLists.txt
index f9f1a7422f..c6f46a7bab 100644
--- a/Userland/Applications/VideoPlayer/CMakeLists.txt
+++ b/Userland/Applications/VideoPlayer/CMakeLists.txt
@@ -1,3 +1,9 @@
+serenity_component(
+ VideoPlayer
+ TARGETS VideoPlayer
+ DEPENDS AudioServer
+)
+
set(SOURCES
main.cpp
)
diff --git a/Userland/Applications/Welcome/CMakeLists.txt b/Userland/Applications/Welcome/CMakeLists.txt
index 8adb2729bf..2b3b8e940a 100644
--- a/Userland/Applications/Welcome/CMakeLists.txt
+++ b/Userland/Applications/Welcome/CMakeLists.txt
@@ -1,3 +1,8 @@
+serenity_component(
+ Welcome
+ TARGETS Welcome
+)
+
compile_gml(WelcomeWindow.gml WelcomeWindowGML.h welcome_window_gml)
set(SOURCES