Skip to content

Commit d4a3a67

Browse files
committed
Updated cmake sources to TDesktop version 3.5.2+93a9f34
2 parents edd3374 + 6f39128 commit d4a3a67

File tree

4 files changed

+11
-110
lines changed

4 files changed

+11
-110
lines changed

external/jemalloc/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ endif()
3333
include(ExternalProject)
3434
ExternalProject_Add(jemalloc
3535
URL ${third_party_loc}/jemalloc
36-
CONFIGURE_COMMAND cd "<SOURCE_DIR>" && export EXTRA_CFLAGS=-fstack-protector-all\ -fPIC\ -D_FORTIFY_SOURCE=2 && export EXTRA_CXXFLAGS=-fstack-protector-all\ -fPIC\ -D_FORTIFY_SOURCE=2 && CC=clang CXX=clang++ ./autogen.sh
36+
CONFIGURE_COMMAND env
37+
CC=clang
38+
CXX=clang++
39+
"EXTRA_CFLAGS=-fstack-protector-all -D_FORTIFY_SOURCE=2"
40+
"EXTRA_CXXFLAGS=-fstack-protector-all -D_FORTIFY_SOURCE=2"
41+
./autogen.sh --disable-shared
3742
BUILD_IN_SOURCE 1
3843
STEP_TARGETS build
3944
EXCLUDE_FROM_ALL TRUE
40-
BUILD_BYPRODUCTS <SOURCE_DIR>/lib/libjemalloc.a
45+
BUILD_BYPRODUCTS <SOURCE_DIR>/lib/libjemalloc_pic.a
4146
)
4247

4348
ExternalProject_Get_property(jemalloc SOURCE_DIR)
@@ -50,7 +55,7 @@ INTERFACE
5055

5156
target_link_libraries(external_jemalloc
5257
INTERFACE
53-
-Wl,--push-state,--whole-archive,${SOURCE_DIR}/lib/libjemalloc.a,--pop-state,-ldl
58+
-Wl,--push-state,--whole-archive,${SOURCE_DIR}/lib/libjemalloc_pic.a,--pop-state
5459
)
5560

5661
add_dependencies(external_jemalloc jemalloc-build)

external/kwayland/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,18 @@ ExternalProject_Add_StepDependencies(plasma-wayland-protocols configure extra-cm
7676
ExternalProject_Get_property(plasma-wayland-protocols BINARY_DIR)
7777
set(plasma_wayland_protocols_binary_dir ${BINARY_DIR})
7878

79-
set(kwayland_patch_command)
80-
if (DESKTOP_APP_QT6)
81-
set(kwayland_patch_command PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/kwayland-qt6.patch)
82-
endif()
83-
8479
ExternalProject_Add(kwayland
8580
URL ${third_party_loc}/kwayland
8681
CMAKE_GENERATOR Ninja
8782
CMAKE_ARGS
8883
-DCMAKE_BUILD_TYPE=Release
8984
-DBUILD_SHARED_LIBS=OFF
9085
-DBUILD_TESTING=OFF
86+
-DBUILD_WITH_QT6=${DESKTOP_APP_QT6}
87+
-DEXCLUDE_DEPRECATED_BEFORE_AND_AT=5.91.0
9188
-DCMAKE_PREFIX_PATH=${wayland_protocols_binary_dir}
9289
-DECM_DIR=${extra_cmake_modules_binary_dir}/share/ECM/cmake
9390
-DPlasmaWaylandProtocols_DIR=${plasma_wayland_protocols_binary_dir}/lib/cmake/PlasmaWaylandProtocols
94-
${kwayland_patch_command}
95-
BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target KF5WaylandClient
9691
STEP_TARGETS build
9792
EXCLUDE_FROM_ALL TRUE
9893
BUILD_BYPRODUCTS <BINARY_DIR>/lib/libKF5WaylandClient.a

external/kwayland/kwayland-qt6.patch

Lines changed: 0 additions & 99 deletions
This file was deleted.

options_linux.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ endif()
6464

6565
target_link_libraries(common_options
6666
INTERFACE
67-
desktop-app::linux_jemalloc_helper
6867
$<TARGET_OBJECTS:desktop-app::linux_jemalloc_helper>
68+
$<LINK_ONLY:desktop-app::external_jemalloc>
6969
${CMAKE_DL_LIBS}
7070
)
7171

0 commit comments

Comments
 (0)