mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
Lagom: Import the beginnings of a "port" of Serenity libs for the outside.
The C++ facilities of Serenity are getting pretty comfortable, and I'd like to take them with me to projects outside the system. Let's make it a bit easier to do that by bundling AK and LibCore (for now) into a portable library called "Lagom". :^)
This commit is contained in:
parent
afc638c3ab
commit
6957976796
Notes:
sideshowbarker
2024-07-19 13:03:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/69579767968
4
Lagom/.gitignore
vendored
Normal file
4
Lagom/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles
|
||||||
|
Makefile
|
||||||
|
cmake_install.cmake
|
26
Lagom/CMakeLists.txt
Normal file
26
Lagom/CMakeLists.txt
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
cmake_minimum_required (VERSION 2.6)
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILER clang)
|
||||||
|
set(CMAKE_CXX_COMPILER clang)
|
||||||
|
set(CMAKE_CXX_FLAGS "-O2 -Wall -Wextra -Wconsumed -Werror -std=c++17")
|
||||||
|
|
||||||
|
project (Lagom)
|
||||||
|
|
||||||
|
file(GLOB SOURCES "../Libraries/LibCore/*.cpp")
|
||||||
|
|
||||||
|
set(SOURCES ${SOURCES}
|
||||||
|
../AK/StringImpl.cpp
|
||||||
|
../AK/String.cpp
|
||||||
|
../AK/JsonArray.cpp
|
||||||
|
../AK/JsonValue.cpp
|
||||||
|
../AK/JsonObject.cpp
|
||||||
|
../AK/JsonParser.cpp
|
||||||
|
../AK/StringBuilder.cpp
|
||||||
|
../AK/StringView.cpp
|
||||||
|
../AK/LogStream.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories (../)
|
||||||
|
include_directories (../Libraries/)
|
||||||
|
add_library(lagom SHARED ${SOURCES})
|
||||||
|
|
9
Lagom/ReadMe.md
Normal file
9
Lagom/ReadMe.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Lagom
|
||||||
|
|
||||||
|
The Serenity C++ library, for other Operating Systems.
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
If you want to bring the comfortable Serenity classes with you to another system, look no further. This is basically a "port" of the `AK` and `LibCore` libraries to generic \*nix systems.
|
||||||
|
|
||||||
|
*Lagom* is a Swedish word that means "just the right amount." ([Wikipedia](https://en.wikipedia.org/wiki/Lagom))
|
Loading…
Reference in New Issue
Block a user