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/LibGfx | |
parent | 49727ffee424d8c0038ce18b91b0bf0ff33b1a4d (diff) | |
download | serenity-450a2a0f9ce2443bc06445ee018c9860d8cd5fc8.zip |
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
Diffstat (limited to 'Libraries/LibGfx')
-rw-r--r-- | Libraries/LibGfx/CMakeLists.txt | 26 | ||||
-rw-r--r-- | Libraries/LibGfx/Makefile | 31 |
2 files changed, 26 insertions, 31 deletions
diff --git a/Libraries/LibGfx/CMakeLists.txt b/Libraries/LibGfx/CMakeLists.txt new file mode 100644 index 0000000000..3ab00d506c --- /dev/null +++ b/Libraries/LibGfx/CMakeLists.txt @@ -0,0 +1,26 @@ +set(SOURCES + AffineTransform.cpp + Bitmap.cpp + CharacterBitmap.cpp + Color.cpp + DisjointRectSet.cpp + Emoji.cpp + FloatRect.cpp + Font.cpp + GIFLoader.cpp + ImageDecoder.cpp + Painter.cpp + Palette.cpp + Path.cpp + PNGLoader.cpp + Point.cpp + Rect.cpp + ShareableBitmap.cpp + Size.cpp + StylePainter.cpp + SystemTheme.cpp + Triangle.cpp +) + +serenity_lib(LibGfx gfx) +target_link_libraries(LibGfx LibM LibCore) diff --git a/Libraries/LibGfx/Makefile b/Libraries/LibGfx/Makefile deleted file mode 100644 index 8f8833d811..0000000000 --- a/Libraries/LibGfx/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -OBJS = \ - AffineTransform.o \ - Bitmap.o \ - CharacterBitmap.o \ - Color.o \ - DisjointRectSet.o \ - Emoji.o \ - Font.o \ - FloatRect.o \ - GIFLoader.o \ - ImageDecoder.o \ - PNGLoader.o \ - Painter.o \ - Palette.o \ - Path.o \ - Point.o \ - Rect.o \ - ShareableBitmap.o \ - Size.o \ - StylePainter.o \ - SystemTheme.o \ - Triangle.o - -LIBRARY = libgfx.a - -install: - mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibGfx/ - cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/LibGfx/ - cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/ - -include ../../Makefile.common |