On Tue, Jun 11, 2019 at 5:12 PM Darin Dimitrov <darin.dimit...@gmail.com> wrote:
>
> I have built V8 with the "v8_enable_i18n_support=true" gn flag and I can 
> successfully initialize it by providing the location of the "icudtl.dat" file 
> (created during the v8 build process):
>
> bool success = V8::InitializeICU("/path_to/icudtl.dat");
>
> I was wondering if instead of providing the location of this file on the file 
> system, it is possible to pass a pointer to the contents? I would like to 
> somehow embed this file into my application.
>
> For example for the V8 heap snapshot there are the "V8::SetNativesDataBlob" 
> and "V8::SetSnapshotDataBlob" APIs which allow me to directly pass a pointer 
> to "natives_blob.bin" and "snapshot_blob.bin" file contents and I don't need 
> to distribute them separately.
>
> By looking at the InitializeICU 
> https://chromium.googlesource.com/v8/v8.git/+/refs/heads/master/src/init/icu_util.cc#65
>   method I couldn't find any way to achieve this.

You can, with some effort. See this thread from last month:

https://groups.google.com/forum/#!msg/v8-users/XjHbF1xMD8E/IMEGQBhpBAAJ

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/CAHQurc_jtd%3Dhg6dBwRYxa4dKUgLtfFu%3DVoATyCc3KnCxF%3D3qJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to