Re: [v8-users] Re: v8 static library on windows gives linker errors

2018-10-08 Thread Jakob Kummerow
>
> The v8_monolith.lib is unbelievably huge (nearly a gig)
>

That's probably mostly debug info. Try Release mode ("is_debug = false").

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] Re: v8 static library on windows gives linker errors

2018-10-08 Thread Mike Moening
Did a little more googling and found this option for the args.gn file:

v8_monolithic = true
is_debug = true
is_clang = false
v8_target_cpu = "x64"
target_cpu = "x64"
v8_enable_backtrace = true
v8_enable_slow_dchecks = true
v8_optimized_debug = false
is_component_build = false
v8_static_library = true
use_custom_libcxx = false
use_custom_libcxx_for_host = false
treat_warnings_as_errors = false
v8_enable_i18n_support = false
v8_use_external_startup_data = false

Which is producing a single output file named: v8_monolith.lib
Which when linked with my application finally has no errors!
The v8_monolith.lib is unbelievably huge (nearly a gig) but at least it 
works.

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] Re: v8 static library on windows gives linker errors

2018-10-08 Thread Mike Moening
I like the idea of a single library.
I tried the following based on the instructions I saw:

ninja -C out.gn/x64.debug v8_monolith


but got this error:


ninja: Entering directory `out.gn/x64.debug'

ninja: error: unknown target 'v8_monolith'

>
>>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] Re: v8 static library on windows gives linker errors

2018-10-08 Thread Jakob Kummerow
The set of required libraries should be:

v8_base
v8_snapshot
v8_libbase
v8_libplatform
v8_libsampler

Does that work?

As a simpler alternative, the instructions

recommend
to use the "v8_monolith" target, which should include everything you need
in one convenient bundle.


On Sun, Oct 7, 2018 at 3:50 PM Mike Moening  wrote:

> Here's the build command i'm using:
>
> ninja -C out.gn/x64.debug
>
> --
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.