serenity/AK/CMakeLists.txt
Dan Klishch aa2f5df0a9 AK: Add a helper to detect which CPU features are supported
The helper doesn't use __builtin_cpu_supports (and instead makes raw
cpuid calls) because of three reasons:

 - __builtin_cpu_supports only works on x86_64, so its usage need to be
   guarded with the preprocessor similarly to the current code.
   Moreover, we will have to use custom mechanisms to detect features on
   ARM, since there isn't such thing as cpuid there (and __builtin_cpu_*
   are not provided).

 - __builtin_cpu_supports doesn't support "sha" feature on all targeted
   toolchains currently.

 - And, of course, NIH.
2024-07-12 18:30:07 -04:00

52 lines
1.1 KiB
CMake

set(AK_SOURCES
Assertions.cpp
Base64.cpp
ByteString.cpp
CPUFeatures.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
UUID.cpp
Utf16View.cpp
Utf32View.cpp
Utf8View.cpp
kmalloc.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)