Skip to content

Commit

Permalink
tools: roughly port v8_abseil to gyp
Browse files Browse the repository at this point in the history
Refs: v8/v8@fa7521e
Closes: #211
  • Loading branch information
targos committed Nov 15, 2023
1 parent fd10792 commit 1b0759c
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/v8_gypfiles/features.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@
}],
['dcheck_always_on!=0', {
'defines': ['DEBUG',],
}, {
'defines': ['NDEBUG',],
}],
['v8_enable_verify_csa==1', {
'defines': ['ENABLE_VERIFY_CSA',],
Expand Down
259 changes: 259 additions & 0 deletions tools/v8_gypfiles/v8.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
'v8_base_without_compiler',
'v8_initializers',
'v8_maybe_icu',
'v8_abseil',
],
'sources': [
'<(V8_ROOT)/src/init/setup-isolate-full.cc',
Expand All @@ -262,6 +263,7 @@
'v8_base_without_compiler',
'v8_shared_internal_headers',
'v8_pch',
'v8_abseil',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
Expand Down Expand Up @@ -536,6 +538,7 @@
'v8_heap_base_headers',
'generate_bytecode_builtins_list',
'run_torque',
'v8_abseil',
'v8_libbase',
],
'direct_dependent_settings': {
Expand Down Expand Up @@ -850,6 +853,7 @@
'v8_shared_internal_headers',
'v8_turboshaft',
'v8_pch',
'v8_abseil',
],
'conditions': [
['v8_enable_turbofan==1', {
Expand All @@ -872,6 +876,7 @@
'v8_libbase',
'v8_shared_internal_headers',
'v8_pch',
'v8_abseil',
],
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"v8_turboshaft.*?sources = ")',
Expand Down Expand Up @@ -924,6 +929,7 @@
'v8_maybe_icu',
'v8_zlib',
'v8_pch',
'v8_abseil',
],
'includes': ['inspector.gypi'],
'direct_dependent_settings': {
Expand Down Expand Up @@ -1604,6 +1610,7 @@
'v8_maybe_icu',
'v8_turboshaft',
'v8_pch',
'v8_abseil',
# "build/win:default_exe_manifest",
],
'sources': [
Expand Down Expand Up @@ -2096,5 +2103,257 @@
'<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.h',
],
}, # v8_zlib

