Commit Graph

254 Commits

Author SHA1 Message Date
orignal
c21cf0565b removed C++11 support 2024-09-02 10:55:22 -04:00
orignal
4a4b76141a C++20 support 2024-08-28 11:34:07 -04:00
orignal
0992a5124f removed dependency from boost::date_time 2024-08-25 20:18:55 -04:00
r4sas
9a6654943d
moved binary to /usr/bin (closes #2053 #2068)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2024-07-20 17:25:30 +00:00
Fabrice Fontaine
6b33250c59 build/CMakeLists.txt: enable C language
Detection of libatomic is broken since version 2.47.0 and
b7f0d87daf
because C language is not enabled anymore:

-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - not found
CMake Error at cmake_modules/CheckAtomic.cmake:59 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  CMakeLists.txt:54 (include)

Indeed if C language is not enabled, the test will be run with the C++
compiler resulting in the following error:

Building CXX object CMakeFiles/cmTC_03d01.dir/CheckFunctionExists.cxx.o
        /home/fabrice/buildroot/output/host/bin/x86_64-linux-g++ --sysroot=/home/fabrice/buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=__atomic_fetch_add_4  -DNDEBUG -o CMakeFiles/cmTC_03d01.dir/CheckFunctionExists.cxx.o -c /home/fabrice/buildroot/output/build/i2pd-2.49.0/build/CMakeFiles/CMakeScratch/TryCompile-NApnv9/CheckFunctionExists.cxx
        <command-line>: error: new declaration ‘char __atomic_fetch_add_4()’ ambiguates built-in declaration ‘unsigned int __atomic_fetch_add_4(volatile void*, unsigned int, int)’ [-fpermissive]

whereas with a C compiler, we'll get:

Building C object CMakeFiles/cmTC_7e47b.dir/CheckFunctionExists.c.o
        /home/fabrice/buildroot/output/host/bin/x86_64-linux-gcc --sysroot=/home/fabrice/buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=__atomic_fetch_add_4  -DNDEBUG -o CMakeFiles/cmTC_7e47b.dir/CheckFunctionExists.c.o -c /home/fabrice/buildroot/output/build/i2pd-2.49.0/build/CMakeFiles/CMakeScratch/TryCompile-e0zFMG/CheckFunctionExists.c
        <command-line>: warning: conflicting types for built-in function ‘__atomic_fetch_add_4’; expected ‘unsigned int(volatile void *, unsigned int,  int)’ [-Wbuiltin-declaration-mismatch]

Fix #1908

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2023-11-12 10:29:24 +00:00
Vort
0a519d8072 Fix MSVC compilation for std::max 2023-10-15 18:08:15 +03:00
hfsfox
0cf656cd76
Add Haiku OS support (#1970) 2023-09-28 22:30:38 +03:00
R4SAS
7b6aa41ca8
CPU: remove AVX code, switch to __builtin for AES detection (#1959)
* [cpu] remove avx detect and code blocks, try to switch to __builtin
* [cpu] use __builtin_* only on x86 systems
* [cpu] perform check in separate function
* [cpu] set AES definition on MSVC
* update x86 and aes support checks at compile time
* [cmake] update comment about AES on MSVC
2023-08-31 19:52:51 +03:00
r4sas
a2726cf206
[cmake] print commit-based version if option is used
Signed-off-by: r4sas <r4sas@i2pmail.org>
2023-05-23 00:44:46 +03:00
R4SAS
e96f0bfb14
[msvc] fix warnings, revert cmake boost libs linking list
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-03-13 18:34:45 +00:00
R4SAS
8677cd54bd
[cmake] win32: do not use static boost libs without WITH_STATIC
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-03-12 21:41:20 +00:00
R4SAS
b6d1d8117b
[GHA] Windows MSVC workflow (#1904) 2023-03-10 04:32:07 +03:00
R4SAS
0a8da6bc2f
[cmake] msvc build revision
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-03-08 14:41:29 +03:00
Vort
231c02c058 Make Win32NetState compatible with MSVC 2023-03-01 22:41:31 +02:00
Vort
a199084c99 Add MSVC support to CMake build 2023-03-01 08:52:40 +02:00
Vort
10dfe39f5f
Fix architecture detection in cmake build (#1890) 2023-02-27 15:32:42 +03:00
R4SAS
b7f0d87daf
GHA and Cmake changes (#1888)
Done with Vort's (https://github.com/Vort) cooperation

Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-02-26 23:38:23 +03:00
barracuda156
00c75a7afa CMakeLists.txt: update comment re Boost and atomics on PPC 2023-02-15 18:16:03 +00:00
barracuda156
385e592045 TargetArch.cmake: fix info re OSX arch support, update copyright year 2023-02-15 18:16:03 +00:00
R4SAS
3cee8bfcb2
Update tests and corresponding makefiles (#1862) 2023-01-30 04:17:49 +03:00
R4SAS
446bbf6b93
Merge pull request #1812 from barracuda156/tests
Add implementation of tests with CMake, plus a few minor fixes
2023-01-01 10:55:29 +00:00
Eric Long
54b7d4ef32 Fix CheckAtomic.cmake 2022-12-24 22:04:57 +08:00
barracuda156
aa5e6400e4 CMakeLists: use a fix for atomics on macOS PPC, not PPC in general 2022-11-26 06:35:28 +08:00
barracuda156
61bcfebcc8 Add CMake support for tests 2022-11-26 06:32:56 +08:00
R4SAS
8df4082d6f
[cmake] Use std::atomic on PowerPC inside boost (#1726)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-11-20 08:40:03 +03:00
Sergey Fedorov
7f98a8b972
Fix definitions for Darwin PPC; do not use pthread_setname_np on unsupported OS versions (#1797)
* Correct define for Darwin PPC is __POWERPC__

* util.cpp: do not use pthread_setname_np on unsupported macOS versions
2022-11-06 13:48:02 +03:00
orignal
2470ba76f0 fixed cmake build 2022-08-28 07:15:02 -04:00
orignal
d32475440a fixed cmake build 2022-08-28 06:58:50 -04:00
R4SAS
3a5295dbb9
[cmake] remove unnecessary target link
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-06-21 04:53:28 +03:00
R4SAS
39f14fd952
[cmake] add GetGitRevisionDecription module
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-06-21 03:05:33 +03:00
R4SAS
4d59df9f59
[cmake] add support of getting version from git (as in makefiles)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-06-21 03:03:35 +03:00
R4SAS
29a4366dcf
fix mingw build script
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-06-01 00:12:51 +03:00
R4SAS
9b2ac4349e [cmake] use Threads::Threads (closes #1735)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-05-31 21:59:28 +03:00
R4SAS
9c87fe79ea
[openssl] suppress deprecation messages
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-05-24 15:06:01 +03:00
R4SAS
bd00112562 update windows build script
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-05-24 14:39:11 +03:00
R4SAS
70dca81c40 dropped MESHNET build option
Dropping MESHNET build option due to lack of usage. That change won't
affect on usage with currently supported Yggdrasil network.

Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-03-24 01:36:12 +03:00
R4SAS
b7e20b9b86
2.41.0
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-20 16:57:58 +03:00
R4SAS
a5d6972913
[win] update build script license year
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-20 12:54:48 +03:00
R4SAS
e4cb42c599
[win] add binary signing support
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-20 12:53:31 +03:00
R4SAS
dceb0fb8c5
[cmake] add warning about MESHNET option
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-16 11:39:09 +03:00
R4SAS
05c1856389
[cmake] do not use CMAKE_OSX_ARCHITECTURES for check
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-14 23:53:55 +03:00
R4SAS
dc5cba60d1
[cmake] add MAC_OSX define for Mac
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-14 22:58:56 +03:00
R4SAS
a272a2cb7e
[cmake] update min version, drop PCH
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-11 07:23:33 +03:00
R4SAS
43b990afe6
[cmake] disable deprecation warning when OpenSSL 3 is used
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-11 07:00:30 +03:00
R4SAS
31242401e5 [cmake] update TargetArch.cmake (#1724)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-02 06:07:01 +03:00
R4SAS
27116b9f30
2.40.0
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2021-11-28 04:26:44 +03:00
R4SAS
8a8e328fcf
[build] include contrib/webconsole to windows packages
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2021-11-28 03:50:05 +03:00
R4SAS
0c25e8f1eb [build] changes in windows build script
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2021-10-19 18:24:18 +03:00
r4sas
a3b172bbcb [makefile] change back directories creation, create them before compiling object files 2021-08-06 21:19:05 +00:00
r4sas
ff0e23d2c4
[cmake] use GNUInstallDirs for libraries destination path (#1672)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2021-07-02 16:43:41 +00:00