diff --git a/Applications/IRCClient/IRCLogBuffer.h b/Applications/IRCClient/IRCLogBuffer.h index 7eecec4c861..fef853d6b7c 100644 --- a/Applications/IRCClient/IRCLogBuffer.h +++ b/Applications/IRCClient/IRCLogBuffer.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include class IRCLogBufferModel; diff --git a/Applications/IRCClient/IRCLogBufferModel.cpp b/Applications/IRCClient/IRCLogBufferModel.cpp index 8805b109182..db14ba49cd6 100644 --- a/Applications/IRCClient/IRCLogBufferModel.cpp +++ b/Applications/IRCClient/IRCLogBufferModel.cpp @@ -1,6 +1,6 @@ #include "IRCLogBufferModel.h" #include "IRCLogBuffer.h" -#include +#include #include #include diff --git a/Applications/Launcher/main.cpp b/Applications/Launcher/main.cpp index 464763a79b1..e9b1f97f049 100644 --- a/Applications/Launcher/main.cpp +++ b/Applications/Launcher/main.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Applications/Makefile.common b/Applications/Makefile.common index 6e36e0b8c50..845caa1727c 100755 --- a/Applications/Makefile.common +++ b/Applications/Makefile.common @@ -3,7 +3,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -laudio -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Applications/PaintBrush/BucketTool.cpp b/Applications/PaintBrush/BucketTool.cpp index 5f0173ab4ea..67c629c3926 100644 --- a/Applications/PaintBrush/BucketTool.cpp +++ b/Applications/PaintBrush/BucketTool.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include BucketTool::BucketTool() diff --git a/Applications/PaintBrush/EraseTool.h b/Applications/PaintBrush/EraseTool.h index 3616edf324a..d2b031e0ecf 100644 --- a/Applications/PaintBrush/EraseTool.h +++ b/Applications/PaintBrush/EraseTool.h @@ -1,7 +1,7 @@ #pragma once #include "Tool.h" -#include +#include class GMenu; diff --git a/Applications/PaintBrush/PaintableWidget.cpp b/Applications/PaintBrush/PaintableWidget.cpp index fee2171fcbe..613167beb25 100644 --- a/Applications/PaintBrush/PaintableWidget.cpp +++ b/Applications/PaintBrush/PaintableWidget.cpp @@ -1,7 +1,7 @@ #include "PaintableWidget.h" #include "Tool.h" #include -#include +#include static PaintableWidget* s_the; diff --git a/Applications/PaintBrush/PenTool.h b/Applications/PaintBrush/PenTool.h index 2ef8f7c7aa9..3020285e097 100644 --- a/Applications/PaintBrush/PenTool.h +++ b/Applications/PaintBrush/PenTool.h @@ -1,7 +1,7 @@ #pragma once #include "Tool.h" -#include +#include class GMenu; diff --git a/Applications/PaintBrush/PickerTool.cpp b/Applications/PaintBrush/PickerTool.cpp index 4e2433a3742..9077f54f562 100644 --- a/Applications/PaintBrush/PickerTool.cpp +++ b/Applications/PaintBrush/PickerTool.cpp @@ -1,5 +1,5 @@ #include "PickerTool.h" -#include +#include PickerTool::PickerTool() { diff --git a/Applications/PaintBrush/SprayTool.cpp b/Applications/PaintBrush/SprayTool.cpp index e5745153541..0ec2cd6bc3d 100644 --- a/Applications/PaintBrush/SprayTool.cpp +++ b/Applications/PaintBrush/SprayTool.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include diff --git a/Applications/PaintBrush/ToolboxWidget.cpp b/Applications/PaintBrush/ToolboxWidget.cpp index b4a97187e45..07475cd5041 100644 --- a/Applications/PaintBrush/ToolboxWidget.cpp +++ b/Applications/PaintBrush/ToolboxWidget.cpp @@ -7,7 +7,7 @@ #include "EraseTool.h" #include #include -#include +#include class ToolButton final : public GButton { public: diff --git a/Applications/PaintBrush/main.cpp b/Applications/PaintBrush/main.cpp index c5637da19fe..19026e7f32f 100644 --- a/Applications/PaintBrush/main.cpp +++ b/Applications/PaintBrush/main.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include int main(int argc, char** argv) { diff --git a/Applications/Piano/Makefile b/Applications/Piano/Makefile index 1e362554dfe..1e194d9b4a0 100644 --- a/Applications/Piano/Makefile +++ b/Applications/Piano/Makefile @@ -6,18 +6,4 @@ OBJS = \ APP = Piano -DEFINES += -DUSERLAND - -all: $(APP) - -$(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc -laudio - -.cpp.o: - @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< - --include $(OBJS:%.o=%.d) - -clean: - @echo "CLEAN"; rm -f $(APP) $(OBJS) *.d - +include ../Makefile.common diff --git a/Applications/Piano/PianoWidget.cpp b/Applications/Piano/PianoWidget.cpp index 294e0e58ce6..ddeed872a04 100644 --- a/Applications/Piano/PianoWidget.cpp +++ b/Applications/Piano/PianoWidget.cpp @@ -1,7 +1,7 @@ #include "PianoWidget.h" #include #include -#include +#include #include PianoWidget::PianoWidget() diff --git a/Applications/ProcessManager/MemoryStatsWidget.cpp b/Applications/ProcessManager/MemoryStatsWidget.cpp index 433b0b7c9bf..a31b0746a94 100644 --- a/Applications/ProcessManager/MemoryStatsWidget.cpp +++ b/Applications/ProcessManager/MemoryStatsWidget.cpp @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include diff --git a/Applications/QuickShow/QSWidget.cpp b/Applications/QuickShow/QSWidget.cpp index 74bc2ef457b..cd0b2382cce 100644 --- a/Applications/QuickShow/QSWidget.cpp +++ b/Applications/QuickShow/QSWidget.cpp @@ -1,6 +1,6 @@ #include "QSWidget.h" #include -#include +#include QSWidget::QSWidget(GWidget* parent) : GFrame(parent) diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp index adb34b84690..47040ff21aa 100644 --- a/Applications/QuickShow/main.cpp +++ b/Applications/QuickShow/main.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include int main(int argc, char** argv) diff --git a/Applications/Taskbar/WindowList.h b/Applications/Taskbar/WindowList.h index 406ec52e877..d706d27eb44 100644 --- a/Applications/Taskbar/WindowList.h +++ b/Applications/Taskbar/WindowList.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include class Window { public: diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp index 6ead0cb05c2..41019778fb0 100644 --- a/Applications/Terminal/Terminal.cpp +++ b/Applications/Terminal/Terminal.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Applications/Terminal/Terminal.h b/Applications/Terminal/Terminal.h index 48b574ba631..69e94a3c1c1 100644 --- a/Applications/Terminal/Terminal.h +++ b/Applications/Terminal/Terminal.h @@ -7,8 +7,8 @@ #include #include #include -#include -#include +#include +#include class Font; diff --git a/Demos/Fire/Fire.cpp b/Demos/Fire/Fire.cpp index 9dc80f300b1..de223b2b26a 100644 --- a/Demos/Fire/Fire.cpp +++ b/Demos/Fire/Fire.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Demos/Fire/Makefile b/Demos/Fire/Makefile index 2bfd381499f..0d5740cfb7f 100644 --- a/Demos/Fire/Makefile +++ b/Demos/Fire/Makefile @@ -10,7 +10,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Demos/HelloWorld/Makefile b/Demos/HelloWorld/Makefile index 1c2055b8fdb..80eaa7a4f49 100644 --- a/Demos/HelloWorld/Makefile +++ b/Demos/HelloWorld/Makefile @@ -10,7 +10,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Demos/HelloWorld2/Makefile b/Demos/HelloWorld2/Makefile index e80c4213686..f056a27a1d9 100644 --- a/Demos/HelloWorld2/Makefile +++ b/Demos/HelloWorld2/Makefile @@ -15,7 +15,7 @@ UI_HelloWorld2.h: HelloWorld2.frm ../../DevTools/FormCompiler/FormCompiler $< > $@ $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Demos/PaintTest/Makefile b/Demos/PaintTest/Makefile index 33edbaa7e5a..eacfb875ce7 100644 --- a/Demos/PaintTest/Makefile +++ b/Demos/PaintTest/Makefile @@ -10,7 +10,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Demos/PaintTest/main.cpp b/Demos/PaintTest/main.cpp index a48395cdd07..971ae2ed60c 100644 --- a/Demos/PaintTest/main.cpp +++ b/Demos/PaintTest/main.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include class TestWidget final : public GWidget { public: diff --git a/Demos/WidgetGallery/Makefile b/Demos/WidgetGallery/Makefile index f7f87cbc57c..3dea837d1e9 100644 --- a/Demos/WidgetGallery/Makefile +++ b/Demos/WidgetGallery/Makefile @@ -10,7 +10,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/DevTools/VisualBuilder/Makefile b/DevTools/VisualBuilder/Makefile index e2c88426f84..45a7b94c11f 100644 --- a/DevTools/VisualBuilder/Makefile +++ b/DevTools/VisualBuilder/Makefile @@ -16,7 +16,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/DevTools/VisualBuilder/VBWidget.h b/DevTools/VisualBuilder/VBWidget.h index c2520bab88f..d341dbd033b 100644 --- a/DevTools/VisualBuilder/VBWidget.h +++ b/DevTools/VisualBuilder/VBWidget.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include class GPainter; class GVariant; diff --git a/DevTools/VisualBuilder/VBWidgetPropertyModel.cpp b/DevTools/VisualBuilder/VBWidgetPropertyModel.cpp index eaed1184e3c..608f7f85021 100644 --- a/DevTools/VisualBuilder/VBWidgetPropertyModel.cpp +++ b/DevTools/VisualBuilder/VBWidgetPropertyModel.cpp @@ -1,7 +1,7 @@ #include "VBWidgetPropertyModel.h" #include "VBProperty.h" #include "VBWidget.h" -#include +#include VBWidgetPropertyModel::VBWidgetPropertyModel(VBWidget& widget) : m_widget(widget) diff --git a/Games/Minesweeper/Makefile b/Games/Minesweeper/Makefile index 81e3948df05..360d9a8bc3a 100644 --- a/Games/Minesweeper/Makefile +++ b/Games/Minesweeper/Makefile @@ -11,7 +11,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Games/Snake/Makefile b/Games/Snake/Makefile index f0af9d7cef4..3c3e15e437b 100644 --- a/Games/Snake/Makefile +++ b/Games/Snake/Makefile @@ -11,7 +11,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lcore -lc .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Games/Snake/SnakeGame.cpp b/Games/Snake/SnakeGame.cpp index 72298951594..ed388926eeb 100644 --- a/Games/Snake/SnakeGame.cpp +++ b/Games/Snake/SnakeGame.cpp @@ -1,7 +1,7 @@ #include "SnakeGame.h" #include #include -#include +#include #include #include diff --git a/Kernel/Devices/BXVGADevice.h b/Kernel/Devices/BXVGADevice.h index 3e93e94d322..18d35f6fbf4 100644 --- a/Kernel/Devices/BXVGADevice.h +++ b/Kernel/Devices/BXVGADevice.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include class BXVGADevice final : public BlockDevice { AK_MAKE_ETERNAL diff --git a/Kernel/makeall.sh b/Kernel/makeall.sh index 26be17f250b..a4e88a02c6a 100755 --- a/Kernel/makeall.sh +++ b/Kernel/makeall.sh @@ -18,6 +18,7 @@ build_targets="$build_targets ../DevTools/FormCompiler" build_targets="$build_targets ../Libraries/LibC" build_targets="$build_targets ../Libraries/LibM" build_targets="$build_targets ../Libraries/LibCore" +build_targets="$build_targets ../Libraries/LibDraw" build_targets="$build_targets ../Libraries/LibAudio" build_targets="$build_targets ../Servers/SystemServer" build_targets="$build_targets ../Servers/LookupServer" @@ -64,7 +65,6 @@ for targ in $build_targets; do done # has no need to build separately, but install headers. -(cd ../SharedGraphics && ./install.sh) (cd ../AK && ./install.sh) sudo -E ./build-image-qemu.sh diff --git a/Libraries/LibCore/CConfigFile.h b/Libraries/LibCore/CConfigFile.h index 1816ba53c90..7452d3d1d94 100644 --- a/Libraries/LibCore/CConfigFile.h +++ b/Libraries/LibCore/CConfigFile.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include class CConfigFile : public RefCounted { public: diff --git a/SharedGraphics/CharacterBitmap.cpp b/Libraries/LibDraw/CharacterBitmap.cpp similarity index 100% rename from SharedGraphics/CharacterBitmap.cpp rename to Libraries/LibDraw/CharacterBitmap.cpp diff --git a/SharedGraphics/CharacterBitmap.h b/Libraries/LibDraw/CharacterBitmap.h similarity index 100% rename from SharedGraphics/CharacterBitmap.h rename to Libraries/LibDraw/CharacterBitmap.h diff --git a/SharedGraphics/Color.cpp b/Libraries/LibDraw/Color.cpp similarity index 100% rename from SharedGraphics/Color.cpp rename to Libraries/LibDraw/Color.cpp diff --git a/SharedGraphics/Color.h b/Libraries/LibDraw/Color.h similarity index 100% rename from SharedGraphics/Color.h rename to Libraries/LibDraw/Color.h diff --git a/SharedGraphics/DisjointRectSet.cpp b/Libraries/LibDraw/DisjointRectSet.cpp similarity index 96% rename from SharedGraphics/DisjointRectSet.cpp rename to Libraries/LibDraw/DisjointRectSet.cpp index c3eacf275ac..435fe155ab7 100644 --- a/SharedGraphics/DisjointRectSet.cpp +++ b/Libraries/LibDraw/DisjointRectSet.cpp @@ -1,4 +1,4 @@ -#include +#include void DisjointRectSet::add(const Rect& new_rect) { diff --git a/SharedGraphics/DisjointRectSet.h b/Libraries/LibDraw/DisjointRectSet.h similarity index 94% rename from SharedGraphics/DisjointRectSet.h rename to Libraries/LibDraw/DisjointRectSet.h index 197cb4c81b3..44aabcfb2c5 100644 --- a/SharedGraphics/DisjointRectSet.h +++ b/Libraries/LibDraw/DisjointRectSet.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include class DisjointRectSet { public: diff --git a/SharedGraphics/Font.cpp b/Libraries/LibDraw/Font.cpp similarity index 100% rename from SharedGraphics/Font.cpp rename to Libraries/LibDraw/Font.cpp diff --git a/SharedGraphics/Font.h b/Libraries/LibDraw/Font.h similarity index 98% rename from SharedGraphics/Font.h rename to Libraries/LibDraw/Font.h index 83ae396dcb3..3bda8121590 100644 --- a/SharedGraphics/Font.h +++ b/Libraries/LibDraw/Font.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include // FIXME: Make a MutableGlyphBitmap buddy class for FontEditor instead? class GlyphBitmap { diff --git a/SharedGraphics/GraphicsBitmap.cpp b/Libraries/LibDraw/GraphicsBitmap.cpp similarity index 97% rename from SharedGraphics/GraphicsBitmap.cpp rename to Libraries/LibDraw/GraphicsBitmap.cpp index 46fdf5777e3..354c94eb661 100644 --- a/SharedGraphics/GraphicsBitmap.cpp +++ b/Libraries/LibDraw/GraphicsBitmap.cpp @@ -1,6 +1,6 @@ #include -#include -#include +#include +#include #include #include #include diff --git a/SharedGraphics/GraphicsBitmap.h b/Libraries/LibDraw/GraphicsBitmap.h similarity index 100% rename from SharedGraphics/GraphicsBitmap.h rename to Libraries/LibDraw/GraphicsBitmap.h diff --git a/Libraries/LibDraw/Makefile b/Libraries/LibDraw/Makefile new file mode 100644 index 00000000000..ff2839f0b8a --- /dev/null +++ b/Libraries/LibDraw/Makefile @@ -0,0 +1,35 @@ +include ../../Makefile.common + +OBJS = \ + CharacterBitmap.o \ + Color.o \ + DisjointRectSet.o \ + Font.o \ + GraphicsBitmap.o \ + Painter.o \ + PNGLoader.o \ + Rect.o \ + StylePainter.o + +LIBRARY = libdraw.a +DEFINES += -DUSERLAND + +all: $(LIBRARY) + +$(LIBRARY): $(OBJS) + @echo "LIB $@"; $(AR) rcs $@ $(OBJS) $(LIBS) + +.cpp.o: + @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< + +-include $(OBJS:%.o=%.d) + +clean: + @echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d + +install: $(LIBRARY) + mkdir -p ../../Root/usr/include/LibGfx + # Copy headers + rsync -r -a --include '*/' --include '*.h' --exclude '*' . ../../Root/usr/include/LibGfx + # Install the library + cp $(LIBRARY) ../../Root/usr/lib diff --git a/SharedGraphics/PNGLoader.cpp b/Libraries/LibDraw/PNGLoader.cpp similarity index 99% rename from SharedGraphics/PNGLoader.cpp rename to Libraries/LibDraw/PNGLoader.cpp index b6fecfb8903..6f863a4c9c4 100644 --- a/SharedGraphics/PNGLoader.cpp +++ b/Libraries/LibDraw/PNGLoader.cpp @@ -1,8 +1,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/SharedGraphics/PNGLoader.h b/Libraries/LibDraw/PNGLoader.h similarity index 62% rename from SharedGraphics/PNGLoader.h rename to Libraries/LibDraw/PNGLoader.h index 3fa06bd927a..aff9eac8dd0 100644 --- a/SharedGraphics/PNGLoader.h +++ b/Libraries/LibDraw/PNGLoader.h @@ -1,5 +1,5 @@ #pragma once -#include +#include RefPtr load_png(const StringView& path); diff --git a/SharedGraphics/Painter.cpp b/Libraries/LibDraw/Painter.cpp similarity index 99% rename from SharedGraphics/Painter.cpp rename to Libraries/LibDraw/Painter.cpp index 0676d47da3e..de0ea14f9c5 100644 --- a/SharedGraphics/Painter.cpp +++ b/Libraries/LibDraw/Painter.cpp @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/SharedGraphics/Painter.h b/Libraries/LibDraw/Painter.h similarity index 97% rename from SharedGraphics/Painter.h rename to Libraries/LibDraw/Painter.h index df3d714e76c..3d16905b202 100644 --- a/SharedGraphics/Painter.h +++ b/Libraries/LibDraw/Painter.h @@ -5,8 +5,8 @@ #include "Rect.h" #include "Size.h" #include -#include -#include +#include +#include class CharacterBitmap; class GlyphBitmap; diff --git a/SharedGraphics/Point.h b/Libraries/LibDraw/Point.h similarity index 100% rename from SharedGraphics/Point.h rename to Libraries/LibDraw/Point.h diff --git a/SharedGraphics/Rect.cpp b/Libraries/LibDraw/Rect.cpp similarity index 100% rename from SharedGraphics/Rect.cpp rename to Libraries/LibDraw/Rect.cpp diff --git a/SharedGraphics/Rect.h b/Libraries/LibDraw/Rect.h similarity index 98% rename from SharedGraphics/Rect.h rename to Libraries/LibDraw/Rect.h index c9a7ededf37..c3ae82de1c5 100644 --- a/SharedGraphics/Rect.h +++ b/Libraries/LibDraw/Rect.h @@ -2,9 +2,9 @@ #include #include -#include -#include -#include +#include +#include +#include struct WSAPI_Rect; diff --git a/SharedGraphics/Size.h b/Libraries/LibDraw/Size.h similarity index 100% rename from SharedGraphics/Size.h rename to Libraries/LibDraw/Size.h diff --git a/SharedGraphics/StylePainter.cpp b/Libraries/LibDraw/StylePainter.cpp similarity index 99% rename from SharedGraphics/StylePainter.cpp rename to Libraries/LibDraw/StylePainter.cpp index 019167dcfd0..aa68e5bea3a 100644 --- a/SharedGraphics/StylePainter.cpp +++ b/Libraries/LibDraw/StylePainter.cpp @@ -1,5 +1,5 @@ -#include -#include +#include +#include void StylePainter::paint_tab_button(Painter& painter, const Rect& rect, bool active, bool hovered, bool enabled) { diff --git a/SharedGraphics/StylePainter.h b/Libraries/LibDraw/StylePainter.h similarity index 100% rename from SharedGraphics/StylePainter.h rename to Libraries/LibDraw/StylePainter.h diff --git a/SharedGraphics/TextAlignment.h b/Libraries/LibDraw/TextAlignment.h similarity index 100% rename from SharedGraphics/TextAlignment.h rename to Libraries/LibDraw/TextAlignment.h diff --git a/SharedGraphics/TextElision.h b/Libraries/LibDraw/TextElision.h similarity index 100% rename from SharedGraphics/TextElision.h rename to Libraries/LibDraw/TextElision.h diff --git a/Libraries/LibDraw/install.sh b/Libraries/LibDraw/install.sh new file mode 100755 index 00000000000..33f40e68704 --- /dev/null +++ b/Libraries/LibDraw/install.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mkdir -p ../Root/usr/include/LibGfx/ +cp *.h ../Root/usr/include/LibGfx/ diff --git a/SharedGraphics/puff.c b/Libraries/LibDraw/puff.c similarity index 100% rename from SharedGraphics/puff.c rename to Libraries/LibDraw/puff.c diff --git a/SharedGraphics/puff.h b/Libraries/LibDraw/puff.h similarity index 100% rename from SharedGraphics/puff.h rename to Libraries/LibDraw/puff.h diff --git a/Libraries/LibGUI/GAbstractButton.h b/Libraries/LibGUI/GAbstractButton.h index 386bfc49604..6e5f77e19a1 100644 --- a/Libraries/LibGUI/GAbstractButton.h +++ b/Libraries/LibGUI/GAbstractButton.h @@ -2,7 +2,7 @@ #include #include -#include +#include class GPainter; diff --git a/Libraries/LibGUI/GAction.h b/Libraries/LibGUI/GAction.h index 867c41e213a..eedb597d61b 100644 --- a/Libraries/LibGUI/GAction.h +++ b/Libraries/LibGUI/GAction.h @@ -9,7 +9,7 @@ #include #include #include -#include +#include class GActionGroup; class GButton; diff --git a/Libraries/LibGUI/GButton.cpp b/Libraries/LibGUI/GButton.cpp index 3274d4992fc..d94fe81e744 100644 --- a/Libraries/LibGUI/GButton.cpp +++ b/Libraries/LibGUI/GButton.cpp @@ -4,7 +4,7 @@ #include #include #include -#include +#include GButton::GButton(GWidget* parent) : GAbstractButton(parent) diff --git a/Libraries/LibGUI/GButton.h b/Libraries/LibGUI/GButton.h index acd7d7298cd..c5724c0f018 100644 --- a/Libraries/LibGUI/GButton.h +++ b/Libraries/LibGUI/GButton.h @@ -3,9 +3,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include class GAction; diff --git a/Libraries/LibGUI/GCheckBox.cpp b/Libraries/LibGUI/GCheckBox.cpp index 2bd5067bc93..bca4cd8a97b 100644 --- a/Libraries/LibGUI/GCheckBox.cpp +++ b/Libraries/LibGUI/GCheckBox.cpp @@ -1,8 +1,8 @@ #include #include #include -#include -#include +#include +#include static const char* s_checked_bitmap_data = { " " diff --git a/Libraries/LibGUI/GDesktop.h b/Libraries/LibGUI/GDesktop.h index a76142fe0fc..01b03debacd 100644 --- a/Libraries/LibGUI/GDesktop.h +++ b/Libraries/LibGUI/GDesktop.h @@ -3,7 +3,7 @@ #include #include #include -#include +#include class GWindowServerConnection; diff --git a/Libraries/LibGUI/GDirectoryModel.cpp b/Libraries/LibGUI/GDirectoryModel.cpp index c8ad8f40d0e..b682f9bf7eb 100644 --- a/Libraries/LibGUI/GDirectoryModel.cpp +++ b/Libraries/LibGUI/GDirectoryModel.cpp @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Libraries/LibGUI/GEvent.h b/Libraries/LibGUI/GEvent.h index 9d981888362..980fb54296b 100644 --- a/Libraries/LibGUI/GEvent.h +++ b/Libraries/LibGUI/GEvent.h @@ -3,8 +3,8 @@ #include #include #include -#include -#include +#include +#include class CObject; diff --git a/Libraries/LibGUI/GFilePicker.cpp b/Libraries/LibGUI/GFilePicker.cpp index 9fe7c4db1a8..fb4b3c819c2 100644 --- a/Libraries/LibGUI/GFilePicker.cpp +++ b/Libraries/LibGUI/GFilePicker.cpp @@ -11,7 +11,7 @@ #include #include #include -#include +#include Optional GFilePicker::get_open_filepath() { diff --git a/Libraries/LibGUI/GFontDatabase.cpp b/Libraries/LibGUI/GFontDatabase.cpp index 6bd3887707d..a8fee8844c3 100644 --- a/Libraries/LibGUI/GFontDatabase.cpp +++ b/Libraries/LibGUI/GFontDatabase.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include #include #include #include diff --git a/Libraries/LibGUI/GFrame.cpp b/Libraries/LibGUI/GFrame.cpp index 418fe404924..8854bb5e03f 100644 --- a/Libraries/LibGUI/GFrame.cpp +++ b/Libraries/LibGUI/GFrame.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include GFrame::GFrame(GWidget* parent) : GWidget(parent) diff --git a/Libraries/LibGUI/GFrame.h b/Libraries/LibGUI/GFrame.h index b6757e4d8de..84b07413f66 100644 --- a/Libraries/LibGUI/GFrame.h +++ b/Libraries/LibGUI/GFrame.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include class GFrame : public GWidget { public: diff --git a/Libraries/LibGUI/GGroupBox.cpp b/Libraries/LibGUI/GGroupBox.cpp index 5242c332401..3ce063f248f 100644 --- a/Libraries/LibGUI/GGroupBox.cpp +++ b/Libraries/LibGUI/GGroupBox.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include GGroupBox::GGroupBox(GWidget* parent) : GGroupBox({}, parent) diff --git a/Libraries/LibGUI/GIcon.h b/Libraries/LibGUI/GIcon.h index 2aecd7f2ede..d849929a50a 100644 --- a/Libraries/LibGUI/GIcon.h +++ b/Libraries/LibGUI/GIcon.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include class GIconImpl : public RefCounted { public: diff --git a/Libraries/LibGUI/GLabel.cpp b/Libraries/LibGUI/GLabel.cpp index 5a6fdc6580b..bba9e4897e5 100644 --- a/Libraries/LibGUI/GLabel.cpp +++ b/Libraries/LibGUI/GLabel.cpp @@ -1,6 +1,6 @@ #include "GLabel.h" #include -#include +#include GLabel::GLabel(GWidget* parent) : GFrame(parent) diff --git a/Libraries/LibGUI/GLabel.h b/Libraries/LibGUI/GLabel.h index e3ad6a568ef..4ee427d2bdf 100644 --- a/Libraries/LibGUI/GLabel.h +++ b/Libraries/LibGUI/GLabel.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include class GraphicsBitmap; diff --git a/Libraries/LibGUI/GModel.h b/Libraries/LibGUI/GModel.h index dbb94524daf..fb634930e69 100644 --- a/Libraries/LibGUI/GModel.h +++ b/Libraries/LibGUI/GModel.h @@ -7,7 +7,7 @@ #include #include #include -#include +#include class Font; class GAbstractView; diff --git a/Libraries/LibGUI/GPainter.h b/Libraries/LibGUI/GPainter.h index 1ad436e343b..93e4b468824 100644 --- a/Libraries/LibGUI/GPainter.h +++ b/Libraries/LibGUI/GPainter.h @@ -1,6 +1,6 @@ #pragma once -#include +#include class GWidget; class GraphicsBitmap; diff --git a/Libraries/LibGUI/GRadioButton.cpp b/Libraries/LibGUI/GRadioButton.cpp index 377b3000ae7..9c488f6ffa8 100644 --- a/Libraries/LibGUI/GRadioButton.cpp +++ b/Libraries/LibGUI/GRadioButton.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include static RefPtr s_unfilled_circle_bitmap; static RefPtr s_filled_circle_bitmap; diff --git a/Libraries/LibGUI/GResizeCorner.cpp b/Libraries/LibGUI/GResizeCorner.cpp index 1dfba8b7862..5aa050ec451 100644 --- a/Libraries/LibGUI/GResizeCorner.cpp +++ b/Libraries/LibGUI/GResizeCorner.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include GResizeCorner::GResizeCorner(GWidget* parent) diff --git a/Libraries/LibGUI/GScrollBar.cpp b/Libraries/LibGUI/GScrollBar.cpp index f1ce3913090..037b5aca408 100644 --- a/Libraries/LibGUI/GScrollBar.cpp +++ b/Libraries/LibGUI/GScrollBar.cpp @@ -1,8 +1,8 @@ #include #include -#include -#include -#include +#include +#include +#include static const char* s_up_arrow_bitmap_data = { " " diff --git a/Libraries/LibGUI/GSlider.cpp b/Libraries/LibGUI/GSlider.cpp index ff166e90efd..3a821e9d414 100755 --- a/Libraries/LibGUI/GSlider.cpp +++ b/Libraries/LibGUI/GSlider.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include GSlider::GSlider(GWidget* parent) : GWidget(parent) diff --git a/Libraries/LibGUI/GStatusBar.cpp b/Libraries/LibGUI/GStatusBar.cpp index e219035e32d..12ff8da2f72 100644 --- a/Libraries/LibGUI/GStatusBar.cpp +++ b/Libraries/LibGUI/GStatusBar.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include GStatusBar::GStatusBar(GWidget* parent) : GWidget(parent) diff --git a/Libraries/LibGUI/GTabWidget.cpp b/Libraries/LibGUI/GTabWidget.cpp index 73b1552d1f2..374390fd3fa 100644 --- a/Libraries/LibGUI/GTabWidget.cpp +++ b/Libraries/LibGUI/GTabWidget.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include GTabWidget::GTabWidget(GWidget* parent) : GWidget(parent) diff --git a/Libraries/LibGUI/GTextEditor.h b/Libraries/LibGUI/GTextEditor.h index 1bfbfa5b708..751b6a54283 100644 --- a/Libraries/LibGUI/GTextEditor.h +++ b/Libraries/LibGUI/GTextEditor.h @@ -3,7 +3,7 @@ #include #include #include -#include +#include class GAction; class GMenu; diff --git a/Libraries/LibGUI/GVariant.h b/Libraries/LibGUI/GVariant.h index c7dc60d2de2..7725412f204 100644 --- a/Libraries/LibGUI/GVariant.h +++ b/Libraries/LibGUI/GVariant.h @@ -2,7 +2,7 @@ #include #include -#include +#include namespace AK { class JsonValue; diff --git a/Libraries/LibGUI/GWidget.cpp b/Libraries/LibGUI/GWidget.cpp index 41e5b5854c3..eb963b03148 100644 --- a/Libraries/LibGUI/GWidget.cpp +++ b/Libraries/LibGUI/GWidget.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include GWidget::GWidget(GWidget* parent) diff --git a/Libraries/LibGUI/GWidget.h b/Libraries/LibGUI/GWidget.h index da0ae762ea1..410bbe3653a 100644 --- a/Libraries/LibGUI/GWidget.h +++ b/Libraries/LibGUI/GWidget.h @@ -7,9 +7,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include class GraphicsBitmap; class GAction; diff --git a/Libraries/LibGUI/GWindow.cpp b/Libraries/LibGUI/GWindow.cpp index 74c582cb52c..1e201372699 100644 --- a/Libraries/LibGUI/GWindow.cpp +++ b/Libraries/LibGUI/GWindow.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include //#define UPDATE_COALESCING_DEBUG diff --git a/Libraries/LibGUI/GWindow.h b/Libraries/LibGUI/GWindow.h index 392f078ce61..5101a2430cf 100644 --- a/Libraries/LibGUI/GWindow.h +++ b/Libraries/LibGUI/GWindow.h @@ -5,8 +5,8 @@ #include #include #include -#include -#include +#include +#include class GWidget; class GWMEvent; diff --git a/Libraries/LibGUI/Makefile b/Libraries/LibGUI/Makefile index 7589e77b916..1b2c4611154 100644 --- a/Libraries/LibGUI/Makefile +++ b/Libraries/LibGUI/Makefile @@ -1,16 +1,6 @@ include ../../Makefile.common -SHAREDGRAPHICS_OBJS = \ - ../../SharedGraphics/Painter.o \ - ../../SharedGraphics/StylePainter.o \ - ../../SharedGraphics/Font.o \ - ../../SharedGraphics/Rect.o \ - ../../SharedGraphics/GraphicsBitmap.o \ - ../../SharedGraphics/CharacterBitmap.o \ - ../../SharedGraphics/Color.o \ - ../../SharedGraphics/PNGLoader.o - -LIBGUI_OBJS = \ +OBJS = \ GPainter.o \ GButton.o \ GCheckBox.o \ @@ -64,8 +54,6 @@ LIBGUI_OBJS = \ GComboBox.o \ GWindow.o -OBJS = $(SHAREDGRAPHICS_OBJS) $(LIBGUI_OBJS) - LIBRARY = libgui.a DEFINES += -DUSERLAND diff --git a/Libraries/LibHTML/Frame.h b/Libraries/LibHTML/Frame.h index 1ceef02564b..b58021fa5cc 100644 --- a/Libraries/LibHTML/Frame.h +++ b/Libraries/LibHTML/Frame.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include class Frame { public: diff --git a/Libraries/LibHTML/Layout/ComputedStyle.h b/Libraries/LibHTML/Layout/ComputedStyle.h index af339fecd65..856118a7908 100644 --- a/Libraries/LibHTML/Layout/ComputedStyle.h +++ b/Libraries/LibHTML/Layout/ComputedStyle.h @@ -1,8 +1,8 @@ #pragma once #include -#include -#include +#include +#include enum FontStyle { Normal, diff --git a/Libraries/LibHTML/Layout/LayoutNode.h b/Libraries/LibHTML/Layout/LayoutNode.h index 9604636b11b..a48e11d4223 100644 --- a/Libraries/LibHTML/Layout/LayoutNode.h +++ b/Libraries/LibHTML/Layout/LayoutNode.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include class Node; class LayoutBlock; diff --git a/Makefile.common b/Makefile.common index cbe8e383651..cc49b2646c5 100644 --- a/Makefile.common +++ b/Makefile.common @@ -7,8 +7,22 @@ OPTIMIZATION_FLAGS = -Os MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) SERENITY_BASE_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH))) -INCLUDE_FLAGS = -I$(SERENITY_BASE_DIR) -I$(SERENITY_BASE_DIR)/Libraries -I. -I$(SERENITY_BASE_DIR)/Libraries/LibC -I$(SERENITY_BASE_DIR)/Servers -I$(SERENITY_BASE_DIR)/Libraries/LibM -LDFLAGS = -L$(SERENITY_BASE_DIR)/Libraries/LibC -L$(SERENITY_BASE_DIR)/Libraries/LibCore -L$(SERENITY_BASE_DIR)/Libraries/LibM -L$(SERENITY_BASE_DIR)/Libraries/LibGUI -L$(SERENITY_BASE_DIR)/Libraries/LibAudio +INCLUDE_FLAGS = \ + -I. \ + -I$(SERENITY_BASE_DIR) \ + -I$(SERENITY_BASE_DIR)/Libraries \ + -I$(SERENITY_BASE_DIR)/Libraries/LibC \ + -I$(SERENITY_BASE_DIR)/Servers \ + -I$(SERENITY_BASE_DIR)/Libraries/LibM + +LDFLAGS = \ + -L$(SERENITY_BASE_DIR)/Libraries/LibC \ + -L$(SERENITY_BASE_DIR)/Libraries/LibCore \ + -L$(SERENITY_BASE_DIR)/Libraries/LibM \ + -L$(SERENITY_BASE_DIR)/Libraries/LibDraw \ + -L$(SERENITY_BASE_DIR)/Libraries/LibGUI \ + -L$(SERENITY_BASE_DIR)/Libraries/LibAudio + CLANG_FLAGS = -Wconsumed -m32 -ffreestanding -march=i686 #SUGGEST_FLAGS = -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override #-Wsuggest-attribute=noreturn CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES) diff --git a/Servers/WindowServer/Makefile b/Servers/WindowServer/Makefile index a51fd588c87..01e2de476ef 100644 --- a/Servers/WindowServer/Makefile +++ b/Servers/WindowServer/Makefile @@ -1,17 +1,6 @@ include ../../Makefile.common -SHAREDGRAPHICS_OBJS = \ - ../../SharedGraphics/Painter.o \ - ../../SharedGraphics/StylePainter.o \ - ../../SharedGraphics/Font.o \ - ../../SharedGraphics/Rect.o \ - ../../SharedGraphics/GraphicsBitmap.o \ - ../../SharedGraphics/CharacterBitmap.o \ - ../../SharedGraphics/DisjointRectSet.o \ - ../../SharedGraphics/Color.o \ - ../../SharedGraphics/PNGLoader.o - -WINDOWSERVER_OBJS = \ +OBJS = \ WSEventLoop.o \ WSWindow.o \ WSWindowManager.o \ @@ -31,14 +20,13 @@ WINDOWSERVER_OBJS = \ main.o APP = WindowServer -OBJS = $(SHAREDGRAPHICS_OBJS) $(WINDOWSERVER_OBJS) DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lc -lcore + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lc -lcore -ldraw .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Servers/WindowServer/WSAPITypes.h b/Servers/WindowServer/WSAPITypes.h index 62c22a2b9e0..28fe734d6e0 100644 --- a/Servers/WindowServer/WSAPITypes.h +++ b/Servers/WindowServer/WSAPITypes.h @@ -1,7 +1,7 @@ #pragma once -#include -#include +#include +#include typedef unsigned WSAPI_Color; diff --git a/Servers/WindowServer/WSButton.cpp b/Servers/WindowServer/WSButton.cpp index 10b635fb683..7e0a7de8798 100644 --- a/Servers/WindowServer/WSButton.cpp +++ b/Servers/WindowServer/WSButton.cpp @@ -1,6 +1,6 @@ -#include -#include -#include +#include +#include +#include #include #include #include diff --git a/Servers/WindowServer/WSButton.h b/Servers/WindowServer/WSButton.h index b9c51ea10a3..dc2b09ad10c 100644 --- a/Servers/WindowServer/WSButton.h +++ b/Servers/WindowServer/WSButton.h @@ -3,7 +3,7 @@ #include #include #include -#include +#include class CharacterBitmap; class Painter; diff --git a/Servers/WindowServer/WSClientConnection.h b/Servers/WindowServer/WSClientConnection.h index 4c621fe4222..2a5d2e47498 100644 --- a/Servers/WindowServer/WSClientConnection.h +++ b/Servers/WindowServer/WSClientConnection.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include class WSWindow; diff --git a/Servers/WindowServer/WSCompositor.cpp b/Servers/WindowServer/WSCompositor.cpp index 115b5cea444..dae11e64ac4 100644 --- a/Servers/WindowServer/WSCompositor.cpp +++ b/Servers/WindowServer/WSCompositor.cpp @@ -4,9 +4,9 @@ #include "WSScreen.h" #include "WSWindow.h" #include "WSWindowManager.h" -#include -#include -#include +#include +#include +#include // #define COMPOSITOR_DEBUG diff --git a/Servers/WindowServer/WSCompositor.h b/Servers/WindowServer/WSCompositor.h index 27635d04ca5..e11da2b21fc 100644 --- a/Servers/WindowServer/WSCompositor.h +++ b/Servers/WindowServer/WSCompositor.h @@ -4,8 +4,8 @@ #include #include #include -#include -#include +#include +#include class Painter; class WSCursor; diff --git a/Servers/WindowServer/WSCursor.h b/Servers/WindowServer/WSCursor.h index 76640da4a77..5b46f64674f 100644 --- a/Servers/WindowServer/WSCursor.h +++ b/Servers/WindowServer/WSCursor.h @@ -1,6 +1,6 @@ #pragma once -#include +#include enum class WSStandardCursor { None = 0, diff --git a/Servers/WindowServer/WSEvent.h b/Servers/WindowServer/WSEvent.h index 2527c88fcaf..4339be917bf 100644 --- a/Servers/WindowServer/WSEvent.h +++ b/Servers/WindowServer/WSEvent.h @@ -4,8 +4,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/Servers/WindowServer/WSMenu.cpp b/Servers/WindowServer/WSMenu.cpp index d820a9425a5..7b6b1dcc5ad 100644 --- a/Servers/WindowServer/WSMenu.cpp +++ b/Servers/WindowServer/WSMenu.cpp @@ -5,10 +5,10 @@ #include "WSScreen.h" #include "WSWindow.h" #include "WSWindowManager.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include diff --git a/Servers/WindowServer/WSMenu.h b/Servers/WindowServer/WSMenu.h index 25d27179e34..a50d505349b 100644 --- a/Servers/WindowServer/WSMenu.h +++ b/Servers/WindowServer/WSMenu.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include class WSClientConnection; diff --git a/Servers/WindowServer/WSMenuItem.h b/Servers/WindowServer/WSMenuItem.h index 0b29d361bae..4489e332d23 100644 --- a/Servers/WindowServer/WSMenuItem.h +++ b/Servers/WindowServer/WSMenuItem.h @@ -2,7 +2,7 @@ #include #include -#include +#include class WSMenu; diff --git a/Servers/WindowServer/WSMenuManager.cpp b/Servers/WindowServer/WSMenuManager.cpp index 50a88f274cf..90cf29189bb 100644 --- a/Servers/WindowServer/WSMenuManager.cpp +++ b/Servers/WindowServer/WSMenuManager.cpp @@ -1,6 +1,6 @@ #include -#include -#include +#include +#include #include #include #include diff --git a/Servers/WindowServer/WSScreen.h b/Servers/WindowServer/WSScreen.h index 6a9d4928218..59ef14456cf 100644 --- a/Servers/WindowServer/WSScreen.h +++ b/Servers/WindowServer/WSScreen.h @@ -1,9 +1,9 @@ #pragma once #include -#include -#include -#include +#include +#include +#include class WSScreen { public: diff --git a/Servers/WindowServer/WSWindow.h b/Servers/WindowServer/WSWindow.h index c3db207f60e..07a022244d5 100644 --- a/Servers/WindowServer/WSWindow.h +++ b/Servers/WindowServer/WSWindow.h @@ -3,9 +3,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include diff --git a/Servers/WindowServer/WSWindowFrame.cpp b/Servers/WindowServer/WSWindowFrame.cpp index 09b2cecc7b7..340ebebd320 100644 --- a/Servers/WindowServer/WSWindowFrame.cpp +++ b/Servers/WindowServer/WSWindowFrame.cpp @@ -1,7 +1,7 @@ -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index cb5522186e9..eaa66088836 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -10,11 +10,11 @@ #include #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include diff --git a/Servers/WindowServer/WSWindowManager.h b/Servers/WindowServer/WSWindowManager.h index eaadf75d573..da48011de86 100644 --- a/Servers/WindowServer/WSWindowManager.h +++ b/Servers/WindowServer/WSWindowManager.h @@ -6,10 +6,10 @@ #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include diff --git a/Servers/WindowServer/WSWindowSwitcher.cpp b/Servers/WindowServer/WSWindowSwitcher.cpp index 6e91f58bef6..8123027f9b5 100644 --- a/Servers/WindowServer/WSWindowSwitcher.cpp +++ b/Servers/WindowServer/WSWindowSwitcher.cpp @@ -1,5 +1,5 @@ -#include -#include +#include +#include #include #include #include diff --git a/Servers/WindowServer/WSWindowSwitcher.h b/Servers/WindowServer/WSWindowSwitcher.h index 1feed2625c4..4c9764f6680 100644 --- a/Servers/WindowServer/WSWindowSwitcher.h +++ b/Servers/WindowServer/WSWindowSwitcher.h @@ -3,7 +3,7 @@ #include #include #include -#include +#include class Painter; class WSKeyEvent; diff --git a/SharedGraphics/install.sh b/SharedGraphics/install.sh deleted file mode 100755 index 5b19415f9d4..00000000000 --- a/SharedGraphics/install.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -mkdir -p ../Root/usr/include/SharedGraphics/ -cp *.h ../Root/usr/include/SharedGraphics/ diff --git a/Userland/Makefile b/Userland/Makefile index e56242e7e26..7a52b5c449c 100644 --- a/Userland/Makefile +++ b/Userland/Makefile @@ -19,7 +19,7 @@ clean: $(APPS) : % : %.o $(OBJS) @echo "LD $@" - @$(LD) -o $@ $(LDFLAGS) $< -lc -lgui -laudio -lcore + @$(LD) -o $@ $(LDFLAGS) $< -lc -lgui -ldraw -laudio -lcore %.o: %.cpp @echo "CXX $<" diff --git a/Userland/guitest2.cpp b/Userland/guitest2.cpp index 21ce0fd2a59..dc3f1e5063d 100644 --- a/Userland/guitest2.cpp +++ b/Userland/guitest2.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include