{
'target_name': 'v8_abseil',
'type': 'static_library',
'toolsets': ['host', 'target'],
'variables': {
'ABSEIL_ROOT': '../../deps/v8/third_party/abseil-cpp',
},
'direct_dependent_settings': {
'include_dirs': [
'<(ABSEIL_ROOT)',
],
},
'include_dirs': [
'<(ABSEIL_ROOT)',
],
'sources': [
'<(ABSEIL_ROOT)/absl/algorithm/algorithm.h',
'<(ABSEIL_ROOT)/absl/algorithm/container.h',
'<(ABSEIL_ROOT)/absl/base/attributes.h',
'<(ABSEIL_ROOT)/absl/base/call_once.h',
'<(ABSEIL_ROOT)/absl/base/casts.h',
'<(ABSEIL_ROOT)/absl/base/config.h',
'<(ABSEIL_ROOT)/absl/base/const_init.h',
'<(ABSEIL_ROOT)/absl/base/dynamic_annotations.h',
'<(ABSEIL_ROOT)/absl/base/internal/atomic_hook.h',
'<(ABSEIL_ROOT)/absl/base/internal/cycleclock.h',
'<(ABSEIL_ROOT)/absl/base/internal/cycleclock.cc',
'<(ABSEIL_ROOT)/absl/base/internal/cycleclock_config.h',
'<(ABSEIL_ROOT)/absl/base/internal/direct_mmap.h',
'<(ABSEIL_ROOT)/absl/base/internal/endian.h',
'<(ABSEIL_ROOT)/absl/base/internal/errno_saver.h',
'<(ABSEIL_ROOT)/absl/base/internal/hide_ptr.h',
'<(ABSEIL_ROOT)/absl/base/internal/identity.h',
'<(ABSEIL_ROOT)/absl/base/internal/inline_variable.h',
'<(ABSEIL_ROOT)/absl/base/internal/invoke.h',
'<(ABSEIL_ROOT)/absl/base/internal/low_level_alloc.h',
'<(ABSEIL_ROOT)/absl/base/internal/low_level_alloc.cc',
'<(ABSEIL_ROOT)/absl/base/internal/low_level_scheduling.h',
'<(ABSEIL_ROOT)/absl/base/internal/per_thread_tls.h',
'<(ABSEIL_ROOT)/absl/base/internal/raw_logging.h',
'<(ABSEIL_ROOT)/absl/base/internal/raw_logging.cc',
'<(ABSEIL_ROOT)/absl/base/internal/scheduling_mode.h',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock.h',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock.cc',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock_akaros.inc',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock_linux.inc',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock_posix.inc',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock_wait.h',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock_wait.cc',
'<(ABSEIL_ROOT)/absl/base/internal/spinlock_win32.inc',
'<(ABSEIL_ROOT)/absl/base/internal/sysinfo.h',
'<(ABSEIL_ROOT)/absl/base/internal/sysinfo.cc',
'<(ABSEIL_ROOT)/absl/base/internal/thread_identity.h',
'<(ABSEIL_ROOT)/absl/base/internal/thread_identity.cc',
'<(ABSEIL_ROOT)/absl/base/internal/throw_delegate.h',
'<(ABSEIL_ROOT)/absl/base/internal/throw_delegate.cc',
'<(ABSEIL_ROOT)/absl/base/internal/tsan_mutex_interface.h',
'<(ABSEIL_ROOT)/absl/base/internal/unaligned_access.h',
'<(ABSEIL_ROOT)/absl/base/internal/unscaledcycleclock.h',
'<(ABSEIL_ROOT)/absl/base/internal/unscaledcycleclock.cc',
'<(ABSEIL_ROOT)/absl/base/internal/unscaledcycleclock_config.h',
'<(ABSEIL_ROOT)/absl/base/log_severity.h',
'<(ABSEIL_ROOT)/absl/base/log_severity.cc',
'<(ABSEIL_ROOT)/absl/base/macros.h',
'<(ABSEIL_ROOT)/absl/base/optimization.h',
'<(ABSEIL_ROOT)/absl/base/options.h',
'<(ABSEIL_ROOT)/absl/base/policy_checks.h',
'<(ABSEIL_ROOT)/absl/base/port.h',
'<(ABSEIL_ROOT)/absl/base/prefetch.h',
'<(ABSEIL_ROOT)/absl/base/thread_annotations.h',
'<(ABSEIL_ROOT)/absl/container/flat_hash_map.h',
'<(ABSEIL_ROOT)/absl/container/fixed_array.h',
'<(ABSEIL_ROOT)/absl/container/inlined_vector.h',
'<(ABSEIL_ROOT)/absl/container/internal/common.h',
'<(ABSEIL_ROOT)/absl/container/internal/common_policy_traits.h',
'<(ABSEIL_ROOT)/absl/container/internal/compressed_tuple.h',
'<(ABSEIL_ROOT)/absl/container/internal/container_memory.h',
'<(ABSEIL_ROOT)/absl/container/internal/inlined_vector.h',
'<(ABSEIL_ROOT)/absl/container/internal/hash_function_defaults.h',
'<(ABSEIL_ROOT)/absl/container/internal/hash_policy_traits.h',
'<(ABSEIL_ROOT)/absl/container/internal/hashtable_debug_hooks.h',
'<(ABSEIL_ROOT)/absl/container/internal/hashtablez_sampler.h',
'<(ABSEIL_ROOT)/absl/container/internal/hashtablez_sampler.cc',
'<(ABSEIL_ROOT)/absl/container/internal/raw_hash_map.h',
'<(ABSEIL_ROOT)/absl/container/internal/raw_hash_set.h',
'<(ABSEIL_ROOT)/absl/container/internal/raw_hash_set.cc',
'<(ABSEIL_ROOT)/absl/crc/crc32c.h',
'<(ABSEIL_ROOT)/absl/crc/crc32c.cc',
'<(ABSEIL_ROOT)/absl/crc/internal/crc.h',
'<(ABSEIL_ROOT)/absl/crc/internal/crc.cc',
'<(ABSEIL_ROOT)/absl/crc/internal/crc32c.h',
'<(ABSEIL_ROOT)/absl/crc/internal/crc32c_inline.h',
'<(ABSEIL_ROOT)/absl/crc/internal/crc32_x86_arm_combined_simd.h',
'<(ABSEIL_ROOT)/absl/crc/internal/crc_cord_state.h',
'<(ABSEIL_ROOT)/absl/crc/internal/crc_cord_state.cc',
'<(ABSEIL_ROOT)/absl/crc/internal/crc_internal.h',
'<(ABSEIL_ROOT)/absl/crc/internal/crc_memcpy.h',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_aarch64-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_arm-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_config.h',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_emscripten-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_generic-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_powerpc-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_riscv-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_unimplemented-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_win32-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/stacktrace_x86-inl.inc',
'<(ABSEIL_ROOT)/absl/debugging/internal/symbolize.h',
'<(ABSEIL_ROOT)/absl/debugging/stacktrace.h',
'<(ABSEIL_ROOT)/absl/debugging/stacktrace.cc',
'<(ABSEIL_ROOT)/absl/debugging/symbolize.h',
'<(ABSEIL_ROOT)/absl/debugging/symbolize.cc',
'<(ABSEIL_ROOT)/absl/debugging/symbolize_elf.inc',
'<(ABSEIL_ROOT)/absl/debugging/symbolize_emscripten.inc',
'<(ABSEIL_ROOT)/absl/debugging/symbolize_unimplemented.inc',
'<(ABSEIL_ROOT)/absl/debugging/symbolize_win32.inc',
'<(ABSEIL_ROOT)/absl/functional/any_invocable.h',
'<(ABSEIL_ROOT)/absl/functional/function_ref.h',
'<(ABSEIL_ROOT)/absl/functional/internal/any_invocable.h',
'<(ABSEIL_ROOT)/absl/functional/internal/function_ref.h',
'<(ABSEIL_ROOT)/absl/hash/hash.h',
'<(ABSEIL_ROOT)/absl/hash/internal/city.h',
'<(ABSEIL_ROOT)/absl/hash/internal/city.cc',
'<(ABSEIL_ROOT)/absl/hash/internal/hash.h',
'<(ABSEIL_ROOT)/absl/hash/internal/hash.cc',
'<(ABSEIL_ROOT)/absl/hash/internal/low_level_hash.h',
'<(ABSEIL_ROOT)/absl/hash/internal/low_level_hash.cc',
'<(ABSEIL_ROOT)/absl/meta/type_traits.h',
'<(ABSEIL_ROOT)/absl/memory/memory.h',
'<(ABSEIL_ROOT)/absl/numeric/bits.h',
'<(ABSEIL_ROOT)/absl/numeric/int128.h',
'<(ABSEIL_ROOT)/absl/numeric/int128.cc',
'<(ABSEIL_ROOT)/absl/numeric/internal/bits.h',
'<(ABSEIL_ROOT)/absl/numeric/internal/representation.h',
'<(ABSEIL_ROOT)/absl/profiling/internal/exponential_biased.h',
'<(ABSEIL_ROOT)/absl/profiling/internal/exponential_biased.cc',
'<(ABSEIL_ROOT)/absl/profiling/internal/sample_recorder.h',
'<(ABSEIL_ROOT)/absl/strings/ascii.h',
'<(ABSEIL_ROOT)/absl/strings/ascii.cc',
'<(ABSEIL_ROOT)/absl/strings/charconv.h',
'<(ABSEIL_ROOT)/absl/strings/charconv.cc',
'<(ABSEIL_ROOT)/absl/strings/charset.h',
'<(ABSEIL_ROOT)/absl/strings/cord.h',
'<(ABSEIL_ROOT)/absl/strings/cord.cc',
'<(ABSEIL_ROOT)/absl/strings/cord_analysis.h',
'<(ABSEIL_ROOT)/absl/strings/cord_analysis.cc',
'<(ABSEIL_ROOT)/absl/strings/cord_buffer.h',
'<(ABSEIL_ROOT)/absl/strings/cord_buffer.cc',
'<(ABSEIL_ROOT)/absl/strings/escaping.h',
'<(ABSEIL_ROOT)/absl/strings/escaping.cc',
'<(ABSEIL_ROOT)/absl/strings/has_absl_stringify.h',
'<(ABSEIL_ROOT)/absl/strings/internal/charconv_bigint.h',
'<(ABSEIL_ROOT)/absl/strings/internal/charconv_bigint.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/charconv_parse.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_data_edge.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_internal.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_internal.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_btree.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_btree.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_btree_navigator.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_btree_navigator.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_btree_reader.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_btree_reader.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_consume.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_consume.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_crc.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_crc.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cord_rep_flat.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_functions.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_functions.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_handle.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_handle.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_info.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_info.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_statistics.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_update_scope.h',
'<(ABSEIL_ROOT)/absl/strings/internal/cordz_update_tracker.h',
'<(ABSEIL_ROOT)/absl/strings/internal/escaping.h',
'<(ABSEIL_ROOT)/absl/strings/internal/escaping.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/memutil.h',
'<(ABSEIL_ROOT)/absl/strings/internal/memutil.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/resize_uninitialized.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/arg.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/arg.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/bind.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/bind.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/checker.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/constexpr_parser.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/extension.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/extension.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/float_conversion.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/float_conversion.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/parser.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/parser.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/output.h',
'<(ABSEIL_ROOT)/absl/strings/internal/str_format/output.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/string_constant.h',
'<(ABSEIL_ROOT)/absl/strings/internal/stringify_sink.h',
'<(ABSEIL_ROOT)/absl/strings/internal/stringify_sink.cc',
'<(ABSEIL_ROOT)/absl/strings/internal/utf8.h',
'<(ABSEIL_ROOT)/absl/strings/internal/utf8.cc',
'<(ABSEIL_ROOT)/absl/strings/match.h',
'<(ABSEIL_ROOT)/absl/strings/match.cc',
'<(ABSEIL_ROOT)/absl/strings/numbers.h',
'<(ABSEIL_ROOT)/absl/strings/numbers.cc',
'<(ABSEIL_ROOT)/absl/strings/str_cat.h',
'<(ABSEIL_ROOT)/absl/strings/str_cat.cc',
'<(ABSEIL_ROOT)/absl/strings/str_format.h',
'<(ABSEIL_ROOT)/absl/strings/str_join.h',
'<(ABSEIL_ROOT)/absl/strings/strip.h',
'<(ABSEIL_ROOT)/absl/strings/string_view.h',
'<(ABSEIL_ROOT)/absl/strings/string_view.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/create_thread_identity.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/create_thread_identity.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/futex.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/futex_waiter.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/futex_waiter.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/graphcycles.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/graphcycles.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/kernel_timeout.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/kernel_timeout.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/per_thread_sem.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/per_thread_sem.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/pthread_waiter.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/pthread_waiter.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/sem_waiter.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/sem_waiter.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/stdcpp_waiter.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/stdcpp_waiter.cc',
'<(ABSEIL_ROOT)/absl/synchronization/internal/waiter.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/waiter_base.h',
'<(ABSEIL_ROOT)/absl/synchronization/internal/waiter_base.cc',
'<(ABSEIL_ROOT)/absl/synchronization/mutex.h',
'<(ABSEIL_ROOT)/absl/synchronization/mutex.cc',
'<(ABSEIL_ROOT)/absl/time/civil_time.h',
'<(ABSEIL_ROOT)/absl/time/civil_time.cc',
'<(ABSEIL_ROOT)/absl/time/clock.h',
'<(ABSEIL_ROOT)/absl/time/clock.cc',
'<(ABSEIL_ROOT)/absl/time/internal/cctz/include/cctz/civil_time.h',
'<(ABSEIL_ROOT)/absl/time/internal/cctz/include/cctz/civil_time_detail.h',
'<(ABSEIL_ROOT)/absl/time/internal/cctz/src/civil_time_detail.cc',
'<(ABSEIL_ROOT)/absl/time/internal/cctz/include/cctz/time_zone.h',
'<(ABSEIL_ROOT)/absl/time/time.h',
'<(ABSEIL_ROOT)/absl/time/time.cc',
'<(ABSEIL_ROOT)/absl/types/optional.h',
'<(ABSEIL_ROOT)/absl/types/span.h',
'<(ABSEIL_ROOT)/absl/types/internal/span.h',
'<(ABSEIL_ROOT)/absl/types/variant.h',
'<(ABSEIL_ROOT)/absl/utility/utility.h',
]
}, # v8_abseil
],
}

0 comments on commit 1b0759c

Please sign in to comment.