mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
ab27fce86f
This new method is meant to be used in both userspace and kernel code. The idea is to allow printing of a verbose message and then returning an errno code which is the proper mechanism for kernel code because we should almost always assume that such error will be propagated back to userspace in some way, so the userspace code could reasonably decode it. For userspace code however, this new method is meant to be a simple wrapper for Error::from_string_view, because for most invocations, it's much more useful to have a verbose & literal error than a errno code, so we simply ignore that errno code completely in such context.
44 lines
949 B
CMake
44 lines
949 B
CMake
set(AK_SOURCES
|
|
Assertions.cpp
|
|
Base64.cpp
|
|
CircularBuffer.cpp
|
|
DeprecatedFlyString.cpp
|
|
DeprecatedString.cpp
|
|
Error.cpp
|
|
FloatingPointStringConversions.cpp
|
|
FlyString.cpp
|
|
Format.cpp
|
|
FuzzyMatch.cpp
|
|
GenericLexer.cpp
|
|
Hex.cpp
|
|
JsonObject.cpp
|
|
JsonParser.cpp
|
|
JsonPath.cpp
|
|
JsonValue.cpp
|
|
kmalloc.cpp
|
|
LexicalPath.cpp
|
|
MemoryStream.cpp
|
|
NumberFormat.cpp
|
|
Random.cpp
|
|
StackInfo.cpp
|
|
Stream.cpp
|
|
String.cpp
|
|
StringBuilder.cpp
|
|
StringFloatingPointConversions.cpp
|
|
StringImpl.cpp
|
|
StringUtils.cpp
|
|
StringView.cpp
|
|
Time.cpp
|
|
URL.cpp
|
|
URLParser.cpp
|
|
Utf16View.cpp
|
|
Utf8View.cpp
|
|
UUID.cpp
|
|
)
|
|
# AK sources are included from many different places, such as the Kernel, LibC, and Loader
|
|
list(TRANSFORM AK_SOURCES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
|
|
|
|
set(AK_SOURCES ${AK_SOURCES} PARENT_SCOPE)
|
|
|
|
serenity_install_headers(AK)
|
|
serenity_install_sources(AK)
|