1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +02:00

151 Commits

Author SHA1 Message Date
Adam 8098ed899a Fixed windows build more, including ldap 2011-03-30 00:55:45 -04:00
Adam 18bd33f9a4 Use precompiled headers when building with gnu g++ to speed up build time 2011-02-16 12:50:23 -05:00
Adam 08583dc107 Moved the language strings which are only used once
out of the core and into the modules that use them.
2011-02-04 15:30:31 -05:00
Adam daa97f0343 Fixed make install because Changes.lang is dead 2010-11-01 17:36:30 -04:00
Adam fb9f41b3e5 Made gettext work on most OSs. Tested on Debian, FreeBSD, Gentoo, and Windows.
Added a search path option to the Config script for cmake to use when finding libraries for modules or for gettext.
Fixed m_mysql and m_ssl to work under Windows, made the Windows Config
program remember the last used options, and fixed Windows release builds.
2010-10-30 19:41:13 -04:00
Naram Qashat 7db5e19f74 Partial fix for finding gettext with CMake, still doesn't fix the lack of finding non-standard paths though. 2010-09-26 15:35:24 -04:00
Adam 7d5893a1c8 Properly detect gettext and dont build langfiles on systems without it 2010-09-26 03:21:00 -04:00
Adam d646d455e2 Changed the language system to use gettext 2010-09-26 02:33:01 -04:00
Adam 46813ccb8c Added an asynchronous DNS system and m_dnsbl, which checks clients against DNS blacklists.
Rewrote internal handling of IPs, we now properly support users using IPv6.
Fixed a few problems with the UnrealIRCd protocol module.
2010-09-09 23:43:11 -04:00
Adam 8a4c6ae618 Updated .gitignore and removed the rest of the old autotools system 2010-08-21 19:39:54 -04:00
Naram Qashat 88d3338fdd Better check for eventfd. 2010-08-21 18:52:12 -04:00
Adam a950ed8cab Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now. 2010-08-15 01:45:38 -04:00
Naram Qashat 7a7b8933bb Cleanup in modulemanager.cpp, make it so CMake only includes the -fno-leading-underscore flag on a GNU compiler, changed the hash compare functions to use struct to appease clang, and made it so hashcomp.h uses tr1/unordered_map with g++ 4.x or up. 2010-07-30 19:24:41 -04:00
Adam 4b870cc5f9 Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds 2010-07-27 21:31:13 -04:00
Adam a22f8d3b2d Moved some files and diretories around, made cmake skip files it knows it can't compile because of missing dependices. 2010-07-15 22:55:02 -04:00
Adam 03fbc7d281 Changed the versioning system to use git 2010-06-25 20:00:21 -04:00
Adam c477360dbf Removed empty.c, instead have cmake create a new empty file when it needs it and deletes it later 2010-06-18 21:01:55 -04:00
Adam 031bc4a8b0 Merged branch threadingengine with master - Added a threading engine 2010-06-18 20:58:54 -04:00
Adam cc3104fc3f Removed .svn from CMakes list of folders to ignore, it not longer exists 2010-06-18 18:22:42 -04:00
Adam- d002ea1952 Moved CODING, TODO, and Changes* to docs/. Removed unused empty file install-sh.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2926 5417fbe8-f217-4b02-8779-1006273d7864
2010-05-02 04:37:17 +00:00
cyberbotx a06e674305 Correctly identify CMake 2.8.x as being CMake 2.6 or better.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2793 5417fbe8-f217-4b02-8779-1006273d7864
2010-02-20 04:21:15 +00:00
cyberbotx 7eadde9911 Possible fix for header dependency calculation causing CMake to freeze due to recursive including, fixed by removing my code to do that and letting CMake figure this out on it's own. Seems to work here, but might need testing still.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2651 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-15 21:14:11 +00:00
cyberbotx 193ab9605b Disable Visual Studio warning 4100 (unreferenced formal parameter) during Windows build, otherwise we get thousands of completely harmless warnings which slow down the build process because they all have to be displayed.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2541 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-08 22:16:40 +00:00
cyberbotx c8c89c7af0 Remove events.h, should have been deleted in earlier patch to replace events system with the new one.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2315 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-09 03:15:38 +00:00
cyberbotx c1bc7cbafc Added ability for CMake to build a module from a subdirectory of src/modules.
Added calculate_libraries() CMake macro to condense library checking in CMakeLists.txt in src/modules.
Fixed slight problem with strip_string() macro call in root CMakeLists.txt.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2302 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-25 18:58:51 +00:00
cyberbotx 8974008304 Really corrected CMake version checking.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2156 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-11 23:05:21 +00:00
cyberbotx 29b9577bd2 Fix the CMake generation to work with older versions of CMake 2.4.x, cleaning up some of the macros and also correcting the code to detect what version of CMake is in use.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2155 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-11 20:10:00 +00:00
cyberbotx efcd7636dc Force locale to C so messages from gcc don't get translated, thanks to DukePyrolator for spotting this.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2140 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-02 21:05:05 +00:00
cyberbotx c6f4b95131 Added a strip_string function to Anope.cmake, cleaned up other parts of Anope.cmake, added better find function for #include lines, added functionality for CMake to auto-detect includes in non-standard locations.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2139 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-02 01:33:47 +00:00
cyberbotx 9123489c32 Added Anope.cmake, moving all my CMake macros into it.
Fixed CMake error when CMake older than 2.4.8 is used, there is no 'touch' command in cmake -E, spotted by Adam.
Fixed Config to auto-detect CMake and revert to configure if CMake isn't found.
Fixed install.js on Windows to show errors in running CMake and detect if there were errors.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2125 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-22 22:25:15 +00:00
cyberbotx 805253de36 Preliminary support for a module source file (within src/modules) to include a comment saying it requires certain external libraries and having CMake search for the library automatically.
Note: This sorta works for both *nix and Windows, probably *nix more-so than Windows, but this needs some cleaning up. It does work as is, though.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2118 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19 04:03:13 +00:00
cyberbotx e7a6661baa Do not pack the build directory into the tarballs from now on, also fix subtle error in install.js for Windows when the last characters of the script's path is a backslash.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1972 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 12:00:47 +00:00
cyberbotx c1df37e5ba Move Anope's executable (anope.exe for Windows / services for *nix) to be installed to the bin subdirectory, primarily for the Windows package.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1938 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-26 20:39:00 +00:00
cyberbotx c16600fee5 Removed check for HAVE_VA_LIST_AS_ARRAY, it broke MemoServ.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1893 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-31 02:05:50 +00:00
cyberbotx 7d9865150a Edits to CPack-related part of CMake to not include Autotools-built files from a dirty source tree.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1884 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 22:04:53 +00:00
cyberbotx 110dbb673e Final modifications to Autotools build system to work alongside CMake build system. CMake build system will only allow out-of-source building now. Removed all old NMake Makefiles for Windows to focus on use of CMake on Windows (it's not as important to require the old system on Windows like it is on *nix).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1878 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 20:08:13 +00:00
cyberbotx e0c10d684e Reverting my last 2 commits in an attempt to fix my own screwball mistake.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1873 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 09:02:03 +00:00
cyberbotx 432edbf68f Merge branch 'cmake'
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1871 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 06:57:30 +00:00
cyberbotx 33b7492264 Better check for the backtrace function (actually look for the function, not the execinfo.h header)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1866 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-26 20:02:25 +00:00
cyberbotx 967f42b4fc Minor CMake cleanup, moving include directories and defines to use include_directories and add_definitions instead.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1865 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-26 19:14:49 +00:00
cyberbotx 77893492da Allow CMake to still check for the -pipe flag with CMake 2.4.3 or older, also small addition to install the MSVCRT library if needed.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1864 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-25 07:37:16 +00:00
cyberbotx e802b6dfe8 Some more Windows fixes, both in CMake and in the code itself. (I don't like the const casting for the latter, but it's only until we get rid of use of strchr)
Added CPack setup to automate generation of source package for *nix and NSIS installer for Windows.
Some other minor CMake fixes.
Converted docs/README and docs/WIN32.txt from Unix linefeeds to DOS linefeeds so they show up right in Notepad under Windows.
Added small fix for Visual Studio 2008, CMake doesn't detect the Express version correctly and it must be explicitly defined.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1861 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-23 07:38:22 +00:00
cyberbotx 40ec6f0854 Some more CMake edits, this allows versions of CMake as early as 2.4.0 to work now.
Also fixed an issue with adding the dl library to the linker flags, reported by Obi_Wan, thanks!

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1857 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-21 17:42:39 +00:00
cyberbotx 75b4bc020f Some more CMake fixes for 2.4.x (Apparently 2.4.x before 2.4.8 didn't have a FIND sub-command for the list() function)
As a side-note, I'd also recommend trying (it's not required) to get CMake 2.6.x to use with Anope, the workarounds to get 2.6.x's functionality with 2.4.x are slow.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1849 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-19 20:09:37 +00:00
cyberbotx 51353104ee Updated the CMakeLists.txt files to function under CMake 2.4.x (earliest version to work is 2.4.4 now).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1848 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-19 02:25:31 +00:00
cyberbotx 81b7aa6571 Massive cleanup of the CMakeLists.txt files to finalize them.
Edited configuration scripts for *nix and Windows to use CMake as well as support both in-source and out-of-source builds.
Changed directory structure for *nix to match Windows to remove some conditionals in both CMake and Anope itself.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1841 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:18:40 +00:00
cyberbotx fd45a3ad42 Implemented dependency calculation within CMake, now header file dependencies are no longer hardcoded.
Also a few minor changes to the CMakeLists.txt files.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1840 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:18:11 +00:00
cyberbotx c4a8cc7e2f Fixed issue with the MSVC++ build of Anope crashing on a DLL throwing an exception, thanks to w00t for pointing out the overloaded new/delete operators from InspIRCd.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1838 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:17:30 +00:00
cyberbotx 88701c226e More CMake work, adding win32.rc generation and fixing some other problems.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1837 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:17:13 +00:00
cyberbotx 2d72446860 More CMake work, mostly to handle both *nix and Windows builds.
Also some tweaks to generation files (like version.sh) to take both input and output files as arguments, to handle CMake when it's used for an out-of-source build.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1836 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:16:55 +00:00