Added compilation environment array to BPM config
This commit is contained in:
parent
e8d5f0a565
commit
8b6ef5fa63
@ -1,4 +1,5 @@
|
|||||||
ignore_packages: []
|
ignore_packages: []
|
||||||
|
compilation_env: []
|
||||||
repositories:
|
repositories:
|
||||||
- name: example-repository
|
- name: example-repository
|
||||||
source: https://my-repo.xyz/
|
source: https://my-repo.xyz/
|
||||||
|
@ -89,6 +89,7 @@ func CompileSourcePackage(archiveFilename, outputFilename string) (err error) {
|
|||||||
env = append(env, "BPM_PKG_VERSION="+bpmpkg.PkgInfo.Version)
|
env = append(env, "BPM_PKG_VERSION="+bpmpkg.PkgInfo.Version)
|
||||||
env = append(env, "BPM_PKG_REVISION="+strconv.Itoa(bpmpkg.PkgInfo.Revision))
|
env = append(env, "BPM_PKG_REVISION="+strconv.Itoa(bpmpkg.PkgInfo.Revision))
|
||||||
env = append(env, "BPM_PKG_ARCH="+GetArch())
|
env = append(env, "BPM_PKG_ARCH="+GetArch())
|
||||||
|
env = append(env, BPMConfig.CompilationEnvironment...)
|
||||||
|
|
||||||
// Execute prepare and build functions in source.sh script
|
// Execute prepare and build functions in source.sh script
|
||||||
cmd := exec.Command("bash", "-c",
|
cmd := exec.Command("bash", "-c",
|
||||||
|
@ -6,8 +6,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type BPMConfigStruct struct {
|
type BPMConfigStruct struct {
|
||||||
IgnorePackages []string `yaml:"ignore_packages"`
|
IgnorePackages []string `yaml:"ignore_packages"`
|
||||||
Repositories []*Repository `yaml:"repositories"`
|
CompilationEnvironment []string `yaml:"compilation_env"`
|
||||||
|
Repositories []*Repository `yaml:"repositories"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var BPMConfig BPMConfigStruct
|
var BPMConfig BPMConfigStruct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user