Christian Blichmann
839914d6dd
cmake: Rename build options to follow Abseil naming
...
`BUILD_TESTING` is a CMake provided option and we should use similar naming,
just like how Abseil does it.
- `SAPI_ENABLE_TESTS` -> `SAPI_BUILD_TESTING`
- `SAPI_ENABLE_CONTRIB_TESTS` -> `SAPI_CONTRIB_BUILD_TESTING`
- `SAPI_ENABLE_EXAMPLES` -> `SAPI_BUILD_EXAMPLES`
Drive-by:
- Fix option name in GitHub action
PiperOrigin-RevId: 443305932
Change-Id: Ice2b42be1229a0f9ae7c2ceda9ce87187baf22c4
2022-04-21 01:17:39 -07:00
Christian Blichmann
c0cfeed925
cmake: Include CTest
in all projects, honor BUILD_TESTING
setting
...
Including the `CTest` modules ensures that the `BUILD_TESTING` option is
defined and automatically calls `enable_testing()` if needed. It does not
change the default or introduce any dependencies on its own.
This follows what Abseil already does in their top-level `CMakeLists.txt`.
PiperOrigin-RevId: 443305646
Change-Id: If067c17470f497437c7748aab4aab5227c26e84f
2022-04-21 01:15:34 -07:00
Copybara-Service
5125c8fe1b
Merge pull request #138 from oshogbo:brotli
...
PiperOrigin-RevId: 442741238
Change-Id: Ic8183c0fa74db45ecab0d677d4b901a78a98df40
2022-04-19 01:16:35 -07:00
Christian Blichmann
c5afd39cc4
contrib: Fix Jsonnet examples
...
PiperOrigin-RevId: 439765726
Change-Id: I8371b7b1e5b7527e882e04e583e51e126ad735b9
2022-04-05 23:58:29 -07:00
Christian Blichmann
944e931a95
contrib: Fix pffft
...
PiperOrigin-RevId: 439752452
Change-Id: I93f359ee2a89ce911a4d77787d739b01705d8703
2022-04-05 21:52:51 -07:00
Copybara-Service
00fbfeb647
Merge pull request #136 from oshogbo:zstd_type
...
PiperOrigin-RevId: 439542219
Change-Id: Ie6bdff05b5aa50c6fccb0786b073240e72c4b215
2022-04-05 04:24:50 -07:00
Mariusz Zaborski
dd3cb0f1b5
Sandbox brotli
2022-04-04 04:51:19 -04:00
Copybara-Service
2a6cf7afb8
Merge pull request #115 from DemiMarie:woff2
...
PiperOrigin-RevId: 438754304
Change-Id: Icb763ee93ea1b36ab52a05a9e2bebb217fccffe7
2022-04-01 00:10:43 -07:00
Copybara-Service
16a6c37dd5
Merge pull request #134 from oshogbo:c-blosc-header
...
PiperOrigin-RevId: 435587139
Change-Id: I4cdc6a5d1c66f17fa5074f187badcaee69bdf618
2022-03-18 03:00:19 -07:00
Demi Marie Obenour
fd823df2ef
Copybara import of the project:
...
--
2019d66f52eeb31d0de583f2e2f0364192b706d4 by Demi Marie Obenour <demi@invisiblethingslab.com>:
Fix uriparser build
A path was wrong.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/sandboxed-api/pull/150 from DemiMarie:fix-uriparser-build 2019d66f52eeb31d0de583f2e2f0364192b706d4
PiperOrigin-RevId: 435587012
Change-Id: I70e392f86f796c5ebeccc8e920110aecb8c40b42
2022-03-18 02:59:10 -07:00
Mariusz Zaborski
cc4b5f3f22
Copybara import of the project:
...
--
8160f26e1a
by Mariusz Zaborski <oshogbo@invisiblethingslab.com>:
zopfli: fix a small typo
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/sandboxed-api/pull/137 from oshogbo:doc3 a80d3e728fd69319ce7167387a19b6dc9887c6c8
PiperOrigin-RevId: 435576465
Change-Id: Ia6b4e95e251b425edad4bca31baf9b65ae0809fd
2022-03-18 02:01:39 -07:00
Mariusz Zaborski
6fa842476b
Drop Uriparser CMAKE patch
...
Upstream fixed the issue with object visiblity in static version
of library. [1]
[1] a259209a57
2022-03-16 19:21:34 -04:00
Oliver Kunz
dedcdba6ee
Instruct copybara to exclude contrib/** when changing absl/flags:flag
...
PiperOrigin-RevId: 435276975
Change-Id: Ide53847ca2d2b2d280c3cb66b557cc885f38872e
2022-03-17 01:12:12 -07:00
Copybara-Service
5cab501121
Merge pull request #123 from oshogbo:zip
...
PiperOrigin-RevId: 435067254
Change-Id: Id5cd97edfd1ad2fcfdbb530ea3ab20e627ceb3be
2022-03-16 09:10:20 -07:00
Demi Marie Obenour
7a616718d8
Sandbox woff2
...
Trickiest part here was memory allocation and test handling.
2022-03-16 06:42:09 -04:00
Mariusz Zaborski
6d5f257711
Copybara import of the project:
...
--
74c7f66dee
by Mariusz Zaborski <oshogbo@invisiblethingslab.com>:
Sandbox uriparser
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/sandboxed-api/pull/130 from oshogbo:uriparser 74c7f66dee
PiperOrigin-RevId: 434755972
Change-Id: I90f97229122acd47354327c0ae9e58a02cb7bd20
2022-03-15 08:21:12 -07:00
Christian Blichmann
071cb79268
Merge branch 'main' into zip
2022-03-15 12:02:40 +01:00
Demi Marie Obenour
b4d0dbcdcb
Fix a syntax error
...
Introduced by the recent macro refactoring.
2022-03-09 21:21:04 -05:00
Copybara-Service
622ca18cef
Merge pull request #135 from DemiMarie:fix-semicolon
...
PiperOrigin-RevId: 433402251
Change-Id: I0ef844a2139a6a5938f8221114dad79963b6726c
2022-03-08 23:31:50 -08:00
Mariusz Zaborski
de56ca399a
contrib: use constexpr for kFileMaxSize
...
Use constexpr to inform compiler that it is possible to evaluate
variable at compile time.
2022-03-06 06:12:01 -05:00
Demi Marie Obenour
eacd8c8097
Remove trailing semicolons from macros
...
The semicolons should be in the code that uses the macros.
2022-03-05 11:42:04 -05:00
Mariusz Zaborski
8a8b626701
c-blosc: add missing header
2022-03-03 19:09:21 -05:00
Mariusz Zaborski
c3a0921435
c-blosc: Enforce option to make symbols visible
2022-03-03 19:07:45 -05:00
Mariusz Zaborski
48ca0916a8
c-blosc: drop cmake patches and bump the c-blosc version
...
The PR (https://github.com/Blosc/c-blosc/pull/329 ) was merged into
c-blosc, so we can use newer version of it.
2022-03-03 16:50:52 -05:00
Copybara-Service
2d324bd50d
Merge pull request #121 from oshogbo:doc2
...
PiperOrigin-RevId: 431618531
Change-Id: Ieabcfa982770831acd565cd17fcf121570850ab9
2022-03-01 00:15:58 -08:00
Mariusz Zaborski
e49318571b
Sandbox zip
2022-02-22 10:51:53 -05:00
Copybara-Service
4024694eb6
Merge pull request #112 from oshogbo:zstd_opt
...
PiperOrigin-RevId: 430179725
Change-Id: Ic3c93a51a199eaf087cea2e58c819eb07bf52a1a
2022-02-22 04:21:24 -08:00
Copybara-Service
a805034070
Merge pull request #125 from oshogbo:cmake_c_blosc
...
PiperOrigin-RevId: 430174230
Change-Id: I6e4f53f3cae4e2e3487419903f7f8c6f98ac828e
2022-02-22 03:44:16 -08:00
Christian Blichmann
99f1ce93ba
Merge branch 'main' into cmake_quote
2022-02-22 11:57:33 +01:00
Mariusz Zaborski
3680d50565
contrib: Sort the order of projects
2022-02-18 08:00:21 -05:00
Mariusz Zaborski
b9ec42d220
c-blosc: to default build
2022-02-18 07:57:03 -05:00
Copybara-Service
2fb08b99da
Merge pull request #113 from oshogbo:c-blosc
...
PiperOrigin-RevId: 429535319
Change-Id: Ide9e81a76d28e1f2e4eefbd499ef8bcd22e1a1b0
2022-02-18 04:47:09 -08:00
Copybara-Service
1dedbb9650
Merge pull request #110 from oshogbo:zopfli_fd
...
PiperOrigin-RevId: 429016804
Change-Id: Ib1d9b616325c2b6443149bed25859247f2fb68e7
2022-02-16 04:56:18 -08:00
Mariusz Zaborski
dc43384516
ZStandard: Optimize passing the memory
...
In the case of decompression, we are using the same chunk of memory
twice. The first is to obtain the size of decompressed data, and
the second is to decompress it. In the current code, we are copying
the chunk of memory twice. The memory doesn't change between
the calls, so there is no point in copying it over and over.
Let's synchronize memory only during first call.
2022-02-16 07:29:37 -05:00
Christian Blichmann
c93dae9519
Merge branch 'main' into c-blosc
2022-02-16 10:02:08 +01:00
Copybara-Service
ddef30148c
Merge pull request #117 from DemiMarie:add-idn2-and-turbojpeg
...
PiperOrigin-RevId: 428763952
Change-Id: I0b958540213052d87a59d5605014fb82c8ac137b
2022-02-15 06:22:29 -08:00
Demi Marie Obenour
b2f4e0068e
Add libidn2 and TurboJPEG sandboxes to the build
...
This exposed a compilation error and an incorrect TEST_FILES_DIR. Fix
both.
2022-02-14 12:51:22 -05:00
Mariusz Zaborski
d39d63d6ec
Sandbox c-blosc
2022-02-14 10:43:06 -05:00
Mariusz Zaborski
ad486b9e86
CMake: quote sources
2022-02-14 10:41:06 -05:00
Demi Marie Obenour
544d438e71
Fix a syntax error in the zstd example
...
It breaks the SAPI_ENABLE_CONTRIB_TESTS build.
2022-02-12 21:43:49 -05:00
Copybara-Service
1b816e9dce
Merge pull request #105 from DemiMarie:turbojpeg
...
PiperOrigin-RevId: 427991276
Change-Id: I66fa4fcb16b18f38a3ec0dfce46863269606d5e8
2022-02-11 06:44:49 -08:00
Demi Marie Obenour
e613bdfaeb
Sandbox TurboJPEG
...
Took a few tries to get everything implemented.
2022-02-09 11:37:43 -05:00
Copybara-Service
585e55a1e0
Merge pull request #108 from oshogbo:zstd_fd_pr
...
PiperOrigin-RevId: 427469394
Change-Id: I789b45066800af5a29cbf33313cd7a4fabd56be3
2022-02-09 07:47:35 -08:00
Christian Blichmann
7e5a398164
Migrate the pffft sandbox to contrib/
...
PiperOrigin-RevId: 427443359
Change-Id: I852a818ae302a86abe32a2820f349f67861e342e
2022-02-09 05:20:29 -08:00
Christian Blichmann
fdc38d58c6
CMake: Quiet config of libhunspell, quote sources
...
PiperOrigin-RevId: 427418932
Change-Id: Ie8992176ed29437a7eb7550e7ec6628103a447ff
2022-02-09 02:32:20 -08:00
Christian Blichmann
0576efe994
Update jsonnet README
...
PiperOrigin-RevId: 427415134
Change-Id: Ib6a729331bde4e29d89a24298dc9d7ce47c356f3
2022-02-09 02:10:49 -08:00
Mariusz Zaborski
1beba0b3ad
ZStandard: use long includes
2022-02-08 13:11:16 -05:00
Mariusz Zaborski
e3da4da69b
ZStandard: Simplify creation of paths
2022-02-08 13:11:16 -05:00
Mariusz Zaborski
44088bb7d5
ZStandard: Fix the order of headers
2022-02-08 13:11:16 -05:00
Mariusz Zaborski
5c154af744
ZStandard: introduce a wrapper
...
The goal is to use a file descriptor as an input for ZStandard
library. Thanks to that we shouldn't send a chunk of memory over
expensive protocol.
2022-02-08 13:11:13 -05:00