-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build configurations to latest
- Loading branch information
Showing
109 changed files
with
2,228 additions
and
1,717 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
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,4 @@ | ||
mark@chromium.org | ||
rohitrao@chromium.org | ||
rsesek@chromium.org | ||
sdefresne@chromium.org |
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,12 @@ | ||
# About | ||
|
||
`//build/apple` contains: | ||
* GN templates and configurations shared by Apple platforms | ||
* Python build scripts shared by Apple platforms | ||
|
||
This directory should only contain templates, configurations and scripts | ||
that are used exclusively on Apple platforms (currently iOS and macOS). | ||
They must also be independent of the specific platform. | ||
|
||
If a template, configuration or script is limited to only iOS or macOS, | ||
then they should instead be located in `//build/ios` or `//build/mac`. |
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,86 @@ | ||
# Copyright 2016 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//build/util/lastchange.gni") | ||
|
||
# Template to run the tweak_info_plist.py script on a plist. | ||
# | ||
# Arguments: | ||
# | ||
# info_plist: | ||
# (optional), string, the plist to tweak. | ||
# | ||
# info_plists: | ||
# (optional), list of string, the plist files to merge and tweak. | ||
# | ||
# args: | ||
# (optional), list of string, the arguments to pass to the | ||
# tweak_info_plist.py script. | ||
# | ||
# Callers should use get_target_outputs() to get the output name. One of | ||
# info_plist or info_plists must be specified. | ||
template("tweak_info_plist") { | ||
_output_name = "$target_gen_dir/${target_name}_tweaked.plist" | ||
|
||
if (defined(invoker.info_plists)) { | ||
assert(!defined(invoker.info_plist), | ||
"Cannot have both info_plist and info_plists for $target_name") | ||
|
||
_source_name = "$target_gen_dir/${target_name}_merged.plist" | ||
_deps = [ ":" + target_name + "_merge_plist" ] | ||
|
||
action(target_name + "_merge_plist") { | ||
forward_variables_from(invoker, | ||
[ | ||
"testonly", | ||
"deps", | ||
]) | ||
script = "//build/config/mac/plist_util.py" | ||
sources = invoker.info_plists | ||
outputs = [ _source_name ] | ||
args = [ | ||
"merge", | ||
"-f=xml1", | ||
"-o=" + rebase_path(_source_name, root_build_dir), | ||
] + rebase_path(invoker.info_plists, root_build_dir) | ||
} | ||
} else { | ||
assert(defined(invoker.info_plist), | ||
"The info_plist must be specified in $target_name") | ||
|
||
_source_name = invoker.info_plist | ||
_deps = [] | ||
if (defined(invoker.deps)) { | ||
_deps += invoker.deps | ||
} | ||
} | ||
|
||
action(target_name) { | ||
forward_variables_from(invoker, | ||
[ | ||
"args", | ||
"testonly", | ||
]) | ||
script = "//build/apple/tweak_info_plist.py" | ||
inputs = [ | ||
script, | ||
"//build/util/version.py", | ||
lastchange_file, | ||
"//chrome/VERSION", | ||
] | ||
sources = [ _source_name ] | ||
outputs = [ _output_name ] | ||
if (!defined(args)) { | ||
args = [] | ||
} | ||
args += [ | ||
"--plist", | ||
rebase_path(_source_name, root_build_dir), | ||
"--output", | ||
rebase_path(_output_name, root_build_dir), | ||
"--platform=$current_os", | ||
] | ||
deps = _deps | ||
} | ||
} |
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
Oops, something went wrong.