Move flags non-qt-related flags from external_qt to common_options
This commit is contained in:
parent
3b4cffcfa7
commit
3fbee998ae
3 changed files with 32 additions and 32 deletions
30
external/qt/CMakeLists.txt
vendored
30
external/qt/CMakeLists.txt
vendored
|
|
@ -276,29 +276,6 @@ else()
|
||||||
INTERFACE
|
INTERFACE
|
||||||
${qt_loc}/mkspecs/linux-g++
|
${qt_loc}/mkspecs/linux-g++
|
||||||
)
|
)
|
||||||
target_link_options(external_qt
|
|
||||||
INTERFACE
|
|
||||||
-static-libstdc++
|
|
||||||
-pthread
|
|
||||||
-rdynamic
|
|
||||||
)
|
|
||||||
if (DESKTOP_APP_USE_ALLOCATION_TRACER)
|
|
||||||
target_link_options(external_qt
|
|
||||||
INTERFACE
|
|
||||||
# -Wl,-wrap,__malloc
|
|
||||||
-Wl,-wrap,__libc_malloc
|
|
||||||
-Wl,-wrap,malloc
|
|
||||||
-Wl,-wrap,valloc
|
|
||||||
-Wl,-wrap,pvalloc
|
|
||||||
-Wl,-wrap,calloc
|
|
||||||
-Wl,-wrap,realloc
|
|
||||||
-Wl,-wrap,memalign
|
|
||||||
-Wl,-wrap,aligned_alloc
|
|
||||||
-Wl,-wrap,posix_memalign
|
|
||||||
-Wl,-wrap,free
|
|
||||||
-Wl,--no-as-needed,-lrt
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
target_link_static_libraries(external_qt
|
target_link_static_libraries(external_qt
|
||||||
INTERFACE
|
INTERFACE
|
||||||
proxy
|
proxy
|
||||||
|
|
@ -320,13 +297,6 @@ else()
|
||||||
xcb-render-util
|
xcb-render-util
|
||||||
xcb-keysyms
|
xcb-keysyms
|
||||||
)
|
)
|
||||||
if (DESKTOP_APP_USE_ALLOCATION_TRACER)
|
|
||||||
target_link_libraries(external_qt
|
|
||||||
INTERFACE
|
|
||||||
desktop-app::linux_allocation_tracer
|
|
||||||
$<TARGET_FILE:desktop-app::linux_allocation_tracer>
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
if (Qt5WaylandClient_FOUND)
|
if (Qt5WaylandClient_FOUND)
|
||||||
target_link_libraries(external_qt
|
target_link_libraries(external_qt
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,4 @@ PRIVATE
|
||||||
linux_allocation_trace_reader.cpp
|
linux_allocation_trace_reader.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_options(allocation_trace_reader PRIVATE -static-libstdc++)
|
|
||||||
|
|
||||||
set_target_properties(allocation_trace_reader PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set_target_properties(allocation_trace_reader PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,38 @@ INTERFACE
|
||||||
desktop-app::external_jemalloc
|
desktop-app::external_jemalloc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (DESKTOP_APP_USE_ALLOCATION_TRACER)
|
||||||
|
target_link_options(common_options
|
||||||
|
INTERFACE
|
||||||
|
# -Wl,-wrap,__malloc
|
||||||
|
-Wl,-wrap,__libc_malloc
|
||||||
|
-Wl,-wrap,malloc
|
||||||
|
-Wl,-wrap,valloc
|
||||||
|
-Wl,-wrap,pvalloc
|
||||||
|
-Wl,-wrap,calloc
|
||||||
|
-Wl,-wrap,realloc
|
||||||
|
-Wl,-wrap,memalign
|
||||||
|
-Wl,-wrap,aligned_alloc
|
||||||
|
-Wl,-wrap,posix_memalign
|
||||||
|
-Wl,-wrap,free
|
||||||
|
-Wl,--no-as-needed,-lrt
|
||||||
|
)
|
||||||
|
target_link_libraries(common_options
|
||||||
|
INTERFACE
|
||||||
|
desktop-app::linux_allocation_tracer
|
||||||
|
$<TARGET_FILE:desktop-app::linux_allocation_tracer>
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DESKTOP_APP_USE_PACKAGED)
|
||||||
|
target_link_options(common_options
|
||||||
|
INTERFACE
|
||||||
|
-static-libstdc++
|
||||||
|
-pthread
|
||||||
|
-rdynamic
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (DESKTOP_APP_USE_PACKAGED)
|
if (DESKTOP_APP_USE_PACKAGED)
|
||||||
find_library(ATOMIC_LIBRARY atomic)
|
find_library(ATOMIC_LIBRARY atomic)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue