]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't link with shared_librayr of boringssl in Release mode
authorCheng Zhao <zcbenz@gmail.com>
Fri, 10 Apr 2015 11:00:06 +0000 (19:00 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 10 Apr 2015 11:00:06 +0000 (19:00 +0800)
atom.gyp
script/create-dist.py
script/lib/config.py
vendor/brightray

index e4efefd6260eacc096cb0c0d53c684ff7d020f66..ed09e23686c59af5af95a08d989f841ce577b263 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
                       '<@(libchromiumcontent_shared_v8_libraries)',
                     ],
                   }, {
-                    'copied_libraries': [
-                      '<(libchromiumcontent_dir)/boringssl.dll',
-                    ],
+                    'copied_libraries': [],
                   }],
                 ],
               },
                   }, {
                     'copied_libraries': [
                       '<(PRODUCT_DIR)/lib/libnode.so',
-                      '<(libchromiumcontent_dir)/libboringssl.so',
                     ],
                   }],
                 ],
                   }, {
                     'copied_libraries': [
                       '<(PRODUCT_DIR)/libnode.dylib',
-                      '<(libchromiumcontent_dir)/libboringssl.dylib'
                     ],
                   }],
                 ],
             },
           ],
           'postbuilds': [
-            {
-              'postbuild_name': 'Fix path of libboringssl',
-              'action': [
-                'install_name_tool',
-                '-change',
-                '/usr/local/lib/libboringssl.dylib',
-                '@rpath/libboringssl.dylib',
-                '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
-              ],
-            },
             {
               'postbuild_name': 'Fix path of libnode',
               'action': [
index e957725d817d7e99c2f6565adc0f8cadcb393f5e..faa04038b1e0b0d043383be6790528b34a7e7fe2 100755 (executable)
@@ -26,7 +26,6 @@ TARGET_BINARIES = {
   ],
   'win32': [
     'atom.exe',
-    'boringssl.dll',
     'content_shell.pak',
     'd3dcompiler_47.dll',
     'ffmpegsumo.dll',
@@ -44,7 +43,6 @@ TARGET_BINARIES = {
     'atom',
     'content_shell.pak',
     'icudtl.dat',
-    'libboringssl.so',
     'libffmpegsumo.so',
     'libnode.so',
     'natives_blob.bin',
@@ -118,16 +116,6 @@ def copy_chromedriver():
   shutil.copyfile(src, dest)
   os.chmod(dest, os.stat(dest).st_mode | stat.S_IEXEC)
 
-  # Fix the linking with boringssl.
-  if TARGET_PLATFORM == 'linux':
-    execute(['chrpath', '-r', '$ORIGIN', dest])
-  elif TARGET_PLATFORM == 'darwin':
-    shutil.copy2(os.path.join(CHROMIUM_DIR, 'libboringssl.dylib'), DIST_DIR)
-    execute(['install_name_tool', '-change',
-             '/usr/local/lib/libboringssl.dylib',
-             '@loader_path/libboringssl.dylib',
-             dest])
-
 
 def copy_license():
   shutil.copy2(os.path.join(SOURCE_ROOT, 'LICENSE'), DIST_DIR)
@@ -186,11 +174,9 @@ def create_chromedriver_zip():
   with scoped_cwd(DIST_DIR):
     files = ['LICENSE']
     if TARGET_PLATFORM == 'win32':
-      files += ['chromedriver.exe', 'boringssl.dll']
-    elif TARGET_PLATFORM == 'darwin':
-      files += ['chromedriver', 'libboringssl.dylib']
-    elif TARGET_PLATFORM == 'linux':
-      files += ['chromedriver', 'libboringssl.so']
+      files += ['chromedriver.exe']
+    else:
+      files += ['chromedriver']
     make_zip(zip_file, files, [])
 
 
index 9663480154eb3e8b608b042e3f2bfe1eb4088cc2..388ca02fffa958bdb622ba97a0c5ac36e22a18b5 100644 (file)
@@ -4,7 +4,7 @@ import platform
 import sys
 
 BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
-LIBCHROMIUMCONTENT_COMMIT = '0718fa8b44e004a39ee2511858abbef1dae89cef'
+LIBCHROMIUMCONTENT_COMMIT = 'f1ad1412461ba3345a27cfe935ffc872dba0ac5b'
 
 ARCH = {
     'cygwin': '32bit',
index 0f37e5fa4d5273f80c91d485e0ce6edef683a26e..14b4dc7151ded676d7133f0da17033149a4954df 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 0f37e5fa4d5273f80c91d485e0ce6edef683a26e
+Subproject commit 14b4dc7151ded676d7133f0da17033149a4954df