gxtc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package gxtc provides functions to invoke the GX toolchain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAll added in v0.2.0

func BindAll(mod *gxmodule.Module, fs []BinderCallback) error

BindAll writes C++ bindings for all C++ packages.

func CompileCArchive added in v0.2.0

func CompileCArchive(mod *gxmodule.Module) error

CompileCArchive creates a Go file with all the GX/Go dependencies and a main function. This file is then compiled into a static binary C library.

func DepsPath added in v0.2.0

func DepsPath(mod *gxmodule.Module) (string, error)

DepsPath returns the path where dependencies are linked. It is created if it does not exist.

func LinkAllDeps

func LinkAllDeps(mod *gxmodule.Module, cache *gotc.Cache) error

LinkAllDeps creates links to dependencies. Returns the path where the links where created.

func PackAll

func PackAll(mod *gxmodule.Module) error

PackAll looks for all GX packages and generates a matching Go package to encapsulte the GX source code.

func Packages

func Packages(mod *gxmodule.Module) ([]string, error)

Packages returns the list of GX packages in the current module.

func WriteCMakeLists added in v0.2.0

func WriteCMakeLists(target string, pkg *ir.Package, headerPath, ccPath string) error

WriteCMakeLists writes CMakeLists.txt for a given package.

Types

type BinderCallback added in v0.2.0

type BinderCallback func(target string, pkg *ir.Package, headerPath, ccPath string) error

BinderCallback is a function called after bindings have been generated for a package.

Jump to

Keyboard shortcuts

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