Skip to content

Commit 62855af

Browse files
committed
[GTK][WPE] Fix MALLOC_HEAP_BREAKDOWN builds
https://bugs.webkit.org/show_bug.cgi?id=292929 Reviewed by Adrian Perez de Castro. This change fixes malloc heap breakdown compilation on GTK and WPE ports. It also cleans up cmake files a bit as in the end the library that serves malloc heap breakdown is not a framework. * Source/WebCore/CMakeLists.txt: * Source/WebKit/CMakeLists.txt: * Source/bmalloc/CMakeLists.txt: * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsWPE.cmake: * Source/cmake/WebKitFS.cmake: * Tools/TestWebKitAPI/CMakeLists.txt: Canonical link: https://commits.webkit.org/294848@main
1 parent d3e922b commit 62855af

7 files changed

Lines changed: 4 additions & 14 deletions

File tree

‎Source/WebCore/CMakeLists.txt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,11 +2625,10 @@ if (PORT STREQUAL GTK OR PORT STREQUAL WPE)
26252625
endif ()
26262626

26272627
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
2628-
list(APPEND WebCore_FRAMEWORKS ${MALLOC_HEAP_BREAKDOWN_FRAMEWORKS})
2628+
list(APPEND WebCore_LIBRARIES ${MALLOC_HEAP_BREAKDOWN_LIBRARIES})
26292629
endif ()
26302630

26312631
list(APPEND WebCoreTestSupport_LIBRARIES ${WebCore_LIBRARIES})
2632-
list(APPEND WebCoreTestSupport_FRAMEWORKS ${WebCore_FRAMEWORKS})
26332632
list(APPEND WebCoreTestSupport_PRIVATE_LIBRARIES ${WebCore_PRIVATE_LIBRARIES})
26342633
list(APPEND WebCoreTestSupport_DEPENDENCIES WebCore)
26352634

‎Source/WebKit/CMakeLists.txt‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,6 @@ if (NOT USE_SYSTEM_MALLOC)
725725
list(APPEND WebKit_FRAMEWORKS bmalloc)
726726
endif ()
727727

728-
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
729-
list(APPEND WebKit_FRAMEWORKS ${MALLOC_HEAP_BREAKDOWN_FRAMEWORKS})
730-
endif ()
731-
732728
set(WebProcess_LIBRARIES WebKit)
733729
set(NetworkProcess_LIBRARIES WebKit)
734730
set(GPUProcess_LIBRARIES WebKit)

‎Source/bmalloc/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ set(bmalloc_LIBRARIES
697697
)
698698

699699
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
700-
list(APPEND bmalloc_FRAMEWORKS ${MALLOC_HEAP_BREAKDOWN_FRAMEWORKS})
700+
list(APPEND bmalloc_LIBRARIES ${MALLOC_HEAP_BREAKDOWN_LIBRARIES})
701701
endif ()
702702

703703
if (ATOMICS_REQUIRE_LIBATOMIC)

‎Source/cmake/OptionsGTK.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ if (APPLE)
445445
endif ()
446446

447447
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
448-
set(MALLOC_HEAP_BREAKDOWN_FRAMEWORKS MallocHeapBreakdown)
448+
set(MALLOC_HEAP_BREAKDOWN_LIBRARIES MallocHeapBreakdown)
449449
endif ()
450450

451451
# Using DERIVED_SOURCES_DIR is deprecated

‎Source/cmake/OptionsWPE.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ if (USE_LIBBACKTRACE)
424424
endif ()
425425

426426
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
427-
set(MALLOC_HEAP_BREAKDOWN_FRAMEWORKS MallocHeapBreakdown)
427+
set(MALLOC_HEAP_BREAKDOWN_LIBRARIES MallocHeapBreakdown)
428428
endif ()
429429

430430
# Using DERIVED_SOURCES_DIR is deprecated

‎Source/cmake/WebKitFS.cmake‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ set(TestRunnerShared_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/TestRunnerShared/D
4545
set(DumpRenderTree_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DumpRenderTree/DerivedSources")
4646
set(WebKitTestRunner_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/WebKitTestRunner/DerivedSources")
4747

48-
set(MallocHeapBreakdown_FRAMEWORK_HEADERS_DIR "${CMAKE_BINARY_DIR}/MallocHeapBreakdown/Headers")
4948
set(bmalloc_FRAMEWORK_HEADERS_DIR "${CMAKE_BINARY_DIR}/bmalloc/Headers")
5049
set(ANGLE_FRAMEWORK_HEADERS_DIR "${CMAKE_BINARY_DIR}/ANGLE/Headers")
5150
set(Skia_FRAMEWORK_HEADERS_DIR "${CMAKE_BINARY_DIR}/Skia/Headers")

‎Tools/TestWebKitAPI/CMakeLists.txt‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ if (NOT USE_SYSTEM_MALLOC)
151151
list(APPEND TestWTF_FRAMEWORKS bmalloc)
152152
endif ()
153153

154-
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
155-
list(APPEND TestWTF_FRAMEWORKS ${MALLOC_HEAP_BREAKDOWN_FRAMEWORKS})
156-
endif ()
157-
158154
WEBKIT_EXECUTABLE_DECLARE(TestWTF)
159155

160156
# TestJavaScriptCore definitions

0 commit comments

Comments
 (0)