(self, env: 'Environment')
return paths
These are usually /Library/Frameworks and /System/Library/Frameworks,
        unless you select a particular macOS SDK with the -isysroot flag.
        You can also add to this by setting -F in CFLAGS.
These are usually /Library/Frameworks and /System/Library/Frameworks,
        unless you select a particular macOS SDK with the -isysroot flag.
        You can also add to this by setting -F in CFLAGS.
These are usually / Library / Frameworks and / System / Library / Frameworks unless you select a particular macOS SDK with the - isysroot flag . You can also add to this by setting - F in CFLAGS .
def find_framework_paths(self, env: 'Environment') -> T.List[str]:
        '''
        These are usually /Library/Frameworks and /System/Library/Frameworks,
        unless you select a particular macOS SDK with the -isysroot flag.
        You can also add to this by setting -F in CFLAGS.
        '''
        # TODO: this really needs to be *AppleClang*, not just any clang.
        if self.id != 'clang':
            raise mesonlib.MesonException('Cannot find framework path with non-clang compiler')
        # Construct the compiler command-line
        commands = self.get_exelist() + ['-v', '-E', '-']
        commands += self.get_always_args()
        # Add CFLAGS/CXXFLAGS/OBJCFLAGS/OBJCXXFLAGS from the env
        commands += env.coredata.get_external_args(self.for_machine, self.language)
        mlog.debug('Finding framework path by running: ', ' '.join(commands), '\n')
        os_env = os.environ.copy()
        os_env['LC_ALL'] = 'C'
        _, _, stde = mesonlib.Popen_safe(commands, env=os_env, stdin=subprocess.PIPE)
        paths = []  # T.List[str]
        for line in stde.split('\n'):
            if '(framework directory)' not in line:
                continue
            # line is of the form:
            # ` /path/to/framework (framework directory)`
            paths.append(line[:-21].strip())
        return paths
def find_framework_paths ( self , env : 'Environment' ) -> T . List [ str ] : # TODO: this really needs to be *AppleClang*, not just any clang. if self . id != 'clang' : raise mesonlib . MesonException ( 'Cannot find framework path with non-clang compiler' ) # Construct the compiler command-line commands = self . get_exelist ( ) + [ '-v' , '-E' , '-' ] commands += self . get_always_args ( ) # Add CFLAGS/CXXFLAGS/OBJCFLAGS/OBJCXXFLAGS from the env commands += env . coredata . get_external_args ( self . for_machine , self . language ) mlog . debug ( 'Finding framework path by running: ' , ' ' . join ( commands ) , '\n' ) os_env = os . environ . copy ( ) os_env [ 'LC_ALL' ] = 'C' _ , _ , stde = mesonlib . Popen_safe ( commands , env = os_env , stdin = subprocess . PIPE ) paths = [ ] # T.List[str] for line in stde . split ( '\n' ) : if '(framework directory)' not in line : continue # line is of the form: # ` /path/to/framework (framework directory)` paths . append ( line [ : - 21 ] . strip ( ) ) return paths