There's two relevant gn flags:

v8_use_snapshot: Enables snapshot support.
v8_use_external_startup_data: enables 'external' snapshots, i.e. the
snapshot_blob.bin file.

It sounds like you want both of these flags set to true.

Another option that is specifically intended to be simple to use for
embedders is a monolithic build, which produces a single v8_monolith.a
static library that includes the snapshot and can be included into embedder
projects. The gn flags there would be something like this:

  v8_use_external_startup_data = false
  v8_monolithic = true
  is_component_build = false
  is_clang = false
  [... whatever other gn flags you need ...]

On Mon, Apr 15, 2019 at 8:53 PM <[email protected]> wrote:

> I can try to make it with snapshot files, but I get only natives_blob.bin,
> but I can't see snapshot_blob.bin
> Maybe you know how to get snapshot_blob.bin?
>
> воскресенье, 14 апреля 2019 г., 3:45:34 UTC+3 пользователь
> [email protected] написал:
>>
>> Hello! I've just compiled V8 as static libraries, everything compiled
>> fine, but when I try to include thiese .lib files into my VS project - it
>> says "Invalid or corrupted library" for v8_base_without_compiler.lib
>> I am on Windows 10 x64, Visual Studio 2017, lastest SDKs
>>
>> My GN build config:
>> is_debug = false
>> target_cpu = "x64"
>> is_component_build = false
>> v8_static_library = true
>>
>> My source code part:
>> https://pastebin.com/jhwmsX8R
>>
>> If I need to provide more information - please inform me
>>
>> Thank you!
>>
>
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to