mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17: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
87
Libraries/LibGUI/CMakeLists.txt
Normal file
87
Libraries/LibGUI/CMakeLists.txt
Normal file
|
@ -0,0 +1,87 @@
|
|||
set(SOURCES
|
||||
AboutDialog.cpp
|
||||
AbstractButton.cpp
|
||||
AbstractTableView.cpp
|
||||
AbstractView.cpp
|
||||
Action.cpp
|
||||
ActionGroup.cpp
|
||||
Application.cpp
|
||||
BoxLayout.cpp
|
||||
Button.cpp
|
||||
CheckBox.cpp
|
||||
Clipboard.cpp
|
||||
ColorInput.cpp
|
||||
ColorPicker.cpp
|
||||
ColumnsView.cpp
|
||||
ComboBox.cpp
|
||||
Command.cpp
|
||||
CppLexer.cpp
|
||||
CppSyntaxHighlighter.cpp
|
||||
Desktop.cpp
|
||||
Dialog.cpp
|
||||
DisplayLink.cpp
|
||||
DragOperation.cpp
|
||||
Event.cpp
|
||||
FilePicker.cpp
|
||||
FileSystemModel.cpp
|
||||
FontDatabase.cpp
|
||||
Frame.cpp
|
||||
GroupBox.cpp
|
||||
Icon.cpp
|
||||
IconView.cpp
|
||||
INILexer.cpp
|
||||
INISyntaxHighlighter.cpp
|
||||
InputBox.cpp
|
||||
JsonArrayModel.cpp
|
||||
JSSyntaxHighlighter.cpp
|
||||
Label.cpp
|
||||
Layout.cpp
|
||||
LazyWidget.cpp
|
||||
ListView.cpp
|
||||
MenuBar.cpp
|
||||
Menu.cpp
|
||||
MenuItem.cpp
|
||||
MessageBox.cpp
|
||||
Model.cpp
|
||||
ModelIndex.cpp
|
||||
ModelSelection.cpp
|
||||
MultiView.cpp
|
||||
Notification.cpp
|
||||
Painter.cpp
|
||||
ProgressBar.cpp
|
||||
RadioButton.cpp
|
||||
ResizeCorner.cpp
|
||||
ScrollableWidget.cpp
|
||||
ScrollBar.cpp
|
||||
Shortcut.cpp
|
||||
Slider.cpp
|
||||
SortingProxyModel.cpp
|
||||
SpinBox.cpp
|
||||
Splitter.cpp
|
||||
StackWidget.cpp
|
||||
StatusBar.cpp
|
||||
SyntaxHighlighter.cpp
|
||||
TableView.cpp
|
||||
TabWidget.cpp
|
||||
TextBox.cpp
|
||||
TextDocument.cpp
|
||||
TextEditor.cpp
|
||||
ToolBarContainer.cpp
|
||||
ToolBar.cpp
|
||||
TreeView.cpp
|
||||
UndoStack.cpp
|
||||
Variant.cpp
|
||||
Widget.cpp
|
||||
Window.cpp
|
||||
WindowServerConnection.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
../../Services/WindowServer/WindowClientEndpoint.h
|
||||
../../Services/WindowServer/WindowServerEndpoint.h
|
||||
../../Services/NotificationServer/NotificationClientEndpoint.h
|
||||
../../Services/NotificationServer/NotificationServerEndpoint.h
|
||||
)
|
||||
|
||||
serenity_lib(LibGUI gui)
|
||||
target_link_libraries(LibGUI LibCore LibGfx LibIPC LibThread)
|
|
@ -1,99 +0,0 @@
|
|||
OBJS = \
|
||||
AboutDialog.o \
|
||||
AbstractButton.o \
|
||||
AbstractTableView.o \
|
||||
AbstractView.o \
|
||||
Action.o \
|
||||
ActionGroup.o \
|
||||
Application.o \
|
||||
BoxLayout.o \
|
||||
Button.o \
|
||||
CheckBox.o \
|
||||
Clipboard.o \
|
||||
ColorInput.o \
|
||||
ColorPicker.o \
|
||||
ColumnsView.o \
|
||||
ComboBox.o \
|
||||
Command.o \
|
||||
CppLexer.o \
|
||||
CppSyntaxHighlighter.o \
|
||||
Desktop.o \
|
||||
Dialog.o \
|
||||
DisplayLink.o \
|
||||
DragOperation.o \
|
||||
Event.o \
|
||||
FilePicker.o \
|
||||
FileSystemModel.o \
|
||||
FontDatabase.o \
|
||||
Frame.o \
|
||||
GroupBox.o \
|
||||
Icon.o \
|
||||
IconView.o \
|
||||
InputBox.o \
|
||||
INILexer.o \
|
||||
INISyntaxHighlighter.o \
|
||||
JsonArrayModel.o \
|
||||
JSSyntaxHighlighter.o \
|
||||
Label.o \
|
||||
Layout.o \
|
||||
LazyWidget.o \
|
||||
ListView.o \
|
||||
Menu.o \
|
||||
MenuBar.o \
|
||||
MenuItem.o \
|
||||
MessageBox.o \
|
||||
Model.o \
|
||||
ModelIndex.o \
|
||||
ModelSelection.o \
|
||||
MultiView.o \
|
||||
Notification.o \
|
||||
Painter.o \
|
||||
ProgressBar.o \
|
||||
RadioButton.o \
|
||||
ResizeCorner.o \
|
||||
ScrollBar.o \
|
||||
ScrollableWidget.o \
|
||||
Shortcut.o \
|
||||
Slider.o \
|
||||
SortingProxyModel.o \
|
||||
SpinBox.o \
|
||||
Splitter.o \
|
||||
StackWidget.o \
|
||||
StatusBar.o \
|
||||
SyntaxHighlighter.o \
|
||||
TabWidget.o \
|
||||
TableView.o \
|
||||
TextBox.o \
|
||||
TextDocument.o \
|
||||
TextEditor.o \
|
||||
ToolBar.o \
|
||||
ToolBarContainer.o \
|
||||
TreeView.o \
|
||||
UndoStack.o \
|
||||
Variant.o \
|
||||
Widget.o \
|
||||
Window.o \
|
||||
WindowServerConnection.o
|
||||
|
||||
LIBRARY = libgui.a
|
||||
|
||||
Application.cpp: ../../Services/WindowServer/WindowServerEndpoint.h
|
||||
|
||||
../../Services/WindowServer/WindowServerEndpoint.h:
|
||||
@flock $(dir $(@)) $(MAKE) -C $(dir $(@))
|
||||
|
||||
# HACK: NotificationServer depends on LibGUI so we don't flock for these..
|
||||
Notification.cpp: ../../Services/NotificationServer/NotificationServerEndpoint.h ../../Services/NotificationServer/NotificationClientEndpoint.h
|
||||
|
||||
../../Services/NotificationServer/NotificationServerEndpoint.h:
|
||||
$(MAKE) -C $(dir $(@)) NotificationServerEndpoint.h
|
||||
|
||||
../../Services/NotificationServer/NotificationClientEndpoint.h:
|
||||
$(MAKE) -C $(dir $(@)) NotificationClientEndpoint.h
|
||||
|
||||
install:
|
||||
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibGUI/
|
||||
cp ./*.h $(SERENITY_BASE_DIR)/Root/usr/include/LibGUI/
|
||||
cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/
|
||||
|
||||
include ../../Makefile.common
|
Loading…
Add table
Add a link
Reference in a new issue