• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revisión688d947dfe15b9a943de4cecf159073a9e114a86 (tree)
Tiempo2022-02-21 02:12:13
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[Build][GCC11][Qt6] Add sample bootstrap script with Qt6.

Cambiar Resumen

Diferencia incremental

--- /dev/null
+++ b/source/sample-scripts/build_default_vars.Qt6Sample.gcc11.sh
@@ -0,0 +1,105 @@
1+#!/bin/sh
2+SANITRIZER_FLAGS=""
3+
4+I_LIB_CLANG_FLAGS=""
5+L_LIB_CLANG_FLAGS=""
6+I_LIB_CLANGPP_FLAGS=""
7+L_LIB_CLANGPP_FLAGS=""
8+
9+#SANITRIZER_FLAGS="-fsanitize=address"
10+#I_LIB_CLANG_FLAGS=""
11+#L_LIB_CLANG_FLAGS=""
12+#I_LIB_CLANGPP_FLAGS="-stdlib=libc++"
13+#L_LIB_CLANGPP_FLAGS="-stdlib=libc++"
14+#I_LIB_CLANGPP_FLAGS="-stdlib=libstdc++"
15+#L_LIB_CLANGPP_FLAGS="-stdlib=libstdc++"
16+#CSP_LLVM_TOOLCHAIN_VERSION=13
17+CSP_SIMD_FLAGS=" \
18+ -msse2 \
19+ -mfpmath=sse \
20+ "
21+
22+CSP_BASIC_DEBUGFLAGS=" \
23+ -ggdb \
24+ -gz \
25+ "
26+# -Wa,--compress-debug-sections=zlib \
27+
28+CSP_BASIC_CFLAGS=" \
29+ -O3 \
30+ -fno-fat-lto-objects \
31+ -flto \
32+ -flto-compression-level=19 \
33+ -pthread \
34+ "
35+# -flto=thin \
36+
37+CSP_ARCH_CFLAGS=" \
38+ ${CSP_SIMD_FLAGS} \
39+ "
40+
41+CSP_ARCH_LDFLAGS=" \
42+ ${CSP_SIMD_FLAGS} \
43+ "
44+
45+CSP_ADDITIONAL_LDFLAGS_DLL=" \
46+ -flto=jobserver \
47+ -flto-compression-level=19 \
48+ -fuse-ld=gold \
49+ -fuse-linker-plugin \
50+ -Wl,--compress-debug-sections=zlib \
51+ "
52+
53+CSP_ADDITIONAL_LDFLAGS_EXE=" \
54+ -fwhole-program \
55+ -flto-compression-level=19 \
56+ -fuse-ld=gold \
57+ -fuse-linker-plugin \
58+ -Wl,--compress-debug-sections=zlib \
59+ "
60+
61+
62+cmake .. -DCMAKE_TOOLCHAIN_FILE="$PWD/../cmake/toolchains/toolchain_native_gcc11.cmake" \
63+ -DCMAKE_BUILD_TYPE=Relwithdebinfo \
64+ -DCMAKE_C_FLAGS_RELWITHDEBINFO=" \
65+ ${CSP_BASIC_DEBUGFLAGS} \
66+ ${CSP_BASIC_CFLAGS} \
67+ ${CSP_ARCH_CFLAGS} \
68+ ${SANITIZER_FLAGS} \
69+ ${I_LIB_CLANG_FLAGS} \
70+ ${L_LIB_CLANG_FLAGS} \
71+ " \
72+ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=" \
73+ ${CSP_BASIC_DEBUGFLAGS} \
74+ ${CSP_BASIC_CFLAGS} \
75+ ${CSP_ARCH_CFLAGS} \
76+ ${I_LIB_CLANGPP_FLAGS} \
77+ ${L_LIB_CLANGPP_FLAGS} \
78+ ${SANITIZER_FLAGS} \
79+ " \
80+ -DCMAKE_EXE_LINKER_FLAGS="\
81+ ${CSP_BASIC_DEBUGFLAGS} \
82+ ${CSP_BASIC_LDFLAGS} \
83+ ${CSP_ARCH_LDFLAGS} \
84+ ${I_LIB_CLANG_FLAGS} \
85+ ${L_LIB_CLANG_FLAGS} \
86+ ${I_LIB_CLANGPP_FLAGS} \
87+ ${L_LIB_CLANGPP_FLAGS} \
88+ ${SANITIZER_FLAGS} \
89+ ${CSP_ADDITIONAL_LDFLAGS_EXE} \
90+ " \
91+ -DCMAKE_MODULE_LINKER_FLAGS="\
92+ ${CSP_BASIC_DEBUGFLAGS} \
93+ ${CSP_BASIC_LDFLAGS} \
94+ ${CSP_ARCH_LDFLAGS} \
95+ ${I_LIB_CLANG_FLAGS} \
96+ ${L_LIB_CLANG_FLAGS} \
97+ ${I_LIB_CLANGPP_FLAGS} \
98+ ${L_LIB_CLANGPP_FLAGS} \
99+ ${SANITIZER_FLAGS} \
100+ ${CSP_ADDITIONAL_LDFLAGS_DLL} \
101+ " \
102+ -DUSE_QT_6=ON \
103+ -DUSE_LTO=ON \
104+ -DCSP_BUILD_WITH_CXX20=ON
105+
Show on old repository browser