native_client_sdk/src/tools/create_nmf.py
def GetDefaultLibPath(config):
  """Derive default library path.

  This path is used when searching for shared objects.  This currently includes
  the toolchain library folders and the top level SDK lib folder.
  """
  sdk_root = GetSDKRoot()

  osname = getos.GetPlatform()
  libpath = [
    # Core toolchain libraries
    'toolchain/%s_x86_glibc/x86_64-nacl/lib' % osname,
    'toolchain/%s_x86_glibc/x86_64-nacl/lib32' % osname,
    'toolchain/%s_arm_glibc/arm-nacl/lib' % osname,
    # user installed libraries (used by webports)
    'toolchain/%s_x86_glibc/x86_64-nacl/usr/lib' % osname,
    'toolchain/%s_x86_glibc/i686-nacl/usr/lib' % osname,
    'toolchain/%s_arm_glibc/arm-nacl/usr/lib' % osname,
    # SDK bundle libraries
    'lib/glibc_x86_32/%s' % config,
    'lib/glibc_x86_64/%s' % config,
    'lib/glibc_arm/%s' % config,
  ]

  # In some cases (e.g. ASAN, TSAN, STANDALONE) the name of the configuration
  # can be different to simply Debug or Release.  For example 'msan_Release'.
  # In this case we search for libraries first in this directory and then
  # fall back to 'Release'.
  if config not in ['Debug', 'Release']:
    config_fallback = 'Release'
    if 'Debug' in config:
      config_fallback = 'Debug'

    libpath += [
      'lib/glibc_x86_32/%s' % config_fallback,
      'lib/glibc_x86_64/%s' % config_fallback,
      'lib/glibc_arm/%s' % config_fallback,
      'ports/lib/glibc_x86_32/%s' % config_fallback,
      'ports/lib/glibc_x86_64/%s' % config_fallback,
      'ports/lib/glibc_arm/%s' % config_fallback,
    ]

  libpath = [os.path.normpath(p) for p in libpath]
  libpath = [os.path.join(sdk_root, p) for p in libpath]
  libpath.append(os.path.join(sdk_root, 'tools'))
  return libpath
Derive default library path.

  This path is used when searching for shared objects.  This currently includes
  the toolchain library folders and the top level SDK lib folder.
  
Derive default library path.
This path is used when searching for shared objects.  This currently includes
the toolchain library folders and the top level SDK lib folder.
Derive default library path . This path is used when searching for shared objects . This currently includes the toolchain library folders and the top level SDK lib folder .
def GetDefaultLibPath(config):
  sdk_root = GetSDKRoot()
  osname = getos.GetPlatform()
  libpath = [
    'toolchain/%s_x86_glibc/x86_64-nacl/lib' % osname,
    'toolchain/%s_x86_glibc/x86_64-nacl/lib32' % osname,
    'toolchain/%s_arm_glibc/arm-nacl/lib' % osname,
    'toolchain/%s_x86_glibc/x86_64-nacl/usr/lib' % osname,
    'toolchain/%s_x86_glibc/i686-nacl/usr/lib' % osname,
    'toolchain/%s_arm_glibc/arm-nacl/usr/lib' % osname,
    'lib/glibc_x86_32/%s' % config,
    'lib/glibc_x86_64/%s' % config,
    'lib/glibc_arm/%s' % config,
  ]
  if config not in ['Debug', 'Release']:
    config_fallback = 'Release'
    if 'Debug' in config:
      config_fallback = 'Debug'
    libpath += [
      'lib/glibc_x86_32/%s' % config_fallback,
      'lib/glibc_x86_64/%s' % config_fallback,
      'lib/glibc_arm/%s' % config_fallback,
      'ports/lib/glibc_x86_32/%s' % config_fallback,
      'ports/lib/glibc_x86_64/%s' % config_fallback,
      'ports/lib/glibc_arm/%s' % config_fallback,
    ]
  libpath = [os.path.normpath(p) for p in libpath]
  libpath = [os.path.join(sdk_root, p) for p in libpath]
  libpath.append(os.path.join(sdk_root, 'tools'))
  return libpath
def GetDefaultLibPath ( config ) : sdk_root = GetSDKRoot ( ) osname = getos . GetPlatform ( ) libpath = [ 'toolchain/%s_x86_glibc/x86_64-nacl/lib' % osname , 'toolchain/%s_x86_glibc/x86_64-nacl/lib32' % osname , 'toolchain/%s_arm_glibc/arm-nacl/lib' % osname , 'toolchain/%s_x86_glibc/x86_64-nacl/usr/lib' % osname , 'toolchain/%s_x86_glibc/i686-nacl/usr/lib' % osname , 'toolchain/%s_arm_glibc/arm-nacl/usr/lib' % osname , 'lib/glibc_x86_32/%s' % config , 'lib/glibc_x86_64/%s' % config , 'lib/glibc_arm/%s' % config , ] if config not in [ 'Debug' , 'Release' ] : config_fallback = 'Release' if 'Debug' in config : config_fallback = 'Debug' libpath += [ 'lib/glibc_x86_32/%s' % config_fallback , 'lib/glibc_x86_64/%s' % config_fallback , 'lib/glibc_arm/%s' % config_fallback , 'ports/lib/glibc_x86_32/%s' % config_fallback , 'ports/lib/glibc_x86_64/%s' % config_fallback , 'ports/lib/glibc_arm/%s' % config_fallback , ] libpath = [ os . path . normpath ( p ) for p in libpath ] libpath = [ os . path . join ( sdk_root , p ) for p in libpath ] libpath . append ( os . path . join ( sdk_root , 'tools' ) ) return libpath
Derive default library path.
Derive default library path .
"""Derive default library path.

  This path is used when searching for shared objects.  This currently includes
  the toolchain library folders and the top level SDK lib folder.
  """ # Core toolchain libraries # user installed libraries (used by webports) # SDK bundle libraries # In some cases (e.g. ASAN, TSAN, STANDALONE) the name of the configuration # can be different to simply Debug or Release.  For example 'msan_Release'. # In this case we search for libraries first in this directory and then # fall back to 'Release'.
config