Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- deps/perfetto/**
- deps/simdjson/**
- deps/sqlite/**
- deps/tomlplusplus/**
- deps/uv/**
- deps/uvwasi/**
- deps/v8/third_party/abseil-cpp/**
Expand Down Expand Up @@ -91,6 +92,7 @@ on:
- deps/perfetto/**
- deps/simdjson/**
- deps/sqlite/**
- deps/tomlplusplus/**
- deps/uv/**
- deps/uvwasi/**
- deps/v8/third_party/abseil-cpp/**
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ on:
- simdjson
- sqlite
- test426-fixtures
- tomlplusplus
- undici
- uvwasi
- zlib
Expand Down Expand Up @@ -289,6 +290,14 @@ jobs:
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: tomlplusplus
subsystem: deps
label: dependencies
run: |
./tools/dep_updaters/update-tomlplusplus.sh > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: undici
subsystem: deps
label: dependencies
Expand Down
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,26 @@ The externally maintained libraries used by Node.js are:
limitations under the License.
"""

- toml++, located at deps/tomlplusplus, is licensed as follows:
"""
MIT License

Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""

- simdutf, located at deps/v8/third_party/simdutf, is licensed as follows:
"""
Copyright 2021 The simdutf authors
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ ifeq ($(SKIP_SHARED_DEPS), 1)
$(RM) -r $(TARNAME)/deps/perfetto
$(RM) -r $(TARNAME)/deps/simdjson
$(RM) -r $(TARNAME)/deps/sqlite
$(RM) -r $(TARNAME)/deps/tomlplusplus
$(RM) -r $(TARNAME)/deps/uv
$(RM) -r $(TARNAME)/deps/uvwasi
$(RM) -r $(TARNAME)/deps/v8/third_party/abseil-cpp
Expand Down
34 changes: 34 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,27 @@
dest='shared_temporal_capi_libpath',
help='a directory to search for the shared temporal_capi DLL')

shared_optgroup.add_argument('--shared-tomlplusplus',
action='store_true',
dest='shared_tomlplusplus',
default=None,
help='link to a shared tomlplusplus DLL instead of static linking')

shared_optgroup.add_argument('--shared-tomlplusplus-includes',
action='store',
dest='shared_tomlplusplus_includes',
help='directory containing tomlplusplus header files')

shared_optgroup.add_argument('--shared-tomlplusplus-libname',
action='store',
dest='shared_tomlplusplus_libname',
help='alternative lib name to link to [default: %(default)s]')

shared_optgroup.add_argument('--shared-tomlplusplus-libpath',
action='store',
dest='shared_tomlplusplus_libpath',
help='a directory to search for the shared tomlplusplus DLL')

shared_optgroup.add_argument('--shared-zstd',
action='store_true',
dest='shared_zstd',
Expand Down Expand Up @@ -1091,6 +1112,12 @@
default=None,
help='build without SQLite (disables SQLite and Web Storage API)')

parser.add_argument('--with-toml',
action='store_true',
dest='with_toml',
default=None,
help='build with toml++ (enables node:formats/toml)')

parser.add_argument('--without-ffi',
action='store_true',
dest='without_ffi',
Expand Down Expand Up @@ -2527,6 +2554,12 @@ def configure_ffi(o):

configure_library('ffi', o, pkgname='libffi')

def configure_tomlplusplus(o):
o['variables']['node_use_toml'] = b(options.with_toml)
if not options.with_toml and options.shared_tomlplusplus:
error('--shared-tomlplusplus requires --with-toml')
configure_library('tomlplusplus', o)

def configure_quic(o):
if options.experimental_quic and options.without_ssl:
error('--experimental-quic is incompatible with --without-ssl')
Expand Down Expand Up @@ -3076,6 +3109,7 @@ def make_bin_override():
configure_sqlite(output);
configure_ffi(output);
configure_library('temporal_capi', output)
configure_tomlplusplus(output)
configure_library('uvwasi', output)
configure_library('zstd', output, pkgname='libzstd')
configure_v8(output, configurations)
Expand Down
16 changes: 16 additions & 0 deletions deps/tomlplusplus/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MIT License

Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading
Loading