Changed the library type to the shared library from static library 78/75078/1 submit/tizen/20160616.121716
authorYoungcheol Kang <ychul.kang@samsung.com>
Thu, 16 Jun 2016 11:46:33 +0000 (20:46 +0900)
committerYoungcheol Kang <ychul.kang@samsung.com>
Thu, 16 Jun 2016 11:46:33 +0000 (20:46 +0900)
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 <ychul.kang@samsung.com>
build/pkgconfig/v8.pc.in
build/standalone.gypi
packaging/v8.spec
tools/gyp/v8.gyp

index 2726f3a..077c78f 100644 (file)
@@ -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
index 7250579..983558e 100644 (file)
@@ -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
index e4721ba..5bd4df7 100644 (file)
@@ -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
index 336a33a..bcb5801 100644 (file)
     {
       'target_name': 'v8_snapshot',
       'type': 'static_library',
-      'standalone_static_library': 1,
       'conditions': [
         ['want_separate_host_toolset==1', {
           'toolsets': ['host', 'target'],
     {
       'target_name': 'v8_nosnapshot',
       'type': 'static_library',
-      'standalone_static_library': 1,
       'dependencies': [
         'v8_base',
       ],
     {
       'target_name': 'v8_external_snapshot',
       'type': 'static_library',
-      'standalone_static_library': 1,
       'conditions': [
         [ 'v8_use_external_startup_data==1', {
           'conditions': [
     {
       'target_name': 'v8_base',
       'type': 'static_library',
-      'standalone_static_library': 1,
       'dependencies': [
         'v8_libbase',
       ],
     {
       'target_name': 'v8_libbase',
       'type': 'static_library',
-      'standalone_static_library': 1,
       'variables': {
         'optimize': 'max',
       },
     {
       'target_name': 'v8_libplatform',
       'type': 'static_library',
-      'standalone_static_library': 1,
       'variables': {
         'optimize': 'max',
       },