moscommon

package
v0.0.0-...-b44964e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// Form names used for remote builds
	FormBuildCtxName           = "build_ctx"
	FormBuildStatName          = "build_stat"
	FormCleanName              = "clean"
	FormPreferPrebuildLibsName = "prefer_prebuilt_libs"
	FormSourcesZipName         = "file"
	FormBuildParamsName        = "build_params"
)
View Source
const (
	BuildTargetDefault = "all"
)

Variables

This section is empty.

Functions

func ExpandPlaceholders

func ExpandPlaceholders(s, ps, ss string) string

ExpandPlaceholders expands placeholders in s with characters from ss, starting from the right. Placeholders are specified by ps.

func GetBinaryLibFilePath

func GetBinaryLibFilePath(buildDir, name, variant, version string) string

func GetBuildCtxFilePath

func GetBuildCtxFilePath(buildDir string) string

func GetBuildDir

func GetBuildDir(projectDir string) string

func GetBuildLogFilePath

func GetBuildLogFilePath(buildDir string) string

func GetBuildLogLocalFilePath

func GetBuildLogLocalFilePath(buildDir string) string

func GetBuildStatFilePath

func GetBuildStatFilePath(buildDir string) string

func GetConfSchemaFilePath

func GetConfSchemaFilePath(buildDir string) string

func GetDepsInitCFilePath

func GetDepsInitCFilePath(buildDir string) string

func GetDepsManifestFilePath

func GetDepsManifestFilePath(buildDir string) string

func GetFilesystemStagingDir

func GetFilesystemStagingDir(buildDir string) string

func GetFirmwareDir

func GetFirmwareDir(buildDir string) string

func GetFirmwareZipFilePath

func GetFirmwareZipFilePath(buildDir string) string

func GetGeneratedFilesDir

func GetGeneratedFilesDir(buildDir string) string

func GetLibArchiveFilePath

func GetLibArchiveFilePath(buildDir string) string

func GetMakeVarsFilePath

func GetMakeVarsFilePath(buildDir string) string

func GetManifestArchFilePath

func GetManifestArchFilePath(projectDir, arch string) string

func GetManifestFilePath

func GetManifestFilePath(projectDir string) string

func GetMosFinalFilePath

func GetMosFinalFilePath(buildDir string) string

func GetObjectDir

func GetObjectDir(buildDir string) string

func GetOrigLibArchiveFilePath

func GetOrigLibArchiveFilePath(buildDir, platform string) string

func GetPlatformMakefilePath

func GetPlatformMakefilePath(mosDir, platform string) string

func GetSdkVersionFile

func GetSdkVersionFile(mosDir, platform string) string

func GetVersionSuffix

func GetVersionSuffix(version string) string

GetVersionSuffix returns suffix like "-1.5" or "-latest". See GetVersionSuffixTpl.

func GetVersionSuffixTpl

func GetVersionSuffixTpl(version, template string) string

GetVersionSuffixTpl returns given template with "${version}" placeholder replaced with the actual given version. If given version is "master" or an empty string, "latest" is used instead.

func ParseParamValues

func ParseParamValues(args []string) (map[string]string, error)

func ParseParamValuesTyped

func ParseParamValuesTyped(args []string) (map[string]interface{}, error)

Types

type BuildStat

type BuildStat struct {
	ArchOld     string `json:"arch"`
	Platform    string `json:"platform"`
	AppName     string `json:"app_name"`
	BuildTimeMS int    `json:"build_time_ms"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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