forked from grantrostig/cpp_by_example
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patharray_init.pro
More file actions
384 lines (356 loc) · 16.7 KB
/
array_init.pro
File metadata and controls
384 lines (356 loc) · 16.7 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
SOURCES += \
main.cpp
# Copyright (c) Grant Rostig, grantrostig.com, Boost 1.0 license
# LONG version versus BRIEF
# Either these three or the next 2, for app or lib, respectively.
TEMPLATE = app # comment out these 3,
SOURCES = main.cpp # we add SOURCES others below.
CONFIG += console
#TEMPLATE = lib # OR comment out these 2.
#CONFIG += staticlib
#CONFIG += c++latest # 2a
#CONFIG += c++23 # no effect?
#CONFIG += c++20 # 2a, only seems to set -std=c++2a or =gnu++2a
#CONFIG += c++11
CONFIG -= app_bundle
#CONFIG += cmdline
#CONFIG += console # windowsonly
#CONFIG += exceptions
#CONFIG += exceptions_off
CONFIG -= qt
#CONFIG += staticlib
#CONFIG += thread
#CONFIG += warn_on
#CONFIG += warn_off
#TARGET = eigen_playground
# ??CONFIG += QMAKE_CFLAGS_WARN_ON
# ??CONFIG += QMAKE_CXXFLAGS_WARN_ON
# // Compiler to use (comment out to use default one).
#DEFINES =
#QMAKE_LFLAGS += -static # actually makes a static object.
#CONFIG += static wrong? why?
#QMAKE_CXX = clang++
QMAKE_CXXFLAGS += \ #https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/
-fconcepts \
#-funsigned-char \
#-fmodules-ts \
#-fsanitize=undefined \ # 60K link errors possible \
\
-std=c++26 \
#-std=c++23 \
#-std=gnu++23 \
-g3 \
-O0 \
#-ggdb \
#-ggdb3 \
#-pedantic \
#-pedantic-errors \
-Wall \ # https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html \
#-Wconversion \
#-Wdeprecated-declarations \
#-Weffc++ \
-Wextra \
#-Wsign-conversion \
#-Wno-comment \
#-Wno-reorder \
#-Wno-uninitialized \
#-Wno-unused-parameter \
#-Wno-unused-variable \
#-Wno-unused-const-variable \
#-std=c++17 \ #https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Link-Options.html
#-std=gnu++17 \
#-std=gnu++1z \
#-std=c++20 \
#-std=gnu++20 \
#-std=c++2a \
#-std=c++2b \
#-DBOOST_LOG_DYN_LINK \ # on compile line not link line.
#-DBOOST_SYSTEM_NO_DEPRECATED \ # not sure what it does.
LIBS += \ # https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Link-Options.html
#-lcrypto \ # Needed with: -lssl
#-lcryptopp \
-lpthread \
#-lssl \ # Requires: -lcrypto
#-lpthread \
-lrt \
-lstdc++exp \
#-lstdc++_libbacktrace \ # allowed stack_trace to work in gcc 13, not 14, there needed -lstdc++exp
#-lbson \
#-lmongoc \
#-lmysqlclient \
\
#-lboost_system \
#-lboost_coroutine \
#-lcurl \
#-ldl \
#-lrt \
#-lz \
#-llibz \
#-lzlib \
#-L/usr/lib64 \
#--verbose \
\
# DOCUMENTATION: gcc libstdc++ Table 3.1. C++ Command Options
#-std=c++98 or -std=c++03 Use the 1998 ISO C++ standard plus amendments.
#-std=gnu++98 or -std=gnu++03 As directly above, with GNU extensions.
#-std=c++11 Use the 2011 ISO C++ standard.
#-std=gnu++11 As directly above, with GNU extensions.
#-std=c++14 Use the 2014 ISO C++ standard.
#-std=gnu++14 As directly above, with GNU extensions.
#-fno-exceptions See exception-free dialect
#-fno-rtti As above, but RTTI-free dialect.
#-pthread For ISO C++11 <thread>, <future>, <mutex>, or <condition_variable>.
#-latomic Linking to libatomic is required for some uses of ISO C++11 <atomic>.
#-lstdc++exp Linking to libstdc++exp.a is required for use of experimental C++ library features. This currently provides support for the C++23 types defined in the <stacktrace> header, the Filesystem library extensions defined in the <experimental/filesystem> header, and the Contracts extensions enabled by -fcontracts.
#-lstdc++fs Linking to libstdc++fs.a is another way to use the Filesystem library extensions defined in the <experimental/filesystem> header. The libstdc++exp.a library also provides all the symbols contained in this library.
#-fopenmp For parallel mode.
#-ltbb Linking to tbb (Thread Building Blocks) is required for use of the Parallel Standard Algorithms and execution policies in <execution>.
#-ffreestanding Limits the library to its freestanding subset. Headers that are not supported in freestanding will emit a "This header is not available in freestanding mode" error. Headers that are in the freestanding subset partially will not expose functionality that is not part of the freestanding subset.
#INCLUDEPATH += $$PWD/../lib_tty
#INCLUDEPATH += $$PWD/.
#DEPENDPATH += $$PWD/../lib_tty
#SUBDIRS +=
#if (!include(../../config.txt)) {
# error("Failed to open config.txt")
#}
HEADERS += \
#global_entities.hpp \
#$$PWD/..h \ # probably wrong
SOURCES += \
# NOT HERE main.cpp \ # declared above for app, and not declared above for lib. Therefore do NOT declare it here in either case.
#global_entities.cpp \
HEADERS += \
#boost_headers.hpp \
#catch_amalgamated.hpp \
#cpp_headers.hpp \
#gnuplot-iostream.hpp \
#iostreams.hpp \
#math_grostig.hpp \
#ostream_joiner_gr.hpp \
#random_toolkit.hpp \
#ut.cppm \
SOURCES += \
#boost_headers.cpp \
#catch_amalgamated.cpp \
#cpp_headers.cpp \
#gnuplot-iostream.cpp \
#iostreams.cpp \
#math_grostig.cpp \
#ostream_joiner_gr.cpp \
#random_toolkit.cpp \
#ut.cppm \
DISTFILES += \
CMakeLists.grostig.txt \
Makefile.txt \
README.txt \
example.pro.txt \
clang-format_grostig_qt.xml \
grostig_tools_LONG.pro.txt \
grostig_tools_BRIEF.pro.txt \
DISTFILES += \
boost_headers.hpp.txt \
boost_headers.cpp.txt \
catch_amalgamated.hpp.txt \
catch_amalgamated.cpp.txt \
cpp_headers.hpp.txt \
cpp_headers.cpp.txt \
gnuplot-iostream.hpp.txt \
gnuplot-iostream.cpp.txt \
iostreams.hpp.txt \
iostreams.cpp.txt \
math_grostig.hpp.txt \
math_grostig.cpp.txt \
ostream_joiner_gr.hpp.txt \
ostream_joiner_gr.cpp.txt \
random_toolkit.hpp.txt \
random_toolkit.cpp.txt \
ut.hpp.txt \
ut.cppm.txt \
####################################################
# // Boost specific defines.
#DEFINES += BOOST_THREAD_VERSION=4
#DEFINES += BOOST_ASIO_DISABLE_STD_ATOMIC=1 # Workaround for GCC-4.6 issues with atomics
#DEFINES += BOOST_ASIO_DISABLE_HANDLER_TYPE_REQUIREMENTS=1 # Workaround for move-only functors support for ASIO
#isEmpty(BOOST_PATH) {
# # Path to the Boost.
# #BOOST_PATH = /data/boost_1_63_0/
# BOOST_PATH = /data/boost/
# #BOOST_PATH = /home/antoshkka/experiments/boost_1_63_0/
#}
# Paths to boost headers and libraries
# (if you are using Linux and installed Boost from repository you may comment out those lines).
#INCLUDEPATH += $$BOOST_PATH
#QMAKE_RPATHDIR += $$BOOST_PATH/stage/lib
# boost on fedora26, which is a parial list only derived from the Unbuntu list below.
#LIBS += \
# -lboost_atomic \
# -lboost_chrono \
# -lboost_context \
# -lboost_coroutine \
# -lboost_date_time \
# -lboost_fiber \
# -lboost_filesystem \
# -lboost_graph_parallel \
# -lboost_graph \
# -lboost_iostreams \
# -lboost_locale \
# -lboost_log_setup \
# -lboost_log \
# -lboost_math_c99f \
# -lboost_math_c99l \
# -lboost_math_c99 \
# -lboost_math_tr1f \
# -lboost_math_tr1l \
# -lboost_math_tr1 \
# -lboost_mpi_python-py27 \
# -lboost_mpi_python-py35 \
# -lboost_mpi_python \
# -lboost_mpi \
# -lboost_prg_exec_monitor \
# -lboost_program_options \
# -lboost_python-py27 \
# -lboost_python-py35 \
# -lboost_python \
# -lboost_random \
# -lboost_regex \
# -lboost_serialization \
# -lboost_signals \
# -lboost_system \
# -lboost_thread \
# -lboost_timer \
# -lboost_type_erasure \
# -lboost_unit_test_framework \
# -lboost_wave \
# -lboost_wserialization
# boost on ubuntu 17.04
#LIBS += \
# -lboost_atomic \
# -lboost_chrono \
# -lboost_context \
# -lboost_coroutine \
# -lboost_date_time \
# -lboost_fiber \
# -lboost_filesystem \
# -lboost_graph_parallel \
# -lboost_graph \
# -lboost_iostreams \
# -lboost_locale \
# -lboost_log_setup \
# -lboost_log \
# -lboost_math_c99f \
# -lboost_math_c99l \
# -lboost_math_c99 \
# -lboost_math_tr1f \
# -lboost_math_tr1l \
# -lboost_math_tr1 \
# -lboost_mpi_python-py27 \
# -lboost_mpi_python-py35 \
# -lboost_mpi_python \
# -lboost_mpi \
# -lboost_prg_exec_monitor \
# -lboost_program_options \
# -lboost_python-py27 \
# -lboost_python-py35 \
# -lboost_python \
# -lboost_random \
# -lboost_regex \
# -lboost_serialization \
# -lboost_signals \
# -lboost_system \
# -lboost_thread \
# -lboost_timer \
# -lboost_type_erasure \
# -lboost_unit_test_framework \
# -lboost_wave \
# -lboost_wserialization
# intersting switch
#!msvc:LIBS += -lboost_program_options
# Disabling some annoing warnings and adding paths to the Boost libraries.
#msvc {
# QMAKE_LFLAGS += /LIBPATH:$$BOOST_PATH/stage/lib
# DEFINES += _CRT_SECURE_NO_WARNINGS
#} else {
# LIBS += -L$$BOOST_PATH/stage/lib
#}
#DISTFILES += \
#Makefile.txt \
#README.txt \
#catch_amalgamated.cpp.txt \
#CMakeLists.cmake \
# Qt/icons/gallery/index.theme \
# Qt/icons/gallery/20x20/back.png \
# Qt/icons/gallery/20x20/drawer.png \
# Qt/icons/gallery/20x20/menu.png \
# Qt/icons/gallery/20x20@2/back.png \
# Qt/icons/gallery/20x20@2/drawer.png \
# Qt/icons/gallery/20x20@2/menu.png \
# Qt/icons/gallery/20x20@3/back.png \
# Qt/icons/gallery/20x20@3/drawer.png \
# Qt/icons/gallery/20x20@3/menu.png \
# Qt/icons/gallery/20x20@4/back.png \
# Qt/icons/gallery/20x20@4/drawer.png \
# Qt/icons/gallery/20x20@4/menu.png \
# Qt/icons/gallery/index.theme \
# Qt/icons/gallery/20x20/back.png \
# Qt/icons/gallery/20x20/drawer.png \
# Qt/icons/gallery/20x20/menu.png \
# Qt/icons/gallery/20x20@2/back.png \
# Qt/icons/gallery/20x20@2/drawer.png \
# Qt/icons/gallery/20x20@2/menu.png \
# Qt/icons/gallery/20x20@3/back.png \
# Qt/icons/gallery/20x20@3/drawer.png \
# Qt/icons/gallery/20x20@3/menu.png \
# Qt/icons/gallery/20x20@4/back.png \
# Qt/icons/gallery/20x20@4/drawer.png \
# Qt/icons/gallery/20x20@4/menu.png \
# Qt/images/arrow.png \
# Qt/images/arrow@2x.png \
# Qt/images/arrow@3x.png \
# Qt/images/arrow@4x.png \
# Qt/images/arrows.png \
# Qt/images/arrows@2x.png \
# Qt/images/arrows@3x.png \
# Qt/images/arrows@4x.png \
# Qt/images/qt-logo.png \
# Qt/images/qt-logo@2x.png \
# Qt/images/qt-logo@3x.png \
# Qt/images/qt-logo@4x.png \
# README.txt
# CMakeLists.cmake
# Default rules for deployment.
#unix {
#target.path = $$[QT_INSTALL_PLUGINS]/generic
#}
#!isEmpty(target.path): INSTALLS += target
#unix: PRE_TARGETDEPS += $$PWD/../build-lib_tty-Desktop-Debug/liblib_tty.a
#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/release/ -llib_tty
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/debug/ -llib_tty
#else:unix: LIBS += -L$$PWD/../build-lib_tty-Desktop-Debug/ -llib_tty
# win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/release/liblib_tty.a
# else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/debug/liblib_tty.a
# else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/release/lib_tty.lib
# else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/debug/lib_tty.lib
# else:unix: PRE_TARGETDEPS += $$PWD/../build-lib_tty-Desktop_Qt_5_13_1_GCC_64bit-Debug/liblib_tty.a
#mac:{
#INCLUDEPATH += /usr/local/opt/boost/include \
#/usr/local/opt/eigen/include
#LIBS -= -lboost_log
#LIBS += -L/usr/local/opt/boost/lib/ \
#-lboost_log-mt
#}
# Flags to set your compiler into C++03/C++11/C++14 mode.
#msvc {
# # MSVC compilers
# CPP03FLAG =
# CPP11FLAG =
# CPP14FLAG =
#} else {
# # all other compilers
# CPP03FLAG = -std=c++03
# CPP11FLAG = -std=c++0x
# CPP14FLAG = -std=c++14
#}