Commit Graph

176 Commits

Author SHA1 Message Date
X-rays5 92d39fb174
Fix sqlite3 and mariadb when using vcpkg (#1165) 2022-01-25 21:00:56 +08:00
Martin Chang 52800006a0
Avoid attempt linking to std::fs when target does not exist (#1131) 2021-12-21 22:22:57 +08:00
an-tao be3136ea26 Bump version to 1.7.4 2021-12-11 10:27:51 +08:00
Martin Chang e4ec2c36c5
Fix build fail on CentOS8 (#1078) 2021-11-16 22:32:08 +08:00
NitroMelon 0431f38a4e
Support range for static file (#1060) 2021-10-28 21:53:58 +08:00
Martin Chang e2eb674781
Fix Drogon not building caused by FindFilesystem (#1056)
* fix FindFilesystem not using the correct header for printf

* fix FS not found on Yocto
2021-10-21 19:43:53 +08:00
an-tao 5a03c9aa9f Bump version to 1.7.3 2021-10-17 11:49:20 +08:00
Neil Cook a7f05c4214
Add option to disable brotli if desired by the builder (#1050) 2021-10-08 08:42:34 +08:00
Martin Chang 6b0e38fc8f
Experimental HaikuOS Support (#1002) 2021-08-28 11:47:24 +08:00
marty1885 3620228843 Bump version to 1.7.2 2021-08-24 19:43:00 +08:00
Martin Chang 133e6dc2ef
Update C++ version detection logic (#993)
* Maintain compatibility with cmake generated from older drogon_ctl
 * Use user-defined C++ version when possible
 * C++ version detection no-longer depends on std::filesystem availability
 * Link against c++fs in DrogonConfig.cmake if on those versions of GCC
 * Allow DrogonConfig to use user-defined C++ version
2021-08-24 16:34:07 +08:00
tastytea 588a7f0cd1
cmake: Use GNUInstallDirs to figure out install dirs. (#980) 2021-08-22 19:31:47 +08:00
tastytea 0783d6aa3e
CMake: Add CPack for .deb and .rpm package generation. (#987)
Compile as normal, run `cpack -G DEB` or `cpack -G RPM` in build
directory.

Tested on:
  - Debian 11 (bullseye)
  - OpenSUSE Leap 15
  - Ubuntu 18.04 (bionic)

Bug: https://github.com/drogonframework/drogon/issues/983
2021-08-18 22:31:32 +08:00
Martin Chang b1bdc747c4
Force using boost::filesystem when building for Android (#964)
Co-authored-by: Rafał Bugajewski <rb@cocobit.software>
2021-08-09 22:37:23 +08:00
An Tao da87c124ae
Use HAS_STD_FILESYSTEM_PATH in filesystem.h (#950) 2021-07-25 23:17:32 +08:00
An Tao 895ab63937
Fix a link error when the version of gcc < 9 (#946) 2021-07-22 21:25:25 +08:00
Greisberger Christophe dbfb99ccc8
Add BUILD_DOC to cmake options (#936)
Co-authored-by: Christophe Greisberger <christophe@greisberger.fr>
2021-07-18 13:36:13 +08:00
Greisberger Christophe 5c1c81e828
Feature/support windows unicode paths (#928) 2021-07-15 23:57:12 +08:00
Greisberger Christophe d888816997
Added support for paths containing unicode characters on Windows (#921)
Co-authored-by: Christophe Greisberger <christophe@greisberger.fr>
Co-authored-by: an-tao <antao2002@gmail.com>
Co-authored-by: marty1885 <marty188586@gmail.com>
2021-07-12 22:38:02 +08:00
Martin Chang f87a6ca1b8
Disable strict compiler check on Windows with GCC (#927) 2021-07-11 12:29:37 +08:00
an-tao dbb51c1e6a Bump version to 1.7.1 2021-06-24 14:48:38 +08:00
Martin Chang 6a882841f1
Fix typos (#899) 2021-06-22 15:08:06 +08:00
an-tao a38d67aedb Bump version to 1.7.0 2021-06-18 16:07:18 +08:00
Martin Chang ffc410a66e
Improve WebSocket mask handling (#875) 2021-05-29 15:11:41 +08:00
Martin Chang 0b5075bfa9
Drogon test framework (#869) 2021-05-27 20:09:57 +08:00
An Tao 9a059aedef
Add the AccessLogger plugin (#854) 2021-05-17 21:45:18 +08:00
an-tao 08351ccf98 Bump version to 1.6.0 2021-05-15 18:15:13 +08:00
LynxesExe f8e56d85dd
Allow users to override drogon Find modules (#843) 2021-05-09 07:26:46 +08:00
An Tao 685aaaa3da
Add the setTimeout() method to the DbClient class (#823) 2021-04-29 10:13:34 +08:00
Philip Kovacs b067771fa4
Add version/soversion to shared library (#814) 2021-04-22 13:22:13 +08:00
An Tao d256e93cde
Copy CoroMapper.h to installation location (#807) 2021-04-16 15:48:19 +08:00
Bertrand Darbon 44a8a2d5f7
Add GNU -Werror & fix warnings (#801) 2021-04-15 19:27:15 +08:00
an-tao d665bedb5c Bump version to 1.5.1 2021-04-10 20:29:54 +08:00
an-tao 8cb327606a Bump version to 1.5.0 2021-04-10 09:40:34 +08:00
Bertrand Darbon 54727a5dbe
Add exports macro to allow Shared Library with hidden symbols by default (e.g. Windows) (#745)
Co-authored-by: an-tao <antao2002@gmail.com>
2021-04-09 10:17:28 +08:00
Martin Chang a19d0427ed
Catch exceptions thrown by handlers (#773) 2021-03-28 10:56:23 +08:00
interfector18 49181a22b2
Use canonical cmakelogic for cross compilation, (#768)
Fix clang c++20 build
2021-03-25 04:27:52 +08:00
interfector18 f29a29f2ba
Fix two building corner cases, CMake quality of life impovments (#766) 2021-03-24 10:32:55 +08:00
An Tao 6d9aa3b44c
Add redis support (#719) 2021-03-13 19:13:54 +08:00
an-tao 5dc02c3476 Bump version to 1.4.1 2021-03-07 20:42:32 +08:00
an-tao cd389aec13 Bump version to 1.4.0 2021-03-05 23:06:16 +08:00
interfector18 6542236b20
Add default value interface to sqlbinder for mysql and postgresql (#704) 2021-02-07 10:34:49 +08:00
Martin Chang a2142dd93e
Coroutine support (#693)
* app().registerHttpHandler() accepts coroutine as handlers
* HttpController can use coroutine as handlers'
* Http request handlers with coroutine catches exception instead of crashing the entire app
* DbClient now has execSqlCoro that is awaitable
* DbClient now has newTransactionCoro that is awaitable
* HttpClient have awaitable sendRequestCoro
* WebSocketClient have awaitable connectToServerCoro
* WebSocketClient have setAsyncMessageHandler and setAsyncConnectionClosedHandler
* drogon::AsyncTask and drogon::Task<T> as our corutine types
* Related tests
* Misc

Future work
* Coroutine for WebSocket server
* Known issues

co_future() and sync_wait may crash. It looks like GCC bug but I'm not sure.
Workarround: Make an coroutine of AsyncTask. Then launch said coroutine.
Not sure why wrapping the exact same thing in function crashes things.

Co-authored-by: an-tao <antao2002@gmail.com>
2021-02-06 17:05:58 +08:00
双草酸酯 2919fdb7d4
Handle cross compiling properly (Fix for #654) (#694) 2021-01-24 22:44:20 +08:00
Martin Chang 0168cd0574
Bump version in CMakeLists.txt to 1.3.0 (#692) 2021-01-17 12:03:27 +08:00
ivanka2012 d2f291689d
Fix cmake drogonctl crosscompile (#654) 2020-12-13 22:12:01 +08:00
an-tao 35b4a86e06 Bump version to 1.2.0 2020-12-12 16:33:13 +08:00
An Tao 8b7ffb28d7
Add support in the SqlBinder class and the Session class (#644) 2020-12-06 11:41:06 +08:00
Joakim L. Gilje 886dfc3648
Support OpenBSD (#626)
Co-authored-by: an-tao <antao2002@gmail.com>
2020-11-15 12:18:01 +08:00
an-tao fb17efe765 Bump version to 1.1.0 2020-10-31 11:10:23 +08:00