-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.pri.example
104 lines (85 loc) · 3.65 KB
/
conf.pri.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Dependencies include and library paths
# ---
# range-v3 library (header only)
# Arch - pacman -S range-v3
# Gentoo - emerge dev-cpp/range-v3
# Ubuntu - apt install librange-v3-dev
# nlohmann_json library (header only)
# Arch - pacman -S nlohmann-json
# Gentoo - emerge dev-cpp/nlohmann_json
# Ubuntu - apt install nlohmann-json3-dev
# ccache
# Arch - pacman -S ccache
# Gentoo - emerge dev-util/ccache
# Ubuntu - apt install ccache
disable_autoconf {
# load(private/tiny_system_includepath)
load(private/tiny_find_packages)
TINYORM_BUILDS_DIR = $$quote($$TINY_MAIN_DIR/TinyORM-builds-qmake)
}
# MinGW
win32-g++|win32-clang-g++ {
# Enable ccache wrapper
# CONFIG *= ccache
# Use faster linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
# Includes
# vcpkg - nlohmann-json and range-v3
# tiny_find_vcpkg()
# tiny_find_vcpkg($$quote(C:/msys64/home/xyz/Code/vcpkg/), x64-mingw-dynamic)
# tiny_add_system_includepath(\
# $$quote(C:/msys64/home/xyz/Code/vcpkg/installed/x64-mingw-dynamic/include/))
# Libraries
# TinyORM library
# Support GCC and Clang
# build-TinyORM-Desktop_Qt_6_5_2_MSYS2_UCRT64_64bit-Debug
# build-TinyORM-Desktop_Qt_6_5_2_MSYS2_UCRT64_clang_64bit-Debug
clang: LIBS += $$quote(-L$$TINYORM_BUILDS_DIR/build-TinyORM-Desktop_Qt_$${TINY_QT_VERSION_UNDERSCORED}_MSYS2_UCRT64_clang_64bit-$${TINY_RELEASE_TYPE_CAMEL}/src$${TINY_BUILD_SUBFOLDER}/)
else:gcc: LIBS += $$quote(-L$$TINYORM_BUILDS_DIR/build-TinyORM-Desktop_Qt_$${TINY_QT_VERSION_UNDERSCORED}_MSYS2_UCRT64_64bit-$${TINY_RELEASE_TYPE_CAMEL}/src$${TINY_BUILD_SUBFOLDER}/)
LIBS += -lTinyOrm
}
# Windows (excluding MinGW)
else:win32-msvc|win32-clang-msvc {
# Enable ccache wrapper
# CONFIG *= ccache
# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
# Includes
# vcpkg - nlohmann-json and range-v3
# tiny_find_vcpkg()
# tiny_find_vcpkg($$quote(E:/xyz/vcpkg/), x64-windows)
# tiny_add_system_includepath($$quote(E:/xyz/vcpkg/installed/x64-windows/include/))
# Libraries
# TinyORM library
# build-TinyORM-Desktop_Qt_6_5_2_MSVC2022_64bit-Debug
LIBS += $$quote(-L$$TINYORM_BUILDS_DIR/build-TinyORM-Desktop_Qt_$${TINY_QT_VERSION_UNDERSCORED}_$${TINY_MSVC_VERSION}_64bit-$${TINY_RELEASE_TYPE_CAMEL}/src$${TINY_BUILD_SUBFOLDER}/)
LIBS += -lTinyOrm
}
# Unix
else:unix {
# Use faster linker
clang: CONFIG *= use_lld_linker
else: CONFIG *= use_gold_linker
# Or use mold linker
# QMAKE_LFLAGS *= -fuse-ld=mold
# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
# Includes
# vcpkg - nlohmann-json and range-v3
# tiny_find_vcpkg()
# tiny_find_vcpkg($$quote(/home/xyz/Code/c/vcpkg/installed/x64-linux/include/), \
# x64-linux)
# tiny_add_system_includepath(\
# $$quote(/home/xyz/Code/c/vcpkg/installed/x64-linux/include/))
# Libraries
# TinyORM library
# Support GCC and Clang
# build-TinyORM-Desktop_Qt_6_5_2_GCC_64bit_ccache-Debug
# build-TinyORM-Desktop_Qt_6_5_2_clang16_64bit_ccache-Debug
clang: LIBS += $$quote(-L$$TINYORM_BUILDS_DIR/build-TinyORM-Desktop_Qt_$${TINY_QT_VERSION_UNDERSCORED}_clang$${QMAKE_CLANG_MAJOR_VERSION}_64bit$${TINY_CCACHE_BUILD}-$${TINY_RELEASE_TYPE_CAMEL}/src$${TINY_BUILD_SUBFOLDER}/)
else:gcc: LIBS += $$quote(-L$$TINYORM_BUILDS_DIR/build-TinyORM-Desktop_Qt_$${TINY_QT_VERSION_UNDERSCORED}_GCC_64bit$${TINY_CCACHE_BUILD}-$${TINY_RELEASE_TYPE_CAMEL}/src$${TINY_BUILD_SUBFOLDER}/)
LIBS += -lTinyOrm
}