cfgparse

package
v0.0.0-...-3a66c49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFlags

type CFlags struct {
	Paths []string // Include Path
}

func ParseCFlags

func ParseCFlags(cflags string) *CFlags

func (*CFlags) GenHeaderFilePaths

func (cf *CFlags) GenHeaderFilePaths(files []string) ([]string, []string, error)

type Libs

type Libs struct {
	Paths []string // Dylib Path
	Names []string
}

func ParseLibs

func ParseLibs(libs string) *Libs

func (*Libs) GenDylibPaths

func (l *Libs) GenDylibPaths(defaultPaths []string) ([]string, []string, error)

searches for each library name in the provided paths and default paths, appending the appropriate file extension (.dylib for macOS, .so for Linux).

Example: For "-L/opt/homebrew/lib -llua -lm": - It will search for liblua.dylib (on macOS) or liblua.so (on Linux) - System libs like -lm are ignored and included in notFound

So error is returned if no libraries found at all.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL