From: Youngcheol Kang Date: Thu, 16 Jun 2016 11:46:33 +0000 (+0900) Subject: Changed the library type to the shared library from static library X-Git-Tag: submit/tizen/20160616.121716^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3742db8bf6c431f2a4932fa16fb75290d643b81b;p=platform%2Fupstream%2Fv8.git Changed the library type to the shared library from static library In order to reduce binary size and memory, this patch changes the library type to the shared library from the static library. Bug: http://suprem.sec.samsung.net/jira/browse/TWF-1510 Change-Id: I1e3c3b86e92dc80faa5edb491968776993e67076 Signed-off-by: Youngcheol Kang --- diff --git a/build/pkgconfig/v8.pc.in b/build/pkgconfig/v8.pc.in index 2726f3ac6..077c78f2c 100644 --- a/build/pkgconfig/v8.pc.in +++ b/build/pkgconfig/v8.pc.in @@ -7,5 +7,5 @@ Name: chromium-efl Description: This is v8 library Version: 4.7.83 -Libs: -L${libdir} ${libdir}/libv8_base.a ${libdir}/libv8_external_snapshot.a ${libdir}/libv8_libbase.a ${libdir}/libv8_libplatform.a ${libdir}/libv8_nosnapshot.a +Libs: -L${libdir} -lv8 Cflags: -I${includedir}/v8/include diff --git a/build/standalone.gypi b/build/standalone.gypi index 7250579d2..983558eca 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -32,7 +32,7 @@ # directly include it themselves. 'includes': ['toolchain.gypi'], 'variables': { - 'component%': 'static_library', + 'component%': 'shared_library', 'clang_xcode%': 0, # Track where uninitialized memory originates from. From fastest to # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2 diff --git a/packaging/v8.spec b/packaging/v8.spec index e4721ba92..5bd4df735 100644 --- a/packaging/v8.spec +++ b/packaging/v8.spec @@ -125,12 +125,12 @@ install -d %{buildroot}%{_libdir}/pkgconfig install -d %{buildroot}%{_libdir}/v8 install -d %{buildroot}%{_includedir}/v8/include install -d %{buildroot}%{_includedir}/v8/include/libplatform -install -m 0755 %{OUTPUT_FOLDER}/*.a %{buildroot}%{_libdir}/v8 +install -m 0755 %{OUTPUT_FOLDER}/lib/libv8.so %{buildroot}%{_libdir} install -m 0755 %{OUTPUT_FOLDER}/natives_blob.bin %{buildroot}%{_libdir}/v8 install -m 0755 %{OUTPUT_FOLDER}/snapshot_blob.bin %{buildroot}%{_libdir}/v8 #make and install the pkgconfig file -sed -e "s#?LIBDIR?#%{_libdir}/v8#" ./build/pkgconfig/v8.pc.in > ./build/pkgconfig/v8.pc +sed -e "s#?LIBDIR?#%{_libdir}#" ./build/pkgconfig/v8.pc.in > ./build/pkgconfig/v8.pc install -m 0644 ./build/pkgconfig/v8.pc %{buildroot}%{_libdir}/pkgconfig install -m 0644 ./include/*.h %{buildroot}%{_includedir}/v8/include @@ -142,13 +142,13 @@ install -m 0644 ./include/libplatform/*.h %{buildroot}%{_includedir}/v8/include/ %files %manifest ./build/manifest/v8.manifest -%{_libdir}/v8/libv8*.a +%{_libdir}/libv8.so %{_libdir}/v8/natives_blob.bin %{_libdir}/v8/snapshot_blob.bin %files devel %manifest ./build/manifest/v8.manifest -%{_libdir}/v8/libv8*.a +%{_libdir}/libv8.so %{_libdir}/v8/natives_blob.bin %{_libdir}/v8/snapshot_blob.bin %{_libdir}/pkgconfig/v8.pc diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp index 336a33a81..bcb580167 100644 --- a/tools/gyp/v8.gyp +++ b/tools/gyp/v8.gyp @@ -146,7 +146,6 @@ { 'target_name': 'v8_snapshot', 'type': 'static_library', - 'standalone_static_library': 1, 'conditions': [ ['want_separate_host_toolset==1', { 'toolsets': ['host', 'target'], @@ -224,7 +223,6 @@ { 'target_name': 'v8_nosnapshot', 'type': 'static_library', - 'standalone_static_library': 1, 'dependencies': [ 'v8_base', ], @@ -258,7 +256,6 @@ { 'target_name': 'v8_external_snapshot', 'type': 'static_library', - 'standalone_static_library': 1, 'conditions': [ [ 'v8_use_external_startup_data==1', { 'conditions': [ @@ -364,7 +361,6 @@ { 'target_name': 'v8_base', 'type': 'static_library', - 'standalone_static_library': 1, 'dependencies': [ 'v8_libbase', ], @@ -1442,7 +1438,6 @@ { 'target_name': 'v8_libbase', 'type': 'static_library', - 'standalone_static_library': 1, 'variables': { 'optimize': 'max', }, @@ -1707,7 +1702,6 @@ { 'target_name': 'v8_libplatform', 'type': 'static_library', - 'standalone_static_library': 1, 'variables': { 'optimize': 'max', },