45 Commits

Author SHA1 Message Date
Bert Belder
e9fa25980b
config: re-enable overriding 'WEPOLL_EXPORT' when compiling bundle
This possibility got inadvertently removed in the big config refactor
(3ad20d7), which made building a shared library from the bundled source
distribution (as is done by e.g. vcpkg) impossible.
2020-05-26 19:07:03 +02:00
Bert Belder
126c00944c
test: make the memory leak checker for tests work again
It turns out that these static constructors declared with
`__declspec(allocate(".CRT$XCU"))` don't work if you try to link them
from a static library. With this patch we go back to passing
'leak-check.c' as an extra source file when compiling a test.
2020-05-09 11:16:07 +02:00
Bert Belder
3ad20d71ff
build: refactor config infrastructure and test build setup
* Configuration is now done with files, instead of through command line
  switches specified in CMakeLists.txt.
* Link tests with a static library instead of compiling individual
  wepoll source files as part of the test executable. This should make
  the CI run significantly faster.
2020-01-12 23:56:59 +01:00
Bert Belder
d272c5188d
tools/bundle: rename 'combine.js' to 'bundle.js' 2020-01-12 23:42:37 +01:00
Bert Belder
dd7dd6fcd9
build: rename configuration 'combined' to 'bundle' 2020-01-12 23:42:36 +01:00
Bert Belder
c57eb84863
build: work around bug in in Windows SDK 10.0.17763.0 and maybe other versions 2020-01-12 23:42:34 +01:00
Bert Belder
7080d540e2
build: do not force-include wepoll.h using a command line switch 2019-06-12 21:49:10 +02:00
Bert Belder
43f8095c14
dist: include LICENSE file 2018-11-17 00:43:48 -08:00
Bert Belder
f5ad7a4657
build: clean up CMakeLists.txt 2018-11-16 21:10:10 -08:00
Bert Belder
040ba6e466
build: disable spectre diagnostic for Visual Studio 2015 2018-11-16 14:05:00 -08:00
Bert Belder
513410278d
build: use GLOB instead of GLOB_RECURSE in cmake config 2018-06-01 13:54:38 -07:00
Bert Belder
e7e2cd478a
build: put tests in solution folder 2018-06-01 13:40:42 -07:00
Bert Belder
1e5def7413
build: disable msvs 2017 spectre mitigation warning 2018-05-17 01:31:13 -07:00
Bert Belder
f4cfe68f5b
build: treat warnings as errors 2018-05-02 04:20:43 +02:00
Bert Belder
5313db4399
build: enable -Wextra for gcc and clang builds 2018-05-02 04:19:11 +02:00
Bert Belder
0b4788e2af ci: add gcc and clang builds 2017-12-10 05:51:49 +01:00
Bert Belder
70c5a36e56 build: create the dist/ directory in configure step 2017-12-09 23:28:23 +01:00
Bert Belder
86fbe53e70 build: disable 'conditional expression is constant' warning
Visual Studio 2013 often generates this warning when it encounters a
`do { ... } while (0)` construct, which is commonly used in preprocessor
macros.
2017-12-07 04:40:30 +01:00
Bert Belder
778082c38a build: combined dll depends on dist/wepoll.h 2017-12-04 00:05:00 +01:00
Bert Belder
614e5c493e build: rename 'combined' target to 'dist' 2017-12-04 00:03:51 +01:00
Bert Belder
11e6439c38 doc: move readme to root 2017-12-03 23:57:55 +01:00
Bert Belder
c4756004e0 build: rename 'all-in-one' to 'combined', store in 'dist/' 2017-11-30 23:33:45 +01:00
Bert Belder
fc4bee2f95 cmake: copy readme to all-in-one output directory 2017-11-30 23:33:45 +01:00
Bert Belder
100d5ebbe4 cmake: add 'test/shared' to include path for test targets 2017-11-27 16:48:51 +01:00
Bert Belder
2664cb45b8 cmake: use two-space indent in CMakeLists.txt 2017-11-27 16:48:08 +01:00
Bert Belder
700f9f73a4 test: add build rule that runs all tests 2017-11-27 01:11:34 +01:00
Bert Belder
424898f518 cmake: list build-specific sources as dependencies 2017-11-27 00:47:34 +01:00
Bert Belder
1f5f8975b2 cmake: add build type specific headers to source group 2017-11-27 00:46:54 +01:00
Bert Belder
5777b24404 all-in-one: also generate wepoll.h 2017-11-24 19:15:07 +01:00
Bert Belder
2ae6f03f6b all-in-one: make --strip-guards optional 2017-11-24 19:15:07 +01:00
Bert Belder
e24be98fca all-in-one: move build script to tools/ 2017-11-23 03:00:21 +01:00
Bert Belder
42bca93f67 cmake: do not recursively glob include/ 2017-11-21 15:58:19 +01:00
Bert Belder
a9aec85220 src: have separate internal.h for regular vs all-in-one build 2017-11-21 15:58:19 +01:00
Bert Belder
50aaa030b9 all-in-one: pass include directories on the build.js command line 2017-11-21 15:58:19 +01:00
Bert Belder
2fc0bafb49 src: rename preprocessor constants 2017-11-21 15:04:37 +01:00
Bert Belder
eb673e3fed all: rename the project to 'wepoll' 2017-09-28 00:12:20 +02:00
Bert Belder
d4d296b53c build: remove rogue definition of HAVE_CONFIG_H 2017-09-26 02:14:53 +02:00
Bert Belder
8a09e0dbe0 build: disable msvc 'function not inlined' warning 2017-09-10 20:40:43 +02:00
Bert Belder
9bfda64ef3 build: enable more msvc warnings 2017-09-10 20:40:43 +02:00
Bert Belder
0ac3c921bd src: decorate internal APIs with EPOLL_INTERNAL 2017-09-10 20:40:42 +02:00
Bert Belder
8a3daba2ce all-in-one: basic support for building an all-in-one c file 2017-09-10 20:39:49 +02:00
Bert Belder
0cd8b52b18 src: use int foo(void) for functions that don't take parameters 2017-09-04 07:20:59 +02:00
Bert Belder
8753208959 build: remove cmake output dir override 2017-09-02 04:39:19 +02:00
Bert Belder
0b01b17819 build: remove incorrect space between -FI flag and path 2017-09-02 04:39:03 +02:00
Bert Belder
0fe6e84b98 build: add cmake-based build system 2017-09-01 19:29:39 +02:00