| ... | @@ -1569,22 +1569,22 @@ pub fn addObjCopy(b: *Build, source: LazyPath, options: Step.ObjCopy.Options) *S | ... | @@ -1569,22 +1569,22 @@ pub fn addObjCopy(b: *Build, source: LazyPath, options: Step.ObjCopy.Options) *S |
| 1569 | } | 1569 | } |
| 1570 | | 1570 | |
| 1571 | ///`dest_rel_path` is relative to install prefix path | 1571 | ///`dest_rel_path` is relative to install prefix path |
| 1572 | pub fn addInstallFile(self: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { | 1572 | pub fn addInstallFile(b: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { |
| 1573 | return self.addInstallFileWithDir(source.dupe(self), .prefix, dest_rel_path); | 1573 | return b.addInstallFileWithDir(source, .prefix, dest_rel_path); |
| 1574 | } | 1574 | } |
| 1575 | | 1575 | |
| 1576 | ///`dest_rel_path` is relative to bin path | 1576 | ///`dest_rel_path` is relative to bin path |
| 1577 | pub fn addInstallBinFile(self: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { | 1577 | pub fn addInstallBinFile(b: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { |
| 1578 | return self.addInstallFileWithDir(source.dupe(self), .bin, dest_rel_path); | 1578 | return b.addInstallFileWithDir(source, .bin, dest_rel_path); |
| 1579 | } | 1579 | } |
| 1580 | | 1580 | |
| 1581 | ///`dest_rel_path` is relative to lib path | 1581 | ///`dest_rel_path` is relative to lib path |
| 1582 | pub fn addInstallLibFile(self: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { | 1582 | pub fn addInstallLibFile(b: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { |
| 1583 | return self.addInstallFileWithDir(source.dupe(self), .lib, dest_rel_path); | 1583 | return b.addInstallFileWithDir(source, .lib, dest_rel_path); |
| 1584 | } | 1584 | } |
| 1585 | | 1585 | |
| 1586 | pub fn addInstallHeaderFile(b: *Build, src_path: []const u8, dest_rel_path: []const u8) *Step.InstallFile { | 1586 | pub fn addInstallHeaderFile(b: *Build, source: LazyPath, dest_rel_path: []const u8) *Step.InstallFile { |
| 1587 | return b.addInstallFileWithDir(.{ .path = src_path }, .header, dest_rel_path); | 1587 | return b.addInstallFileWithDir(source, .header, dest_rel_path); |
| 1588 | } | 1588 | } |
| 1589 | | 1589 | |
| 1590 | pub fn addInstallFileWithDir( | 1590 | pub fn addInstallFileWithDir( |
| ... | @@ -1593,7 +1593,7 @@ pub fn addInstallFileWithDir( | ... | @@ -1593,7 +1593,7 @@ pub fn addInstallFileWithDir( |
| 1593 | install_dir: InstallDir, | 1593 | install_dir: InstallDir, |
| 1594 | dest_rel_path: []const u8, | 1594 | dest_rel_path: []const u8, |
| 1595 | ) *Step.InstallFile { | 1595 | ) *Step.InstallFile { |
| 1596 | return Step.InstallFile.create(self, source.dupe(self), install_dir, dest_rel_path); | 1596 | return Step.InstallFile.create(self, source, install_dir, dest_rel_path); |
| 1597 | } | 1597 | } |
| 1598 | | 1598 | |
| 1599 | pub fn addInstallDirectory(self: *Build, options: Step.InstallDir.Options) *Step.InstallDir { | 1599 | pub fn addInstallDirectory(self: *Build, options: Step.InstallDir.Options) *Step.InstallDir { |