diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-06 18:40:06 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-14 20:15:18 +0200 |
commit | 450a2a0f9ce2443bc06445ee018c9860d8cd5fc8 (patch) | |
tree | c124a612ef259b764855af5e33c39e0d09ad4df2 /Libraries/LibGUI | |
parent | 49727ffee424d8c0038ce18b91b0bf0ff33b1a4d (diff) | |
download | serenity-450a2a0f9ce2443bc06445ee018c9860d8cd5fc8.zip |
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r-- | Libraries/LibGUI/CMakeLists.txt | 87 | ||||
-rw-r--r-- | Libraries/LibGUI/Makefile | 99 |
2 files changed, 87 insertions, 99 deletions
diff --git a/Libraries/LibGUI/CMakeLists.txt b/Libraries/LibGUI/CMakeLists.txt new file mode 100644 index 0000000000..3df083b187 --- /dev/null +++ b/Libraries/LibGUI/CMakeLists.txt @@ -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) diff --git a/Libraries/LibGUI/Makefile b/Libraries/LibGUI/Makefile deleted file mode 100644 index bbb1327472..0000000000 --- a/Libraries/LibGUI/Makefile +++ /dev/null @@ -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 |