summaryrefslogtreecommitdiff
path: root/AK/CMakeLists.txt
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-10-13 14:00:59 -0600
committerLinus Groh <mail@linusgroh.de>2022-10-16 16:36:39 +0200
commit1ca48a2aec0548f1aeb2392a03ebb10188a58ed8 (patch)
tree44f1a6f47530aaad4ea215f95812bda777478f14 /AK/CMakeLists.txt
parenta34f8c444bfbba2d723b00a7659284da1ef4ed15 (diff)
downloadserenity-1ca48a2aec0548f1aeb2392a03ebb10188a58ed8.zip
AK+Userland: Use a CMake variable for AK_SOURCES instead of GLOB
This lets us remove a glob pattern from LibC, the DynamicLoader, and, later, Lagom. The Kernel already has its own separate list of AK files that it wants, which is only a subset of all AK files.
Diffstat (limited to 'AK/CMakeLists.txt')
-rw-r--r--AK/CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/AK/CMakeLists.txt b/AK/CMakeLists.txt
index 5fc9dcd20e..1561148626 100644
--- a/AK/CMakeLists.txt
+++ b/AK/CMakeLists.txt
@@ -1,2 +1,34 @@
+set(AK_SOURCES
+ Assertions.cpp
+ Base64.cpp
+ FlyString.cpp
+ Format.cpp
+ FuzzyMatch.cpp
+ GenericLexer.cpp
+ Hex.cpp
+ JsonParser.cpp
+ JsonPath.cpp
+ JsonValue.cpp
+ kmalloc.cpp
+ LexicalPath.cpp
+ Random.cpp
+ StackInfo.cpp
+ String.cpp
+ StringBuilder.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)