Skip to content

Commit 06019ba

Browse files
XhmikosRrvagg
authored andcommitted
gyp: assorted typo fixes
PR-URL: #1853 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 3f4972c commit 06019ba

13 files changed

+22
-22
lines changed

gyp/pylib/gyp/generator/android.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def WriteSources(self, spec, configs, extra_sources):
550550
# to work properly. If the file has the wrong C++ extension, then we add
551551
# a rule to copy that to intermediates and use the new version.
552552
final_generated_sources = []
553-
# If a source file gets copied, we still need to add the orginal source
553+
# If a source file gets copied, we still need to add the original source
554554
# directory as header search path, for GCC searches headers in the
555555
# directory that contains the source file by default.
556556
origin_src_dirs = []

gyp/pylib/gyp/generator/cmake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class CMakeNamer(object):
574574
"""Converts Gyp target names into CMake target names.
575575
576576
CMake requires that target names be globally unique. One way to ensure
577-
this is to fully qualify the names of the targets. Unfortunatly, this
577+
this is to fully qualify the names of the targets. Unfortunately, this
578578
ends up with all targets looking like "chrome_chrome_gyp_chrome" instead
579579
of just "chrome". If this generator were only interested in building, it
580580
would be possible to fully qualify all target names, then create

gyp/pylib/gyp/generator/eclipse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def GetAllDefines(target_list, target_dicts, data, config_name, params,
195195
"""Calculate the defines for a project.
196196
197197
Returns:
198-
A dict that includes explict defines declared in gyp files along with all of
198+
A dict that includes explicit defines declared in gyp files along with all of
199199
the default defines that the compiler uses.
200200
"""
201201

gyp/pylib/gyp/generator/make.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# all are sourced by the top-level Makefile. This means that all
1313
# variables in .mk-files clobber one another. Be careful to use :=
1414
# where appropriate for immediate evaluation, and similarly to watch
15-
# that you're not relying on a variable value to last beween different
15+
# that you're not relying on a variable value to last between different
1616
# .mk files.
1717
#
1818
# TODOs:

gyp/pylib/gyp/generator/msvs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@ def _FinalizeMSBuildSettings(spec, configuration):
30693069
_ToolAppend(msbuild_settings, 'ResourceCompile',
30703070
'AdditionalIncludeDirectories', resource_include_dirs)
30713071
# Add in libraries, note that even for empty libraries, we want this
3072-
# set, to prevent inheriting default libraries from the enviroment.
3072+
# set, to prevent inheriting default libraries from the environment.
30733073
_ToolSetOrAppend(msbuild_settings, 'Link', 'AdditionalDependencies',
30743074
libraries)
30753075
_ToolAppend(msbuild_settings, 'Link', 'AdditionalLibraryDirectories',

gyp/pylib/gyp/generator/ninja.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params,
18211821
# - The priority from low to high is gcc/g++, the 'make_global_settings' in
18221822
# gyp, the environment variable.
18231823
# - If there is no 'make_global_settings' for CC.host/CXX.host or
1824-
# 'CC_host'/'CXX_host' enviroment variable, cc_host/cxx_host should be set
1824+
# 'CC_host'/'CXX_host' environment variable, cc_host/cxx_host should be set
18251825
# to cc/cxx.
18261826
if flavor == 'win':
18271827
ar = 'lib.exe'

gyp/pylib/gyp/generator/xcode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
998998
actions.append(action)
999999

10001000
if len(concrete_outputs_all) > 0:
1001-
# TODO(mark): There's a possibilty for collision here. Consider
1001+
# TODO(mark): There's a possibility for collision here. Consider
10021002
# target "t" rule "A_r" and target "t_A" rule "r".
10031003
makefile_name = '%s.make' % re.sub(
10041004
'[^a-zA-Z0-9_]', '_' , '%s_%s' % (target_name, rule['rule_name']))

gyp/pylib/gyp/input.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ def EvalSingleCondition(
10731073
cond_expr, true_dict, false_dict, phase, variables, build_file):
10741074
"""Returns true_dict if cond_expr evaluates to true, and false_dict
10751075
otherwise."""
1076-
# Do expansions on the condition itself. Since the conditon can naturally
1076+
# Do expansions on the condition itself. Since the condition can naturally
10771077
# contain variable references without needing to resort to GYP expansion
10781078
# syntax, this is of dubious value for variables, but someone might want to
10791079
# use a command expansion directly inside a condition.
@@ -1178,7 +1178,7 @@ def LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key):
11781178
continue
11791179
if the_dict_key == 'variables' and variable_name in the_dict:
11801180
# If the variable is set without a % in the_dict, and the_dict is a
1181-
# variables dict (making |variables| a varaibles sub-dict of a
1181+
# variables dict (making |variables| a variables sub-dict of a
11821182
# variables dict), use the_dict's definition.
11831183
value = the_dict[variable_name]
11841184
else:
@@ -1864,7 +1864,7 @@ def VerifyNoGYPFileCircularDependencies(targets):
18641864
continue
18651865
dependency_node = dependency_nodes.get(dependency_build_file)
18661866
if not dependency_node:
1867-
raise GypError("Dependancy '%s' not found" % dependency_build_file)
1867+
raise GypError("Dependency '%s' not found" % dependency_build_file)
18681868
if dependency_node not in build_file_node.dependencies:
18691869
build_file_node.dependencies.append(dependency_node)
18701870
dependency_node.dependents.append(build_file_node)

gyp/pylib/gyp/msvs_emulation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def GetCompilerPdbName(self, config, expand_special):
375375
return pdbname
376376

377377
def GetMapFileName(self, config, expand_special):
378-
"""Gets the explicitly overriden map file name for a target or returns None
378+
"""Gets the explicitly overridden map file name for a target or returns None
379379
if it's not set."""
380380
config = self._TargetConfig(config)
381381
map_file = self._Setting(('VCLinkerTool', 'MapFileName'), config)

