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
- func ExpandPlaceholders(s, ps, ss string) string
- func GetBinaryLibFilePath(buildDir, name, variant, version string) string
- func GetBuildCtxFilePath(buildDir string) string
- func GetBuildDir(projectDir string) string
- func GetBuildLogFilePath(buildDir string) string
- func GetBuildLogLocalFilePath(buildDir string) string
- func GetBuildStatFilePath(buildDir string) string
- func GetConfSchemaFilePath(buildDir string) string
- func GetDepsInitCFilePath(buildDir string) string
- func GetDepsManifestFilePath(buildDir string) string
- func GetFilesystemStagingDir(buildDir string) string
- func GetFirmwareDir(buildDir string) string
- func GetFirmwareZipFilePath(buildDir string) string
- func GetGeneratedFilesDir(buildDir string) string
- func GetLibArchiveFilePath(buildDir string) string
- func GetMakeVarsFilePath(buildDir string) string
- func GetManifestArchFilePath(projectDir, arch string) string
- func GetManifestFilePath(projectDir string) string
- func GetMosFinalFilePath(buildDir string) string
- func GetObjectDir(buildDir string) string
- func GetOrigLibArchiveFilePath(buildDir, platform string) string
- func GetPlatformMakefilePath(mosDir, platform string) string
- func GetSdkVersionFile(mosDir, platform string) string
- func GetVersionSuffix(version string) string
- func GetVersionSuffixTpl(version, template string) string
- func ParseParamValues(args []string) (map[string]string, error)
- func ParseParamValuesTyped(args []string) (map[string]interface{}, error)
- type BuildStat
Constants ¶
const ( // Form names used for remote builds FormBuildCtxName = "build_ctx" FormBuildStatName = "build_stat" FormCleanName = "clean" FormPreferPrebuildLibsName = "prefer_prebuilt_libs" FormSourcesZipName = "file" FormBuildParamsName = "build_params" )
const (
BuildTargetDefault = "all"
)
Variables ¶
This section is empty.
Functions ¶
func ExpandPlaceholders ¶
ExpandPlaceholders expands placeholders in s with characters from ss, starting from the right. Placeholders are specified by ps.
func GetBinaryLibFilePath ¶
func GetBuildCtxFilePath ¶
func GetBuildDir ¶
func GetBuildLogFilePath ¶
func GetBuildStatFilePath ¶
func GetConfSchemaFilePath ¶
func GetDepsInitCFilePath ¶
func GetDepsManifestFilePath ¶
func GetFilesystemStagingDir ¶
func GetFirmwareDir ¶
func GetFirmwareZipFilePath ¶
func GetGeneratedFilesDir ¶
func GetLibArchiveFilePath ¶
func GetMakeVarsFilePath ¶
func GetManifestArchFilePath ¶
func GetManifestFilePath ¶
func GetMosFinalFilePath ¶
func GetObjectDir ¶
func GetPlatformMakefilePath ¶
func GetSdkVersionFile ¶
func GetVersionSuffix ¶
GetVersionSuffix returns suffix like "-1.5" or "-latest". See GetVersionSuffixTpl.
func GetVersionSuffixTpl ¶
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.