MCPcopy Create free account
hub / github.com/celer-pkg/celer / Install

Method Install

buildsystems/build_gyp.go:83–102  ·  view source on GitHub ↗
(options []string)

Source from the content-addressed store, hash-verified

81}
82
83func (g gyp) Install(options []string) error {
84 buildTreesRootDir := filepath.Dir(g.PortConfig.SrcDir)
85 headerDir := filepath.Join(buildTreesRootDir, "dist", "public")
86 libDir := filepath.Join(buildTreesRootDir, "dist", "Debug", "lib")
87 binDir := filepath.Join(buildTreesRootDir, "dist", "Debug", "bin")
88
89 if err := fileio.CopyDir(headerDir, filepath.Join(g.PortConfig.PackageDir, "include")); err != nil {
90 return fmt.Errorf("failed to install include -> %w", err)
91 }
92
93 if err := fileio.CopyDir(libDir, filepath.Join(g.PortConfig.PackageDir, "lib")); err != nil {
94 return fmt.Errorf("failed to install lib -> %w", err)
95 }
96
97 if err := fileio.CopyDir(binDir, filepath.Join(g.PortConfig.PackageDir, "bin")); err != nil {
98 return fmt.Errorf("failed to install bin -> %w", err)
99 }
100
101 return nil
102}

Callers

nothing calls this directly

Calls 1

CopyDirFunction · 0.92

Tested by

no test coverage detected