gyp/pylib/gyp/xcode_emulation.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def GetLdflags(self, configname, product_dir, gyp_to_build_path, arch=None):
778778
product_dir: The directory where products such static and dynamic
779779
libraries are placed. This is added to the library search path.
780780
gyp_to_build_path: A function that converts paths relative to the
781-
current gyp file to paths relative to the build direcotry.
781+
current gyp file to paths relative to the build directory.
782782
"""
783783
self.configname = configname
784784
ldflags = []
@@ -923,7 +923,7 @@ def GetPerTargetSetting(self, setting, default=None):
923923

924924
def _GetStripPostbuilds(self, configname, output_binary, quiet):
925925
"""Returns a list of shell commands that contain the shell commands
926-
neccessary to strip this target's binary. These should be run as postbuilds
926+
necessary to strip this target's binary. These should be run as postbuilds
927927
before the actual postbuilds run."""
928928
self.configname = configname
929929

@@ -957,7 +957,7 @@ def _GetStripPostbuilds(self, configname, output_binary, quiet):
957957

958958
def _GetDebugInfoPostbuilds(self, configname, output, output_binary, quiet):
959959
"""Returns a list of shell commands that contain the shell commands
960-
neccessary to massage this target's debug information. These should be run
960+
necessary to massage this target's debug information. These should be run
961961
as postbuilds before the actual postbuilds run."""
962962
self.configname = configname
963963

@@ -1052,7 +1052,7 @@ def _AdjustLibrary(self, library, config_name=None):
10521052
# "/usr/lib" libraries, is do "-L/usr/lib -lname" which is dependent on the
10531053
# library order and cause collision when building Chrome.
10541054
#
1055-
# Instead substitude ".tbd" to ".dylib" in the generated project when the
1055+
# Instead substitute ".tbd" to ".dylib" in the generated project when the
10561056
# following conditions are both true:
10571057
# - library is referenced in the gyp file as "$(SDKROOT)/**/*.dylib",
10581058
# - the ".dylib" file does not exists but a ".tbd" file do.
@@ -1341,7 +1341,7 @@ def GetStdout(cmdlist):
13411341
def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
13421342
"""Merges the global xcode_settings dictionary into each configuration of the
13431343
target represented by spec. For keys that are both in the global and the local
1344-
xcode_settings dict, the local key gets precendence.
1344+
xcode_settings dict, the local key gets precedence.
13451345
"""
13461346
# The xcode generator special-cases global xcode_settings and does something
13471347
# that amounts to merging in the global xcode_settings into each local
@@ -1384,7 +1384,7 @@ def GetMacBundleResources(product_dir, xcode_settings, resources):
13841384
output = dest
13851385

13861386
# The make generator doesn't support it, so forbid it everywhere
1387-
# to keep the generators more interchangable.
1387+
# to keep the generators more interchangeable.
13881388
assert ' ' not in res, (
13891389
"Spaces in resource filenames not supported (%s)" % res)
13901390

@@ -1426,14 +1426,14 @@ def GetMacInfoPlist(product_dir, xcode_settings, gyp_path_to_build_path):
14261426
relative to the build directory.
14271427
xcode_settings: The XcodeSettings of the current target.
14281428
gyp_to_build_path: A function that converts paths relative to the
1429-
current gyp file to paths relative to the build direcotry.
1429+
current gyp file to paths relative to the build directory.
14301430
"""
14311431
info_plist = xcode_settings.GetPerTargetSetting('INFOPLIST_FILE')
14321432
if not info_plist:
14331433
return None, None, [], {}
14341434

14351435
# The make generator doesn't support it, so forbid it everywhere
1436-
# to keep the generators more interchangable.
1436+
# to keep the generators more interchangeable.
14371437
assert ' ' not in info_plist, (
14381438
"Spaces in Info.plist filenames not supported (%s)" % info_plist)
14391439

gyp/pylib/gyp/xcodeproj_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class XCObject(object):
220220
an empty string ("", in the case of property_type
221221
str) or list ([], in the case of is_list True) from
222222
being set for the property.
223-
default: Optional. If is_requried is True, default may be set
223+
default: Optional. If is_required is True, default may be set
224224
to provide a default value for objects that do not supply
225225
their own value. If is_required is True and default
226226
is not provided, users of the class must supply their own

gyp/tools/pretty_gyp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Regex to remove quoted strings when we're counting braces.
1919
# It takes into account quoted quotes, and makes sure that the quotes match.
2020
# NOTE: It does not handle quotes that span more than one line, or
21-
# cases where an escaped quote is preceeded by an escaped backslash.
21+
# cases where an escaped quote is preceded by an escaped backslash.
2222
QUOTE_RE_STR = r'(?P<q>[\'"])(.*?)(?<![^\\][\\])(?P=q)'
2323
QUOTE_RE = re.compile(QUOTE_RE_STR)
2424

gyp/tools/pretty_vcproj.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def MergeAttributes(node1, node2):
265265
if value1 != value2:
266266
node1.setAttribute(name, ';'.join([value1, value2]))
267267
else:
268-
# The attribute does nto exist in the main node. We append this one.
268+
# The attribute does not exist in the main node. We append this one.
269269
node1.setAttribute(name, value2)
270270

271271
# If the attribute was a property sheet attributes, we remove it, since

0 commit comments

Comments
 (0)