Commit graph

281 commits

Author SHA1 Message Date
Rongsong Shen
891355581d fix missed file for cmake install 2025-09-05 15:35:23 +08:00
Rongsong Shen
c1fe4d4a53 enhance list decode & provide pkgconfig data 2025-09-05 14:54:01 +08:00
Rongsong Shen
a86c5ab151 use capn_null than zero filled object for null object 2025-05-09 13:48:56 +08:00
Rongsong Shen
6c0fbc4bbd test with nest union 2025-05-08 09:42:09 +08:00
Rongsong Shen
dd65178724 fix issue of unused variable 2025-05-08 09:13:06 +08:00
Rongsong Shen
dd1fbd4043 auto generate memory free code for decode data 2025-05-07 18:04:13 +08:00
Rongsong Shen
40006c00d2 improve list encode/decode 2025-04-28 10:32:18 +08:00
Rongsong Shen
3a7ae150b8 handle NULL text 2025-04-27 17:52:42 +08:00
Rongsong Shen
07e2126e25 enhance to generate encode routine to be more robust to encode NULL 2025-04-27 17:23:50 +08:00
Rongsong Shen
3425f75440 improve ptr 2025-04-25 10:21:04 +08:00
Rongsong Shen
e1013e038b fix incorrect swap of source/dest var in decode list 2025-04-24 16:04:30 +08:00
Rongsong Shen
c582108917 fix SEGV issue & merge xmake 2025-04-21 17:52:24 +08:00
Rongsong Shen
22a2e87003 fix cmake 2025-04-21 14:14:07 +08:00
Rongsong Shen
45a69c993f fix cmake 2025-04-21 14:11:49 +08:00
Rongsong Shen
5d64af4841 merge code 2025-04-21 13:13:34 +08:00
Jonah Beckford
1089ab8441 Hygiene only when project is top-level 2023-10-02 21:55:20 -07:00
Jonah Beckford
bb56ba5d47 Add target variants -Shared, etc. 2023-09-27 14:43:34 -07:00
Jonah Beckford
07a18d2d7b bugfix: Set CXX compiler if no BUILD_TESTING
Fixes ...
 -- Configuring done
CMake Error in CMakeLists.txt:
  No known features for CXX compiler

  ""

  version .
2023-09-27 14:37:43 -07:00
Jonah Beckford
edc0d97de0 bugfix: Remove attribute from struct types
GCC does not support some attributes on types:

> warning: ‘visibility’ attribute ignored on types
2023-09-26 20:13:30 -07:00
Jonah Beckford
014d4ea4df Implement attrs: extendedattribute and extraheader 2023-09-25 21:23:22 -07:00
Jonah Beckford
d64f4d1c62 GoogleTest 1.14.0 when C++14 compiler available (2/2) 2023-09-25 18:32:07 -07:00
Jonah Beckford
a76885dfac GoogleTest 1.14.0 when C++14 compiler available 2023-09-25 16:25:31 -07:00
Jonah Beckford
9bc6befee7 Cache variable BUILD_SHARED_LIBS 2023-09-25 16:07:35 -07:00
Jonah Beckford
b6e04c7d38 Add C_CAPNPROTO_ENABLE_INSTALL 2023-09-23 22:21:14 -07:00
Anton Kochkov
1ed0aed18c Fix repository links in README 2023-09-07 05:29:32 +00:00
Jonah Beckford
0d89427d71
Fix broken link 2023-09-06 22:31:36 +00:00
Jonah Beckford
e4b5a71a46 Add POSITION_INDEPENDENT_CODE to CapnC::Runtime 2023-08-24 22:45:17 -07:00
Jonah Beckford
f703bd962c Use dksdk.android.ndk.download location 2023-08-10 16:32:35 -07:00
Jonah Beckford
a5138e4aaf Do ./dk dkml.wrapper.upgrade 2023-08-10 16:27:55 -07:00
Jonah Beckford
2aeccdbe6a Cache .ci for Conda CI machines 2023-08-08 09:06:00 -07:00
Jonah Beckford
a3e6f6c331 Instructions for CMake usage
Also do lint fixes for Markdown.

Also, do not install tests code, especially
GTest, when installing c-capnproto
through CMake
2023-08-08 07:00:46 -07:00
Jonah Beckford
d8b55078ba Add C++ standard to CMake for MSVC 2023-08-07 20:55:41 -07:00
Jonah Beckford
f07596dbb5 Add CMake and tests
- Port tests to GitLab
- Add GitLab CI test matrix
- Remove gtest submodule
2023-08-07 20:28:42 -07:00
Jonah Beckford
7056638935 Avoid undefined left shift of negatives 2023-08-07 17:26:44 -07:00
Jonah Beckford
311b9cb0e0 Fix clang-tidy bugprone-macro-parentheses
Correct the definition of capnp_use(x) macro.

> recommended to surround macro arguments
> in the replacement list with parentheses. This
> ensures that the argument value is calculated
> properly.
2023-08-03 18:19:55 -07:00
Jonah Beckford
c662042a60 Read schemas in binary on Windows 2023-06-22 12:11:03 -07:00
Jonah Beckford
25784e3ccf Use SSIZE_T from BaseTsd.h to compile MSVC 32-bit 2023-06-07 21:24:33 -07:00
Jonah Beckford
01657913b2 Put alignment on segment fields. Work with MSVC 2023-05-09 18:22:57 -07:00
David Lamparter
632f0d73a1 Update autogenerated files
Signed-off-by: David Lamparter <equinox@diac24.net>
2023-04-23 14:35:11 +02:00
David Lamparter
79d6035e3f Revert "Merge pull request #54 from cbrune/curt/const"
This reverts commit 4109705a8d, reversing
changes made to 5c4e497a72.
2023-04-23 14:33:18 +02:00
David Lamparter
eb1839e001 Fix bool defaults for non-first bit
Fixes: #58
Signed-off-by: David Lamparter <equinox@diac24.net>
2023-04-23 14:30:11 +02:00
David Lamparter
b2b7ade9c0 Fix random warnings
Signed-off-by: David Lamparter <equinox@diac24.net>
2023-04-23 14:21:58 +02:00
David Lamparter
c79b3afbbd
Merge pull request #24 from jlferrer/fix_compiler_big_files 2023-04-23 14:12:52 +02:00
David Lamparter
32520c5eb3
Merge pull request #60 from XVilka/github-ci 2023-04-23 14:12:34 +02:00
David Lamparter
32def19b9d
Merge pull request #57 from XVilka/meson-build 2023-04-23 14:12:13 +02:00
David Lamparter
4109705a8d
Merge pull request #54 from cbrune/curt/const 2023-04-23 14:11:49 +02:00
David Lamparter
5c4e497a72
Merge pull request #53 from cbrune/curt/reduce-imports 2023-04-23 14:11:30 +02:00
David Lamparter
0653675ef4
Merge pull request #52 from cbrune/curt/namespace 2023-04-23 14:11:13 +02:00
David Lamparter
2116160973
Merge pull request #49 from detly/capn_size_size 2023-04-23 14:10:48 +02:00
David Lamparter
560f2c7cb9
Merge pull request #45 from snar/p-field 2023-04-23 14:10:24 +02:00