utils

package
v0.0.0-...-eec4e57 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PackageName = "github.com/bluszcz/cutego"

Variables

View Source
var Log = logrus.New()

Functions

func ADD_ANDROID_MODULES_INCLUDE

func ADD_ANDROID_MODULES_INCLUDE(module string)

func ANDROID_EXTRA_LIBS

func ANDROID_EXTRA_LIBS() string

func ANDROID_MODULES_INCLUDE

func ANDROID_MODULES_INCLUDE() string

func ANDROID_NDK_DIR

func ANDROID_NDK_DIR() string

func ANDROID_NDK_MAJOR_VERSION

func ANDROID_NDK_MAJOR_VERSION() int

func ANDROID_NDK_NOSTDLIBPP_LDFLAG

func ANDROID_NDK_NOSTDLIBPP_LDFLAG() string

ANDROID_NDK_NOSTDLIBPP_LDFLAG return -nostdlib++ or empty string if that flag is no required by Android NDK

func ANDROID_NDK_PLATFORM

func ANDROID_NDK_PLATFORM() string

ANDROID_NDK_PLATFORM returns the Android API level to use in the building process

func ANDROID_NDK_REQUIRE_NOSTDLIBPP_LDFLAG

func ANDROID_NDK_REQUIRE_NOSTDLIBPP_LDFLAG() bool

ANDROID_NDK_REQUIRE_NOSTDLIBPP_LDFLAG returns true if the -nostdlib++ flag is required by Android NDK and false otherwise

func ANDROID_SDK_DIR

func ANDROID_SDK_DIR() string

func AppendToFlag

func AppendToFlag(flags []string, flag, content string) []string

AppendToFlag is a quick function that appends content to a flag if is already defined

func BuildTags

func BuildTags(tags []string) string

func CGO_CFLAGS_ALLOW

func CGO_CFLAGS_ALLOW() string

func CGO_CXXFLAGS_ALLOW

func CGO_CXXFLAGS_ALLOW() string

func CGO_LDFLAGS_ALLOW

func CGO_LDFLAGS_ALLOW() string

func CGO_MSCFLAGS_ALLOW

func CGO_MSCFLAGS_ALLOW() string

func CGO_MSCXXFLAGS_ALLOW

func CGO_MSCXXFLAGS_ALLOW() string

func CGO_MSLDFLAGS_ALLOW

func CGO_MSLDFLAGS_ALLOW() string

func CI

func CI() bool

func CheckBuildTarget

func CheckBuildTarget(buildTarget string, docker bool)

func Debug

func Debug()

func ExistsDir

func ExistsDir(name string) bool

func ExistsFile

func ExistsFile(name string) bool

func GOARCH

func GOARCH() string

func GOARM

func GOARM() (string, bool)

func GOBIN

func GOBIN() string

func GOFLAGS

func GOFLAGS() string

func GOMOD

func GOMOD(path string) string

func GOPATH

func GOPATH() string

func GOVERSION

func GOVERSION() (r string)

func GOVERSION_NUM

func GOVERSION_NUM() int

func GOVSVARSPATH

func GOVSVARSPATH() string

func GoList

func GoList(args ...string) *exec.Cmd

func GoListOptional

func GoListOptional(args ...string) (r string)

func GoQtPkgPath

func GoQtPkgPath(s ...string) (r string)

func IPHONEOS_SDK_DIR

func IPHONEOS_SDK_DIR() string

func IPHONESIMULATOR_SDK_DIR

func IPHONESIMULATOR_SDK_DIR() string

func IsMsys2QtDir

func IsMsys2QtDir() bool

func JDK_DIR

func JDK_DIR() string

func Load

func Load(name string) string

TODO: export error

func LoadOptional

func LoadOptional(name string) string

TODO: export error

func MACOS_SDK_DIR

func MACOS_SDK_DIR() string

func MINGWDIR

func MINGWDIR() string

func MINGWTOOLSDIR

func MINGWTOOLSDIR() string

func MSYSTEM

func MSYSTEM() string

func MSYS_DOCKER

func MSYS_DOCKER() bool

func MkdirAll

func MkdirAll(dir string) error

func MustGoPath

func MustGoPath() string

MustGoPath returns the GOPATH that holds this package

func QT_API

func QT_API(def string) string

func QT_API_NUM

func QT_API_NUM(def string) int

func QT_DARWIN_DIR

func QT_DARWIN_DIR() string

func QT_DEBUG

func QT_DEBUG() bool

func QT_DEBUG_CONSOLE

func QT_DEBUG_CONSOLE() bool

func QT_DEBUG_CPP

func QT_DEBUG_CPP() bool

func QT_DEBUG_QML

func QT_DEBUG_QML() bool

func QT_DIR

func QT_DIR() string

func QT_DISTRO

func QT_DISTRO() string

func QT_DOCKER

func QT_DOCKER() bool

func QT_DOC_DIR

func QT_DOC_DIR() string

func QT_DYNAMIC_SETUP

func QT_DYNAMIC_SETUP() bool

func QT_FAT

func QT_FAT() bool

func QT_FELGO

func QT_FELGO() bool

func QT_FELGO_LIVE

