This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ninja to copy libraries to dist dir
This allows libraries to be copied incrementally as they are updated, speeding up compile/test cycles when developing libchromiumcontent with electron.
- Loading branch information
Showing
2 changed files
with
153 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import argparse | ||
import shutil | ||
|
||
|
||
def parse_args(): | ||
parser = argparse.ArgumentParser(description='Copy file') | ||
parser.add_argument('source') | ||
parser.add_argument('destination') | ||
return parser.parse_args() | ||
|
||
|
||
def main(): | ||
args = parse_args() | ||
shutil.copy2(args.source, args.destination) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |