Ticket #49074: patch-chromium_tbd_libraries.diff

File patch-chromium_tbd_libraries.diff, 854 bytes (added by ramundsen85, 9 years ago)

patch to chromium, try to use tbd library version if dylib is not available in sysroot path

  • qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/xcode_emulation.py

    old new  
    984984    sdk_root = self._SdkPath(config_name)
    985985    if not sdk_root:
    986986      sdk_root = ''
    987     return l.replace('$(SDKROOT)', sdk_root)
     987    library = l.replace('$(SDKROOT)', sdk_root)
     988    if l.startswith('$(SDKROOT)'):
     989      basename, ext = os.path.splitext(library)
     990      if ext == '.dylib' and not os.path.exists(library):
     991        tbd_library = basename + '.tbd'
     992        if os.path.exists(tbd_library):
     993          library = tbd_library
     994    return library
    988995
    989996  def AdjustLibraries(self, libraries, config_name=None):
    990997    """Transforms entries like 'Cocoa.framework' in libraries into entries like