gcc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GCC = "gcc"

Variables

View Source
var Index = &ice.Context{Name: GCC, Help: "编译器",
	Configs: map[string]*ice.Config{
		GCC: {Name: GCC, Help: "编译器", Value: kit.Data(
			"source", "http://mirrors.aliyun.com/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.gz",
			"build", []interface{}{
				"--enable-languages=c,c++",
				"--disable-multilib",
				"--disable-checking",
			},
		)},
	},
	Commands: map[string]*ice.Command{
		GCC: {Name: "gcc path auto build install", Help: "编译器", Action: map[string]*ice.Action{
			code.INSTALL: {Name: "download", Help: "下载", Hand: func(m *ice.Message, arg ...string) {
				m.Cmdy(code.INSTALL, code.INSTALL, m.Conf(GCC, kit.META_SOURCE))
			}},
			cli.BUILD: {Name: "build", Help: "构建", Hand: func(m *ice.Message, arg ...string) {
				m.Cmdy(code.INSTALL, cli.BUILD, m.Conf(GCC, kit.META_SOURCE), m.Confv(GCC, "meta.build"))
			}},
		}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
			m.Cmdy(code.INSTALL, path.Base(m.Conf(GCC, kit.META_SOURCE)), arg)
		}},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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