mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:27:36 +00:00
Ladybird+Meta: Extract AK into its own library on Lagom
We currently bundle AK with LibCore on Lagom. This means that to use AK, all libraries must also depend on LibCore. This will create circular dependencies when we create LibURL, as LibURL will depend on LibUnicode, which will depend on LibCore, which will depend on LibURL.
This commit is contained in:
parent
1e7b06aa11
commit
5945cdc054
8 changed files with 75 additions and 78 deletions
|
@ -7,20 +7,24 @@ config("ak_headers") {
|
|||
]
|
||||
}
|
||||
|
||||
source_set("AK") {
|
||||
shared_library("AK") {
|
||||
output_name = "ak"
|
||||
|
||||
public_configs = [ ":ak_headers" ]
|
||||
public_deps = [ ":ak_debug_gen" ]
|
||||
|
||||
# NOTE: Headers only!
|
||||
# FIXME: Split out non-kernel sources to their own set
|
||||
sources = [
|
||||
"AllOf.h",
|
||||
"AnyOf.h",
|
||||
"ArbitrarySizedEnum.h",
|
||||
"Array.h",
|
||||
"Assertions.cpp",
|
||||
"Assertions.h",
|
||||
"Atomic.h",
|
||||
"AtomicRefCounted.h",
|
||||
"Badge.h",
|
||||
"Base64.cpp",
|
||||
"Base64.h",
|
||||
"BigIntBase.h",
|
||||
"BinaryBufferWriter.h",
|
||||
|
@ -35,21 +39,27 @@ source_set("AK") {
|
|||
"BumpAllocator.h",
|
||||
"ByteBuffer.h",
|
||||
"ByteReader.h",
|
||||
"ByteString.cpp",
|
||||
"ByteString.h",
|
||||
"CharacterTypes.h",
|
||||
"Checked.h",
|
||||
"CheckedFormatString.h",
|
||||
"CircularBuffer.cpp",
|
||||
"CircularBuffer.h",
|
||||
"CircularDeque.h",
|
||||
"CircularQueue.h",
|
||||
"Complex.h",
|
||||
"Concepts.h",
|
||||
"ConstrainedStream.cpp",
|
||||
"ConstrainedStream.h",
|
||||
"CountingStream.cpp",
|
||||
"CountingStream.h",
|
||||
"DOSPackedTime.cpp",
|
||||
"DOSPackedTime.h",
|
||||
"DateConstants.h",
|
||||
"DefaultDelete.h",
|
||||
"Demangle.h",
|
||||
"DeprecatedFlyString.cpp",
|
||||
"DeprecatedFlyString.h",
|
||||
"Diagnostics.h",
|
||||
"DisjointChunks.h",
|
||||
|
@ -57,23 +67,30 @@ source_set("AK") {
|
|||
"DoublyLinkedList.h",
|
||||
"Endian.h",
|
||||
"EnumBits.h",
|
||||
"Error.cpp",
|
||||
"Error.h",
|
||||
"FPControl.h",
|
||||
"Find.h",
|
||||
"FixedArray.h",
|
||||
"FixedPoint.h",
|
||||
"FloatingPoint.h",
|
||||
"FloatingPointStringConversions.cpp",
|
||||
"FloatingPointStringConversions.h",
|
||||
"FlyString.cpp",
|
||||
"FlyString.h",
|
||||
"Format.cpp",
|
||||
"Format.h",
|
||||
"Forward.h",
|
||||
"Function.h",
|
||||
"FuzzyMatch.cpp",
|
||||
"FuzzyMatch.h",
|
||||
"GenericLexer.cpp",
|
||||
"GenericLexer.h",
|
||||
"GenericShorthands.h",
|
||||
"HashFunctions.h",
|
||||
"HashMap.h",
|
||||
"HashTable.h",
|
||||
"Hex.cpp",
|
||||
"Hex.h",
|
||||
"IDAllocator.h",
|
||||
"IPv4Address.h",
|
||||
|
@ -88,26 +105,34 @@ source_set("AK") {
|
|||
"Iterator.h",
|
||||
"JsonArray.h",
|
||||
"JsonArraySerializer.h",
|
||||
"JsonObject.cpp",
|
||||
"JsonObject.h",
|
||||
"JsonObjectSerializer.h",
|
||||
"JsonParser.cpp",
|
||||
"JsonParser.h",
|
||||
"JsonPath.cpp",
|
||||
"JsonPath.h",
|
||||
"JsonValue.cpp",
|
||||
"JsonValue.h",
|
||||
"LEB128.h",
|
||||
"LexicalPath.cpp",
|
||||
"LexicalPath.h",
|
||||
"MACAddress.h",
|
||||
"Math.h",
|
||||
"MaybeOwned.h",
|
||||
"MemMem.h",
|
||||
"Memory.h",
|
||||
"MemoryStream.cpp",
|
||||
"MemoryStream.h",
|
||||
"NeverDestroyed.h",
|
||||
"NoAllocationGuard.h",
|
||||
"Noncopyable.h",
|
||||
"NonnullOwnPtr.h",
|
||||
"NonnullRefPtr.h",
|
||||
"NumberFormat.cpp",
|
||||
"NumberFormat.h",
|
||||
"NumericLimits.h",
|
||||
"OptionParser.cpp",
|
||||
"OptionParser.h",
|
||||
"Optional.h",
|
||||
"OwnPtr.h",
|
||||
|
@ -117,6 +142,7 @@ source_set("AK") {
|
|||
"Queue.h",
|
||||
"QuickSelect.h",
|
||||
"QuickSort.h",
|
||||
"Random.cpp",
|
||||
"Random.h",
|
||||
"RecursionDecision.h",
|
||||
"RedBlackTree.h",
|
||||
|
@ -134,26 +160,38 @@ source_set("AK") {
|
|||
"Singleton.h",
|
||||
"SinglyLinkedList.h",
|
||||
"SinglyLinkedListSizePolicy.h",
|
||||
"SipHash.cpp",
|
||||
"SipHash.h",
|
||||
"Slugify.cpp",
|
||||
"Slugify.h",
|
||||
"SourceGenerator.h",
|
||||
"SourceLocation.h",
|
||||
"Span.h",
|
||||
"Stack.h",
|
||||
"StackInfo.cpp",
|
||||
"StackInfo.h",
|
||||
"Statistics.h",
|
||||
"StdLibExtraDetails.h",
|
||||
"StdLibExtras.h",
|
||||
"Stream.cpp",
|
||||
"Stream.h",
|
||||
"String.cpp",
|
||||
"String.h",
|
||||
"StringBase.cpp",
|
||||
"StringBase.h",
|
||||
"StringBuilder.cpp",
|
||||
"StringBuilder.h",
|
||||
"StringFloatingPointConversions.cpp",
|
||||
"StringFloatingPointConversions.h",
|
||||
"StringHash.h",
|
||||
"StringImpl.cpp",
|
||||
"StringImpl.h",
|
||||
"StringUtils.cpp",
|
||||
"StringUtils.h",
|
||||
"StringView.cpp",
|
||||
"StringView.h",
|
||||
"TemporaryChange.h",
|
||||
"Time.cpp",
|
||||
"Time.h",
|
||||
"Traits.h",
|
||||
"Trie.h",
|
||||
|
@ -166,74 +204,30 @@ source_set("AK") {
|
|||
"UBSanitizer.h",
|
||||
"UFixedBigInt.h",
|
||||
"UFixedBigIntDivision.h",
|
||||
"URL.cpp",
|
||||
"URL.h",
|
||||
"URLParser.cpp",
|
||||
"URLParser.h",
|
||||
"UUID.cpp",
|
||||
"UUID.h",
|
||||
"UnicodeUtils.h",
|
||||
"Userspace.h",
|
||||
"Utf16View.cpp",
|
||||
"Utf16View.h",
|
||||
"Utf32View.cpp",
|
||||
"Utf32View.h",
|
||||
"Utf8View.cpp",
|
||||
"Utf8View.h",
|
||||
"Variant.h",
|
||||
"Vector.h",
|
||||
"WeakPtr.h",
|
||||
"Weakable.h",
|
||||
"kmalloc.cpp",
|
||||
"kmalloc.h",
|
||||
"kstdio.h",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("sources") {
|
||||
deps = [ ":AK" ]
|
||||
|
||||
# FIXME: Split out non-kernel sources to their own set
|
||||
sources = [
|
||||
"Assertions.cpp",
|
||||
"Base64.cpp",
|
||||
"ByteString.cpp",
|
||||
"CircularBuffer.cpp",
|
||||
"ConstrainedStream.cpp",
|
||||
"CountingStream.cpp",
|
||||
"DOSPackedTime.cpp",
|
||||
"DeprecatedFlyString.cpp",
|
||||
"Error.cpp",
|
||||
"FloatingPointStringConversions.cpp",
|
||||
"FlyString.cpp",
|
||||
"Format.cpp",
|
||||
"FuzzyMatch.cpp",
|
||||
"GenericLexer.cpp",
|
||||
"Hex.cpp",
|
||||
"JsonObject.cpp",
|
||||
"JsonParser.cpp",
|
||||
"JsonPath.cpp",
|
||||
"JsonValue.cpp",
|
||||
"LexicalPath.cpp",
|
||||
"MemoryStream.cpp",
|
||||
"NumberFormat.cpp",
|
||||
"OptionParser.cpp",
|
||||
"Random.cpp",
|
||||
"SipHash.cpp",
|
||||
"Slugify.cpp",
|
||||
"StackInfo.cpp",
|
||||
"Stream.cpp",
|
||||
"String.cpp",
|
||||
"StringBase.cpp",
|
||||
"StringBuilder.cpp",
|
||||
"StringFloatingPointConversions.cpp",
|
||||
"StringImpl.cpp",
|
||||
"StringUtils.cpp",
|
||||
"StringView.cpp",
|
||||
"Time.cpp",
|
||||
"URL.cpp",
|
||||
"URLParser.cpp",
|
||||
"UUID.cpp",
|
||||
"Utf16View.cpp",
|
||||
"Utf32View.cpp",
|
||||
"Utf8View.cpp",
|
||||
"kmalloc.cpp",
|
||||
]
|
||||
}
|
||||
|
||||
write_cmake_config("ak_debug_gen") {
|
||||
input = "Debug.h.in"
|
||||
output = "$root_gen_dir/AK/Debug.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue