Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Optionally specify the target dir in tools/gn #32065

Merged
merged 1 commit into from
Mar 16, 2022
Merged
Changes from all commits
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
8 changes: 7 additions & 1 deletion tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def get_out_dir(args):
if args.macos_enable_metal:
target_dir.append('metal')

if args.target_dir != '':
target_dir = [args.target_dir]

return os.path.join(args.out_dir, 'out', '_'.join(target_dir))

def to_command_line(gn_args):
Expand Down Expand Up @@ -494,7 +497,10 @@ def parse_args(args):

parser.add_argument('--coverage', default=False, action='store_true')

parser.add_argument('--out-dir', default='', type=str)
parser.add_argument('--out-dir', default='', type=str,
help='Root out directory. Target specific gn files will be generated in ${out-dir}/')
parser.add_argument('--target-dir', default='', type=str,
help='Use the specified name for target out directory. By default this tool determines one.')

parser.add_argument('--full-dart-sdk', default=False, action='store_true',
help='include trained dart2js and dartdevc snapshots. Enable only on steps that create an SDK')
Expand Down