Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
introduce again ContainerAddPrototypes
  • Loading branch information
umbynos committed Jan 20, 2020
commit a8f17c8cf15cdb576215753eece0f6ab85023b8d
14 changes: 12 additions & 2 deletions legacy/builder/create_cmake_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ func (s *ExportProjectCMake) Run(ctx *types.Context) error {
fmt.Println(err)
}

// Use old ctags method to generate export file
commands := []types.Command{
//&ContainerMergeCopySketchFiles{},
&ContainerAddPrototypes{},
&FilterSketchSource{Source: &ctx.Source, RemoveLineMarkers: true},
}

for _, command := range commands {
command.Run(ctx)
}

err = utils.CopyDir(ctx.SketchBuildPath.String(), cmakeFolder.Join("sketch").String(), extensions)
if err != nil {
fmt.Println(err)
Expand Down Expand Up @@ -156,7 +167,7 @@ func (s *ExportProjectCMake) Run(ctx *types.Context) error {
fmt.Println(err)
}
}

// Extract CFLAGS, CPPFLAGS and LDFLAGS
var defines []string
var linkerflags []string
Expand Down Expand Up @@ -279,4 +290,3 @@ func findUniqueFoldersRelative(slice []string, base string) string {
}
return strings.Join(out, " ")
}