1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00
serenity/Libraries/LibGUI/Makefile
Andreas Kling 183f7c9830 LibGUI: Add GLazyWidget, a convenience widget for lazily-built UI's
Here's how you can use this to speed up startup time:

    auto widget = GLazyWidget::construct();
    widget->on_first_show = [](auto& self) {
        self.set_layout(...);
        ...
    };

Basically, it allows you to delay building the widget subtree until
it's shown for the first time.
2019-10-02 20:24:29 +02:00

75 lines
1.3 KiB
Makefile

include ../../Makefile.common
OBJS = \
GPainter.o \
GButton.o \
GCheckBox.o \
GEventLoop.o \
GLabel.o \
GTextBox.o \
GScrollBar.o \
GStatusBar.o \
GWidget.o \
GLayout.o \
GBoxLayout.o \
GMenuBar.o \
GMenu.o \
GMenuItem.o \
GApplication.o \
GAction.o \
GActionGroup.o \
GFontDatabase.o \
GToolBar.o \
GTableView.o \
GModel.o \
GVariant.o \
GShortcut.o \
GTextEditor.o \
GClipboard.o \
GSortingProxyModel.o \
GStackWidget.o \
GScrollableWidget.o \
GMessageBox.o \
GInputBox.o \
GDialog.o \
GDesktop.o \
GProgressBar.o \
GAbstractView.o \
GItemView.o \
GIcon.o \
GFrame.o \
GTreeView.o \
GFileSystemModel.o \
GFilePicker.o \
GDirectoryModel.o \
GSplitter.o \
GSpinBox.o \
GGroupBox.o \
GSlider.o \
GResizeCorner.o \
GTabWidget.o \
GRadioButton.o \
GAbstractButton.o \
GListView.o \
GComboBox.o \
GJsonArrayModel.o \
GAboutDialog.o \
GModelSelection.o \
GLazyWidget.o \
GWindow.o
LIBRARY = libgui.a
DEFINES += -DUSERLAND
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
@echo "LIB $@"; $(AR) rcs $@ $(OBJS)
.cpp.o:
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
-include $(OBJS:%.o=%.d)
clean:
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d