mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
This commit is contained in:
parent
49727ffee4
commit
450a2a0f9c
236 changed files with 1774 additions and 2337 deletions
12
Applications/About/CMakeLists.txt
Normal file
12
Applications/About/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
execute_process(COMMAND "git rev-parse --short HEAD" OUTPUT_VARIABLE GIT_COMMIT)
|
||||
execute_process(COMMAND "git rev-parse --abbrev-ref HEAD" OUTPUT_VARIABLE GIT_BRANCH)
|
||||
execute_process(COMMAND "git diff-index --quiet HEAD -- && echo tracked || echo untracked" OUTPUT_VARIABLE GIT_CHANGES)
|
||||
|
||||
add_definitions(-DGIT_COMMIT="${GIT_COMMIT}" -DGIT_BRANCH="${GIT_BRANCH}" -DGIT_CHANGES="${GIT_CHANGES}")
|
||||
|
||||
serenity_bin(About)
|
||||
target_link_libraries(About LibGUI)
|
|
@ -1,10 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = About
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Core
|
||||
|
||||
DEFINES += -DGIT_COMMIT=\"`git rev-parse --short HEAD`\" -DGIT_BRANCH=\"`git rev-parse --abbrev-ref HEAD`\"
|
||||
|
||||
include ../../Makefile.common
|
11
Applications/Browser/CMakeLists.txt
Normal file
11
Applications/Browser/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
set(SOURCES
|
||||
BookmarksBarWidget.cpp
|
||||
DownloadWidget.cpp
|
||||
InspectorWidget.cpp
|
||||
main.cpp
|
||||
Tab.cpp
|
||||
WindowActions.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Browser)
|
||||
target_link_libraries(Browser LibWeb LibProtocol LibGUI)
|
|
@ -1,21 +0,0 @@
|
|||
OBJS = \
|
||||
BookmarksBarWidget.o \
|
||||
DownloadWidget.o \
|
||||
InspectorWidget.o \
|
||||
Tab.o \
|
||||
WindowActions.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = Browser
|
||||
|
||||
LIB_DEPS = Web JS Markdown TextCodec GUI Gfx IPC Protocol Core
|
||||
|
||||
main.cpp: ../../Libraries/LibWeb/CSS/PropertyID.h
|
||||
../../Libraries/LibWeb/CSS/PropertyID.h:
|
||||
@flock ../../Libraries/LibWeb $(MAKE) -C ../../Libraries/LibWeb
|
||||
|
||||
main.cpp: ../../Services/ProtocolServer/ProtocolClientEndpoint.h
|
||||
../../Services/ProtocolServer/ProtocolClientEndpoint.h:
|
||||
@flock ../../Services/ProtocolServer $(MAKE) -C $(dir $(@))
|
||||
|
||||
include ../../Makefile.common
|
19
Applications/CMakeLists.txt
Normal file
19
Applications/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
add_subdirectory(About)
|
||||
add_subdirectory(Browser)
|
||||
add_subdirectory(Calculator)
|
||||
add_subdirectory(Calendar)
|
||||
add_subdirectory(Debugger)
|
||||
add_subdirectory(DisplaySettings)
|
||||
add_subdirectory(FileManager)
|
||||
add_subdirectory(FontEditor)
|
||||
add_subdirectory(Help)
|
||||
add_subdirectory(HexEditor)
|
||||
add_subdirectory(IRCClient)
|
||||
add_subdirectory(PaintBrush)
|
||||
add_subdirectory(Piano)
|
||||
add_subdirectory(QuickShow)
|
||||
add_subdirectory(SoundPlayer)
|
||||
add_subdirectory(SystemMonitor)
|
||||
add_subdirectory(Terminal)
|
||||
add_subdirectory(TextEditor)
|
||||
add_subdirectory(Welcome)
|
9
Applications/Calculator/CMakeLists.txt
Normal file
9
Applications/Calculator/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
Calculator.cpp
|
||||
CalculatorWidget.cpp
|
||||
Keypad.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Calculator)
|
||||
target_link_libraries(Calculator LibGUI)
|
|
@ -1,11 +0,0 @@
|
|||
OBJS = \
|
||||
Calculator.o \
|
||||
Keypad.o \
|
||||
CalculatorWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = Calculator
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Core
|
||||
|
||||
include ../../Makefile.common
|
9
Applications/Calendar/CMakeLists.txt
Normal file
9
Applications/Calendar/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
set(SOURCES
|
||||
AddEventDialog.cpp
|
||||
Calendar.cpp
|
||||
CalendarWidget.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Calendar)
|
||||
target_link_libraries(Calendar LibGUI)
|
|
@ -1,12 +0,0 @@
|
|||
OBJS = \
|
||||
Calendar.o \
|
||||
CalendarWidget.o \
|
||||
AddEventDialog.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = Calendar
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Core
|
||||
|
||||
include ../../Makefile.common
|
||||
|
6
Applications/Debugger/CMakeLists.txt
Normal file
6
Applications/Debugger/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Debugger)
|
||||
target_link_libraries(Debugger LibCore LibDebug LibX86 LibLine)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = Debugger
|
||||
|
||||
LIB_DEPS = Core X86 Debug Line
|
||||
|
||||
include ../../Makefile.common
|
8
Applications/DisplaySettings/CMakeLists.txt
Normal file
8
Applications/DisplaySettings/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
set(SOURCES
|
||||
DisplaySettings.cpp
|
||||
main.cpp
|
||||
MonitorWidget.cpp
|
||||
)
|
||||
|
||||
serenity_bin(DisplaySettings)
|
||||
target_link_libraries(DisplaySettings LibGUI)
|
|
@ -1,10 +0,0 @@
|
|||
OBJS = \
|
||||
MonitorWidget.o \
|
||||
DisplaySettings.o \
|
||||
main.o \
|
||||
|
||||
PROGRAM = DisplaySettings
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
9
Applications/FileManager/CMakeLists.txt
Normal file
9
Applications/FileManager/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
set(SOURCES
|
||||
DirectoryView.cpp
|
||||
FileUtils.cpp
|
||||
main.cpp
|
||||
PropertiesDialog.cpp
|
||||
)
|
||||
|
||||
serenity_bin(FileManager)
|
||||
target_link_libraries(FileManager LibGUI LibDesktop)
|
|
@ -1,11 +0,0 @@
|
|||
OBJS = \
|
||||
DirectoryView.o \
|
||||
FileUtils.o \
|
||||
PropertiesDialog.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = FileManager
|
||||
|
||||
LIB_DEPS = GUI Gfx Desktop IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
11
Applications/FontEditor/CMakeLists.txt
Normal file
11
Applications/FontEditor/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(SOURCES
|
||||
FontEditor.cpp
|
||||
GlyphEditorWidget.cpp
|
||||
GlyphMapWidget.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(FontEditor)
|
||||
target_link_libraries(FontEditor LibGUI LibGfx)
|
|
@ -1,11 +0,0 @@
|
|||
OBJS = \
|
||||
FontEditor.o \
|
||||
GlyphMapWidget.o \
|
||||
GlyphEditorWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = FontEditor
|
||||
|
||||
LIB_DEPS = GUI Gfx Core IPC
|
||||
|
||||
include ../../Makefile.common
|
10
Applications/Help/CMakeLists.txt
Normal file
10
Applications/Help/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
set(SOURCES
|
||||
History.cpp
|
||||
main.cpp
|
||||
ManualModel.cpp
|
||||
ManualPageNode.cpp
|
||||
ManualSectionNode.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Help)
|
||||
target_link_libraries(Help LibWeb LibMarkdown LibGUI)
|
|
@ -1,12 +0,0 @@
|
|||
OBJS = \
|
||||
ManualModel.o \
|
||||
ManualSectionNode.o \
|
||||
ManualPageNode.o \
|
||||
History.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = Help
|
||||
|
||||
LIB_DEPS = GUI Web TextCodec JS Gfx Markdown IPC Protocol Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
8
Applications/HexEditor/CMakeLists.txt
Normal file
8
Applications/HexEditor/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
set(SOURCES
|
||||
HexEditor.cpp
|
||||
HexEditorWidget.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(HexEditor)
|
||||
target_link_libraries(HexEditor LibGUI)
|
|
@ -1,10 +0,0 @@
|
|||
OBJS = \
|
||||
HexEditor.o \
|
||||
HexEditorWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = HexEditor
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
14
Applications/IRCClient/CMakeLists.txt
Normal file
14
Applications/IRCClient/CMakeLists.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
set(SOURCES
|
||||
IRCAppWindow.cpp
|
||||
IRCChannel.cpp
|
||||
IRCChannelMemberListModel.cpp
|
||||
IRCClient.cpp
|
||||
IRCLogBuffer.cpp
|
||||
IRCQuery.cpp
|
||||
IRCWindow.cpp
|
||||
IRCWindowListModel.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(IRCClient)
|
||||
target_link_libraries(IRCClient LibWeb LibGUI)
|
|
@ -1,16 +0,0 @@
|
|||
OBJS = \
|
||||
IRCClient.o \
|
||||
IRCChannel.o \
|
||||
IRCQuery.o \
|
||||
IRCLogBuffer.o \
|
||||
IRCAppWindow.o \
|
||||
IRCWindow.o \
|
||||
IRCWindowListModel.o \
|
||||
IRCChannelMemberListModel.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = IRCClient
|
||||
|
||||
LIB_DEPS = Web TextCodec JS Markdown GUI Gfx Protocol IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
|
@ -1,3 +0,0 @@
|
|||
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
|
||||
|
||||
include ../Makefile.subdir
|
23
Applications/PaintBrush/CMakeLists.txt
Normal file
23
Applications/PaintBrush/CMakeLists.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
set(SOURCES
|
||||
BucketTool.cpp
|
||||
CreateNewLayerDialog.cpp
|
||||
EllipseTool.cpp
|
||||
EraseTool.cpp
|
||||
Image.cpp
|
||||
ImageEditor.cpp
|
||||
Layer.cpp
|
||||
LayerModel.cpp
|
||||
LineTool.cpp
|
||||
main.cpp
|
||||
MoveTool.cpp
|
||||
PaletteWidget.cpp
|
||||
PenTool.cpp
|
||||
PickerTool.cpp
|
||||
RectangleTool.cpp
|
||||
SprayTool.cpp
|
||||
ToolboxWidget.cpp
|
||||
Tool.cpp
|
||||
)
|
||||
|
||||
serenity_bin(PaintBrush)
|
||||
target_link_libraries(PaintBrush LibGUI LibGfx)
|
|
@ -1,25 +0,0 @@
|
|||
OBJS = \
|
||||
BucketTool.o \
|
||||
CreateNewLayerDialog.o \
|
||||
EllipseTool.o \
|
||||
EraseTool.o \
|
||||
Image.o \
|
||||
ImageEditor.o \
|
||||
Layer.o \
|
||||
LayerModel.o \
|
||||
LineTool.o \
|
||||
MoveTool.o \
|
||||
PaletteWidget.o \
|
||||
PenTool.o \
|
||||
PickerTool.o \
|
||||
RectangleTool.o \
|
||||
SprayTool.o \
|
||||
Tool.o \
|
||||
ToolboxWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = PaintBrush
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
13
Applications/Piano/CMakeLists.txt
Normal file
13
Applications/Piano/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
set(SOURCES
|
||||
AudioEngine.cpp
|
||||
KeysWidget.cpp
|
||||
KnobsWidget.cpp
|
||||
main.cpp
|
||||
MainWidget.cpp
|
||||
RollWidget.cpp
|
||||
SamplerWidget.cpp
|
||||
WaveWidget.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Piano)
|
||||
target_link_libraries(Piano LibAudio LibGUI)
|
|
@ -1,15 +0,0 @@
|
|||
OBJS = \
|
||||
AudioEngine.o \
|
||||
MainWidget.o \
|
||||
WaveWidget.o \
|
||||
RollWidget.o \
|
||||
SamplerWidget.o \
|
||||
KeysWidget.o \
|
||||
KnobsWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = Piano
|
||||
|
||||
LIB_DEPS = GUI Gfx Audio IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
7
Applications/QuickShow/CMakeLists.txt
Normal file
7
Applications/QuickShow/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
QSWidget.cpp
|
||||
)
|
||||
|
||||
serenity_bin(QuickShow)
|
||||
target_link_libraries(QuickShow LibGUI LibGfx)
|
|
@ -1,9 +0,0 @@
|
|||
OBJS = \
|
||||
QSWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = QuickShow
|
||||
|
||||
LIB_DEPS = GUI Gfx Protocol IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
9
Applications/SoundPlayer/CMakeLists.txt
Normal file
9
Applications/SoundPlayer/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
PlaybackManager.cpp
|
||||
SampleWidget.cpp
|
||||
SoundPlayerWidget.cpp
|
||||
)
|
||||
|
||||
serenity_bin(SoundPlayer)
|
||||
target_link_libraries(SoundPlayer LibAudio LibGUI)
|
|
@ -1,11 +0,0 @@
|
|||
OBJS = \
|
||||
PlaybackManager.o \
|
||||
SampleWidget.o \
|
||||
SoundPlayerWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = SoundPlayer
|
||||
|
||||
LIB_DEPS = GUI Gfx Audio IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
16
Applications/SystemMonitor/CMakeLists.txt
Normal file
16
Applications/SystemMonitor/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
set(SOURCES
|
||||
DevicesModel.cpp
|
||||
GraphWidget.cpp
|
||||
main.cpp
|
||||
MemoryStatsWidget.cpp
|
||||
NetworkStatisticsWidget.cpp
|
||||
ProcessFileDescriptorMapWidget.cpp
|
||||
ProcessMemoryMapWidget.cpp
|
||||
ProcessModel.cpp
|
||||
ProcessStacksWidget.cpp
|
||||
ProcessTableView.cpp
|
||||
ProcessUnveiledPathsWidget.cpp
|
||||
)
|
||||
|
||||
serenity_bin(SystemMonitor)
|
||||
target_link_libraries(SystemMonitor LibGUI LibPCIDB)
|
|
@ -1,18 +0,0 @@
|
|||
OBJS = \
|
||||
ProcessModel.o \
|
||||
DevicesModel.o \
|
||||
ProcessTableView.o \
|
||||
MemoryStatsWidget.o \
|
||||
GraphWidget.o \
|
||||
ProcessStacksWidget.o \
|
||||
ProcessMemoryMapWidget.o \
|
||||
ProcessFileDescriptorMapWidget.o \
|
||||
NetworkStatisticsWidget.o \
|
||||
ProcessUnveiledPathsWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = SystemMonitor
|
||||
|
||||
LIB_DEPS = GUI Gfx Protocol PCIDB IPC Thread Pthread Core
|
||||
|
||||
include ../../Makefile.common
|
6
Applications/Terminal/CMakeLists.txt
Normal file
6
Applications/Terminal/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Terminal)
|
||||
target_link_libraries(Terminal LibGUI LibVT)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = Terminal
|
||||
|
||||
LIB_DEPS = GUI Gfx VT Desktop IPC Protocol Core
|
||||
|
||||
include ../../Makefile.common
|
7
Applications/TextEditor/CMakeLists.txt
Normal file
7
Applications/TextEditor/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
TextEditorWidget.cpp
|
||||
)
|
||||
|
||||
serenity_bin(TextEditor)
|
||||
target_link_libraries(TextEditor LibWeb LibMarkdown LibGUI)
|
|
@ -1,9 +0,0 @@
|
|||
OBJS = \
|
||||
TextEditorWidget.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = TextEditor
|
||||
|
||||
LIB_DEPS = Web TextCodec Markdown GUI Gfx VT Protocol IPC Thread Pthread Core JS
|
||||
|
||||
include ../../Makefile.common
|
9
Applications/Welcome/CMakeLists.txt
Normal file
9
Applications/Welcome/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
set(SOURCES
|
||||
BackgroundWidget.cpp
|
||||
main.cpp
|
||||
TextWidget.cpp
|
||||
UnuncheckableButton.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Welcome)
|
||||
target_link_libraries(Welcome LibGUI)
|
|
@ -1,11 +0,0 @@
|
|||
OBJS = \
|
||||
main.o \
|
||||
TextWidget.o \
|
||||
BackgroundWidget.o \
|
||||
UnuncheckableButton.o
|
||||
|
||||
PROGRAM = Welcome
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Core
|
||||
|
||||
include ../../Makefile.common
|
Loading…
Add table
Add a link
Reference in a new issue