func QT_FELGO_LIVE() bool

func QT_GEN_DART

func QT_GEN_DART() bool

func QT_GEN_GO_WRAPPER

func QT_GEN_GO_WRAPPER() bool

func QT_GEN_HAXE

func QT_GEN_HAXE() bool

func QT_GEN_OPENGL

func QT_GEN_OPENGL() bool

func QT_GEN_QUICK_EXTRAS

func QT_GEN_QUICK_EXTRAS() bool

func QT_GEN_SWIFT

func QT_GEN_SWIFT() bool

func QT_GEN_TSD

func QT_GEN_TSD() bool

func QT_HOMEBREW

func QT_HOMEBREW() bool

func QT_INSTALL_PREFIX

func QT_INSTALL_PREFIX(target string) (r string)

func QT_MACPORTS

func QT_MACPORTS() bool

func QT_MISC_DIR

func QT_MISC_DIR() string

func QT_MSVC

func QT_MSVC() bool

func QT_MSYS2

func QT_MSYS2() bool

func QT_MSYS2_ARCH

func QT_MSYS2_ARCH() string

func QT_MSYS2_DIR

func QT_MSYS2_DIR() string

func QT_MSYS2_STATIC

func QT_MSYS2_STATIC() bool

func QT_MXE

func QT_MXE() bool

func QT_MXE_ARCH

func QT_MXE_ARCH() string

func QT_MXE_BIN

func QT_MXE_BIN(tool string) string

func QT_MXE_DIR

func QT_MXE_DIR() string

func QT_MXE_STATIC

func QT_MXE_STATIC() bool

func QT_MXE_TRIPLET

func QT_MXE_TRIPLET() string

func QT_NIX

func QT_NIX() bool

func QT_NOT_CACHED

func QT_NOT_CACHED() bool

func QT_PKG_CONFIG

func QT_PKG_CONFIG() bool

func QT_QMAKE_DIR

func QT_QMAKE_DIR() string

func QT_RESOURCES_BIG

func QT_RESOURCES_BIG() bool

func QT_RPI

func QT_RPI() bool

func QT_SAILFISH

func QT_SAILFISH() bool

func QT_SAILFISH_VERSION

func QT_SAILFISH_VERSION() string

func QT_STATIC

func QT_STATIC() bool

func QT_STUB

func QT_STUB() bool

func QT_UBPORTS

func QT_UBPORTS() bool

func QT_UBPORTS_ARCH

func QT_UBPORTS_ARCH() string

func QT_UBPORTS_VERSION

func QT_UBPORTS_VERSION() string

func QT_VAGRANT

func QT_VAGRANT() bool

func QT_VERSION

func QT_VERSION() string

func QT_VERSION_MAJOR

func QT_VERSION_MAJOR() string

func QT_VERSION_NUM

func QT_VERSION_NUM() int

func QT_WEBKIT

func QT_WEBKIT() bool

TODO: detect webkit support automatically

func RPI1_SYSROOT_DIR

func RPI1_SYSROOT_DIR() string

func RPI2_SYSROOT_DIR

func RPI2_SYSROOT_DIR() string

func RPI3_SYSROOT_DIR

func RPI3_SYSROOT_DIR() string

func RPI_COMPILER

func RPI_COMPILER() string

func RPI_TOOLS_DIR

func RPI_TOOLS_DIR() string

func RemoveAll

func RemoveAll(name string) error

func RunCmd

func RunCmd(cmd *exec.Cmd, name string) string

TODO: export error

func RunCmdOptional

func RunCmdOptional(cmd *exec.Cmd, name string) string

TODO: export error

func RunCmdOptionalError

func RunCmdOptionalError(cmd *exec.Cmd, name string) (string, error)

func SAILFISH_DIR

func SAILFISH_DIR() string

func Save

func Save(name, data string) error

func SaveBytes

func SaveBytes(name string, data []byte) error

func SaveExec

func SaveExec(name, data string) error

func ToolPath

func ToolPath(tool, target string) string

TODO: use qmake props

func UseGOMOD

func UseGOMOD(path string) (r bool)

func VIRTUALBOX_DIR

func VIRTUALBOX_DIR() string

func WalkFilterBlacklist

func WalkFilterBlacklist(root string, f filepath.WalkFunc) filepath.WalkFunc

WalkFilterBlacklist filter out blacklisted file

func WalkFilterPrefix

func WalkFilterPrefix(f filepath.WalkFunc, prefixes ...string) filepath.WalkFunc

WalkFilterPrefix only process file that do not have specified prefix

func WalkOnlyDirectory

func WalkOnlyDirectory(f filepath.WalkFunc) filepath.WalkFunc

WalkFilterDirectory only allow directory

func WalkOnlyExtension

func WalkOnlyExtension(f filepath.WalkFunc, extensions ...string) filepath.WalkFunc

WalkOnlyExtension only process file (not directory) that their extension is specified, without the `.` such as `go` or `html`.

func WalkOnlyFile

func WalkOnlyFile(f filepath.WalkFunc) filepath.WalkFunc

WalkOnlyFile is opposite of WalkFilterDirectory, it only allow file

func XCODE_DIR

func XCODE_DIR() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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