Re: [v8-users] standalone static library

2018-03-20 Thread Jakob Kummerow
Have you read the official documentation?
https://github.com/v8/v8/wiki/Getting-Started-with-Embedding

Do those steps work for you? If not, what error(s) do they produce?



On Tue, Mar 20, 2018 at 11:09 AM Eduardo Bolis 
wrote:

> Hi,
>
> I successfully build V8 on Ubuntu 17 with GN, but what it generates is a
> set of static libraries and object files that I have no idea how to
> embedded into my project.
> I found an article that said: "Under gn, there is no way to have v8 build
> as a standalone static library."
> So, I ask if anyone knows how to use it. I am working with Netbeans/C++,
> and everything i tryed results in a lot of link errors.
>
> regards,
>
> Eduardo Bolis
>
> --
> --
> 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.


[v8-users] standalone static library

2018-03-20 Thread Eduardo Bolis
Hi,

I successfully build V8 on Ubuntu 17 with GN, but what it generates is a 
set of static libraries and object files that I have no idea how to 
embedded into my project.
I found an article that said: "Under gn, there is no way to have v8 build 
as a standalone static library."
So, I ask if anyone knows how to use it. I am working with Netbeans/C++, 
and everything i tryed results in a lot of link errors.

regards,

Eduardo Bolis

-- 
-- 
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] Re: Large build size

2018-03-20 Thread Raman Budny
Found, that adding symbol_level = 1 to gn config helps to shrink libv8.so 
from 500M to 15M.

On Tuesday, 20 March 2018 15:32:30 UTC+3, Raman Budny wrote:
>
> I'm using 6.6.346.12.
>
> On Thursday, 8 February 2018 02:58:35 UTC+3, Ryan Dahl wrote:
>>
>> Hi,
>>
>> I've noticed that the build size in the latest V8 releases is very large.
>>
>> For example, on 6.5.257, I get
>>
>> -rw-r--r--  1 rld  staff   1.1G Feb  7 18:49 out/v8build/obj//libv8_base.a
>>
>> It's similarly large on 6.6.164. I'm experiencing this on OSX and here is 
>> the configuration I'm using:
>>
>> is_component_build=false
>> is_debug=false
>> v8_deprecation_warnings=true
>> v8_enable_gdbjit=false
>> v8_enable_i18n_support=false
>> v8_experimental_extra_library_files=[]
>> v8_extra_library_files=[]
>> v8_imminent_deprecation_warnings=true
>> v8_static_library=true
>> v8_target_cpu="x64"
>> v8_untrusted_code_mitigations=false
>> v8_use_external_startup_data=false
>> v8_use_snapshot=false
>>
>> Any suggestions on how to reduce the size? I'm surprised that the build 
>> size has gone from under 100M to over 1G in the span of a few years - is 
>> this a bug on my end or working as intended?
>>
>>
>> Thanks,
>> Ryan
>>
>>
>>

-- 
-- 
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] Re: Large build size

2018-03-20 Thread Raman Budny
I'm using 6.6.346.12.

On Thursday, 8 February 2018 02:58:35 UTC+3, Ryan Dahl wrote:
>
> Hi,
>
> I've noticed that the build size in the latest V8 releases is very large.
>
> For example, on 6.5.257, I get
>
> -rw-r--r--  1 rld  staff   1.1G Feb  7 18:49 out/v8build/obj//libv8_base.a
>
> It's similarly large on 6.6.164. I'm experiencing this on OSX and here is 
> the configuration I'm using:
>
> is_component_build=false
> is_debug=false
> v8_deprecation_warnings=true
> v8_enable_gdbjit=false
> v8_enable_i18n_support=false
> v8_experimental_extra_library_files=[]
> v8_extra_library_files=[]
> v8_imminent_deprecation_warnings=true
> v8_static_library=true
> v8_target_cpu="x64"
> v8_untrusted_code_mitigations=false
> v8_use_external_startup_data=false
> v8_use_snapshot=false
>
> Any suggestions on how to reduce the size? I'm surprised that the build 
> size has gone from under 100M to over 1G in the span of a few years - is 
> this a bug on my end or working as intended?
>
>
> Thanks,
> Ryan
>
>
>

-- 
-- 
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] Re: Large build size

2018-03-20 Thread Raman Budny
Same for me (host: x86_64, Ubuntu 16.04, target: armeabi-v7a) with the 
following gn arguments:
is_official_build = true
is_component_build = true
is_debug = false
is_clang = true
target_cpu = "x86"
v8_enable_i18n_support = false
v8_use_snapshot = false
v8_target_cpu = "arm"
arm_arch = "armv7-a":

-rwxrwxr-x  1 budnyjj budnyjj *592M* Mar 20 12:11 libv8.cr.so
-rw-rw-r--  1 budnyjj budnyjj 530K Mar 20 12:11 libv8.cr.so.TOC
-rwxrwxr-x  1 budnyjj budnyjj 1.3M Mar 20 12:10 libv8_libbase.cr.so
-rw-rw-r--  1 budnyjj budnyjj  18K Mar 20 12:10 libv8_libbase.cr.so.TOC
-rwxrwxr-x  1 budnyjj budnyjj 1.7M Mar 20 12:10 libv8_libplatform.cr.so
-rw-rw-r--  1 budnyjj budnyjj  13K Mar 20 12:10 libv8_libplatform.cr.so.TOC


On Thursday, 8 February 2018 02:58:35 UTC+3, Ryan Dahl wrote:
>
> Hi,
>
> I've noticed that the build size in the latest V8 releases is very large.
>
> For example, on 6.5.257, I get
>
> -rw-r--r--  1 rld  staff   1.1G Feb  7 18:49 out/v8build/obj//libv8_base.a
>
> It's similarly large on 6.6.164. I'm experiencing this on OSX and here is 
> the configuration I'm using:
>
> is_component_build=false
> is_debug=false
> v8_deprecation_warnings=true
> v8_enable_gdbjit=false
> v8_enable_i18n_support=false
> v8_experimental_extra_library_files=[]
> v8_extra_library_files=[]
> v8_imminent_deprecation_warnings=true
> v8_static_library=true
> v8_target_cpu="x64"
> v8_untrusted_code_mitigations=false
> v8_use_external_startup_data=false
> v8_use_snapshot=false
>
> Any suggestions on how to reduce the size? I'm surprised that the build 
> size has gone from under 100M to over 1G in the span of a few years - is 
> this a bug on my end or working as intended?
>
>
> Thanks,
> Ryan
>
>
>

-- 
-- 
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.