| |
@@ -259,46 +259,17 @@
|
| |
|
| |
for _, info := range p.packageInfos {
|
| |
resources = append(resources, info.Dir)
|
| |
- for _, file := range info.GoFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.CgoFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.CFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.CXXFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.MFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.HFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.FFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.SFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.SwigFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.SwigCXXFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.SysoFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.TestGoFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
- for _, file := range info.XTestGoFiles {
|
| |
- resources = append(resources, path.Join(info.Dir, file))
|
| |
- }
|
| |
|
| |
+ allFileLists := [][]string{
|
| |
+ info.GoFiles, info.IgnoredGoFiles, info.CgoFiles,
|
| |
+ info.CFiles, info.CXXFiles, info.MFiles, info.HFiles, info.FFiles,
|
| |
+ info.SFiles, info.SwigFiles, info.SwigCXXFiles, info.SysoFiles,
|
| |
+ info.TestGoFiles, info.XTestGoFiles}
|
| |
+ for _, fileList := range allFileLists {
|
| |
+ for _, file := range fileList {
|
| |
+ resources = append(resources, path.Join(info.Dir, file))
|
| |
+ }
|
| |
+ }
|
| |
}
|
| |
|
| |
if p.otherResources.ProtoFiles != nil {
|
| |
Should help make packages arch-independent. Still need to test this a bit more.
Fixes #2.