diff --git a/AK/CMakeLists.txt b/AK/CMakeLists.txt index 5fc9dcd20e1..1561148626d 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) diff --git a/Userland/DynamicLoader/CMakeLists.txt b/Userland/DynamicLoader/CMakeLists.txt index 7505bf51482..7369f035410 100644 --- a/Userland/DynamicLoader/CMakeLists.txt +++ b/Userland/DynamicLoader/CMakeLists.txt @@ -3,7 +3,6 @@ set(LOADER_SOURCES misc.cpp ) -file(GLOB AK_SOURCES "../../AK/*.cpp") file(GLOB ELF_SOURCES "../Libraries/LibELF/*.cpp") file(GLOB LIBC_SOURCES1 "../Libraries/LibC/*.cpp") file(GLOB LIBC_SOURCES2 "../Libraries/LibC/*/*.cpp") diff --git a/Userland/Libraries/LibC/CMakeLists.txt b/Userland/Libraries/LibC/CMakeLists.txt index 201cc622ce3..97d76aaee5f 100644 --- a/Userland/Libraries/LibC/CMakeLists.txt +++ b/Userland/Libraries/LibC/CMakeLists.txt @@ -76,7 +76,6 @@ set(LIBC_SOURCES wstdio.cpp ) -file(GLOB AK_SOURCES CONFIGURE_DEPENDS "../../../AK/*.cpp") file(GLOB ELF_SOURCES CONFIGURE_DEPENDS "../LibELF/*.cpp") if ("${SERENITY_ARCH}" STREQUAL "aarch64")