def main(compileCommandStr, outDir, platform, linkMode, thirdPartyInstall): if not isdir(outDir): makedirs(outDir) logPath = outDir + '/probe.log' with open(logPath, 'w', encoding='utf-8') as log: print('Probing target system...') print('Probing system:', file=log) distroRoot = thirdPartyInstall or None if distroRoot is None: if platform == 'darwin': for searchPath in environ.get('PATH', '').split(pathsep): if searchPath == '/opt/local/bin': print('Using libraries from MacPorts.') distroRoot = '/opt/local' break elif searchPath == '/sw/bin': print('Using libraries from Fink.') distroRoot = '/sw' break else: distroRoot = '/usr/local' elif platform.endswith('bsd') or platform == 'dragonfly': distroRoot = environ.get('LOCALBASE', '/usr/local') print('Using libraries from ports directory %s.' % distroRoot) elif platform == 'pandora': distroRoot = environ.get('LIBTOOL_SYSROOT_PATH') if distroRoot is not None: distroRoot += '/usr' print('Using libraries from sysroot directory %s.' % distroRoot) configuration = getConfiguration(linkMode) TargetSystem(log, logPath, compileCommandStr, outDir, platform, distroRoot, configuration).everything()
def main(platform, linkMode): configuration = getConfiguration(linkMode) components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform)) print ' '.join(sorted(thirdPartyLibs))
def main(platform, tarballsDir, sourcesDir, patchesDir): configuration = getConfiguration('3RD_STA') components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform)) for makeName in sorted(thirdPartyLibs): fetchPackageSource(makeName, tarballsDir, sourcesDir, patchesDir)
def main(platform, linkMode): configuration = getConfiguration(linkMode) components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform) ) print ' '.join(sorted(thirdPartyLibs))
def main(platform, tarballsDir, sourcesDir, patchesDir): if platform == "android": fetchPackageSource("TCL_ANDROID", tarballsDir, sourcesDir, patchesDir) else: configuration = getConfiguration("3RD_STA") components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform) ) for makeName in sorted(thirdPartyLibs): fetchPackageSource(makeName, tarballsDir, sourcesDir, patchesDir)
def main(platform, linkMode): configuration = getConfiguration(linkMode) components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform)) # ALSA exists on Linux only. # While Android has the necessary kernel interfaces, the lib doesn't # support Android. if platform != 'linux': thirdPartyLibs.discard('ALSA') print(' '.join(sorted(thirdPartyLibs)))
def main(platform, tarballsDir, sourcesDir, patchesDir): configuration = getConfiguration('3RD_STA') components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform)) if platform == 'windows': # Avoid ALSA, since we won't be building it and extracting it will # fail on file systems that don't support symlinks. # TODO: 3rdparty.mk filters out ALSA on non-Linux platforms; # figure out a way to do that in a single location. thirdPartyLibs.discard('ALSA') for makeName in sorted(thirdPartyLibs): fetchPackageSource(makeName, tarballsDir, sourcesDir, patchesDir)
def main(compileCommandStr, outDir, platform, linkMode, thirdPartyInstall): if not isdir(outDir): makedirs(outDir) logPath = outDir + '/probe.log' log = open(logPath, 'w') print 'Probing target system...' print >> log, 'Probing system:' try: distroRoot = thirdPartyInstall or None if distroRoot is None: if platform == 'darwin': for searchPath in environ.get('PATH', '').split(pathsep): if searchPath == '/opt/local/bin': print 'Using libraries from MacPorts.' distroRoot = '/opt/local' break elif searchPath == '/sw/bin': print 'Using libraries from Fink.' distroRoot = '/sw' break else: distroRoot = '/usr/local' elif platform.endswith('bsd') or platform == 'dragonfly': distroRoot = environ.get('LOCALBASE', '/usr/local') print 'Using libraries from ports directory %s.' % distroRoot elif platform == 'pandora': distroRoot = environ.get('LIBTOOL_SYSROOT_PATH') if distroRoot is not None: distroRoot += '/usr' print 'Using libraries from sysroot directory %s.' \ % distroRoot configuration = getConfiguration(linkMode) TargetSystem( log, logPath, compileCommandStr, outDir, platform, distroRoot, configuration ).everything() finally: log.close()
def main(platform, tarballsDir, sourcesDir, patchesDir): if platform == 'android': fetchPackageSource('TCL_ANDROID', tarballsDir, sourcesDir, patchesDir) else: configuration = getConfiguration('3RD_STA') components = configuration.iterDesiredComponents() # Compute the set of all directly and indirectly required libraries, # then filter out system libraries. thirdPartyLibs = set( makeName for makeName in allDependencies(requiredLibrariesFor(components)) if not librariesByName[makeName].isSystemLibrary(platform) ) if platform == 'windows': # Avoid ALSA, since we won't be building it and extracting it will # fail on file systems that don't support symlinks. # TODO: 3rdparty.mk filters out ALSA on non-Linux platforms; # figure out a way to do that in a single location. thirdPartyLibs.discard('ALSA') for makeName in sorted(thirdPartyLibs): fetchPackageSource(makeName, tarballsDir, sourcesDir, patchesDir)