Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted typo fixes. #53

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion gyp/MakefileWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def WriteMacBundleResources(self, resources, bundle_deps):
bundle_resources = gyp.xcode_emulation.GetMacBundleResources(product_dir, self.xcode_settings, sources)
for output, res in bundle_resources:
_, ext = os.path.splitext(output)
# TODO(refack): actualy figure this out for `copy-bundle-resource`
# TODO(refack): actually figure this out for `copy-bundle-resource`
# is_binary = xcode_emulation.IsBinaryOutputFormat(output)
if ext != '.xcassets':
# Make does not supports '.xcassets' emulation.
Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class CMakeNamer(object):
"""Converts Gyp target names into CMake target names.

CMake requires that target names be globally unique. One way to ensure
this is to fully qualify the names of the targets. Unfortunatly, this
this is to fully qualify the names of the targets. Unfortunately, this
ends up with all targets looking like "chrome_chrome_gyp_chrome" instead
of just "chrome". If this generator were only interested in building, it
would be possible to fully qualify all target names, then create
Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/eclipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def GetAllDefines(target_list, target_dicts, _, config_name, params, compiler_pa
"""Calculate the defines for a project.

Returns:
A dict that includes explict defines declared in gyp files along with all of
A dict that includes explicit defines declared in gyp files along with all of
the default defines that the compiler uses.
"""

Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# all are sourced by the top-level Makefile. This means that all
# variables in .mk-files clobber one another. Be careful to use :=
# where appropriate for immediate evaluation, and similarly to watch
# that you're not relying on a variable value to last beween different
# that you're not relying on a variable value to last between different
# .mk files.
#

Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2760,7 +2760,7 @@ def _FinalizeMSBuildSettings(spec, configuration):
_ToolAppend(msbuild_settings, 'ResourceCompile',
'AdditionalIncludeDirectories', resource_include_dirs)
# Add in libraries, note that even for empty libraries, we want this
# set, to prevent inheriting default libraries from the enviroment.
# set, to prevent inheriting default libraries from the environment.
_ToolSetOrAppend(msbuild_settings, 'Link', 'AdditionalDependencies',
libraries)
_ToolAppend(msbuild_settings, 'Link', 'AdditionalLibraryDirectories',
Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/ninja.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name
# - The priority from low to high is gcc/g++, the 'make_global_settings' in
# gyp, the environment variable.
# - If there is no 'make_global_settings' for CC.host/CXX.host or
# 'CC_host'/'CXX_host' enviroment variable, cc_host/cxx_host should be set
# 'CC_host'/'CXX_host' environment variable, cc_host/cxx_host should be set
# to cc/cxx.
if flavor == 'win':
ar = 'lib.exe'
Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/xcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
actions.append(action)

if len(concrete_outputs_all) > 0:
# TODO(mark): There's a possibilty for collision here. Consider
# TODO(mark): There's a possibility for collision here. Consider
# target "t" rule "A_r" and target "t_A" rule "r".
makefile_name = '%s.make' % re.sub(
'[^a-zA-Z0-9_]', '_' , '%s_%s' % (target_name, rule['rule_name']))
Expand Down
2 changes: 1 addition & 1 deletion gyp/generator/xcodeproj_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class XCObject(object):
an empty string ("", in the case of property_type
str) or list ([], in the case of is_list True) from
being set for the property.
default: Optional. If is_requried is True, default may be set
default: Optional. If is_required is True, default may be set
to provide a default value for objects that do not supply
their own value. If is_required is True and default
is not provided, users of the class must supply their own
Expand Down
6 changes: 3 additions & 3 deletions gyp/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def EvalCondition(condition, conditions_key, phase, variables, build_file):
def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, build_file):
"""Returns true_dict if cond_expr evaluates to true, and false_dict
otherwise."""
# Do expansions on the condition itself. Since the conditon can naturally
# Do expansions on the condition itself. Since the condition can naturally
# contain variable references without needing to resort to GYP expansion
# syntax, this is of dubious value for variables, but someone might want to
# use a command expansion directly inside a condition.
Expand Down Expand Up @@ -960,7 +960,7 @@ def LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key):
continue
if the_dict_key == 'variables' and variable_name in the_dict:
# If the variable is set without a % in the_dict, and the_dict is a
# variables dict (making |variables| a varaibles sub-dict of a
# variables dict (making |variables| a variables sub-dict of a
# variables dict), use the_dict's definition.
value = the_dict[variable_name]
else:
Expand Down Expand Up @@ -1602,7 +1602,7 @@ def VerifyNoGYPFileCircularDependencies(targets):
continue
dependency_node = dependency_nodes.get(dependency_build_file)
if not dependency_node:
raise GypError("Dependancy '%s' not found" % dependency_build_file)
raise GypError("Dependency '%s' not found" % dependency_build_file)
if dependency_node not in build_file_node.dependencies:
build_file_node.dependencies.append(dependency_node)
dependency_node.dependents.append(build_file_node)
Expand Down
2 changes: 1 addition & 1 deletion gyp/msvs_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def GetCompilerPdbName(self, config, expand_special):
return pdbname

def GetMapFileName(self, config, expand_special):
"""Gets the explicitly overriden map file name for a target or returns None
"""Gets the explicitly overridden map file name for a target or returns None
if it's not set."""
config = self._TargetConfig(config)
map_file = self._Setting(('VCLinkerTool', 'MapFileName'), config)
Expand Down
16 changes: 8 additions & 8 deletions gyp/xcode_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def GetLdflags(self, configname, product_dir, gyp_to_build_path, arch=None):
product_dir: The directory where products such static and dynamic
libraries are placed. This is added to the library search path.
gyp_to_build_path: A function that converts paths relative to the
current gyp file to paths relative to the build direcotry.
current gyp file to paths relative to the build directory.
"""
self.configname = configname
ldflags = []
Expand Down Expand Up @@ -994,7 +994,7 @@ def GetPerTargetSetting(self, setting, default=None):

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

Expand Down Expand Up @@ -1029,7 +1029,7 @@ def _GetStripPostbuilds(self, configname, output_binary, quiet):

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

Expand Down Expand Up @@ -1167,7 +1167,7 @@ def _AdjustLibrary(self, library, config_name=None):
# "/usr/lib" libraries, is do "-L/usr/lib -lname" which is dependent on the
# library order and cause collision when building Chrome.
#
# Instead substitude ".tbd" to ".dylib" in the generated project when the
# Instead substitute ".tbd" to ".dylib" in the generated project when the
# following conditions are both true:
# - library is referenced in the gyp file as "$(SDKROOT)/**/*.dylib",
# - the ".dylib" file does not exists but a ".tbd" file do.
Expand Down Expand Up @@ -1461,7 +1461,7 @@ def GetStdout(cmdlist, with_stderr=False):
def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
"""Merges the global xcode_settings dictionary into each configuration of the
target represented by spec. For keys that are both in the global and the local
xcode_settings dict, the local key gets precendence.
xcode_settings dict, the local key gets precedence.
"""
# The xcode generator special-cases global xcode_settings and does something
# that amounts to merging in the global xcode_settings into each local
Expand Down Expand Up @@ -1507,7 +1507,7 @@ def GetMacBundleResources(product_dir, xcode_settings, resources):
output = dest

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

Expand Down Expand Up @@ -1544,14 +1544,14 @@ def GetMacInfoPlist(product_dir, xcode_settings, gyp_path_to_build_path):
Args:
product_dir: Path to the directory containing the output bundle, relative to the build directory.
xcode_settings: The XcodeSettings of the current target.
gyp_path_to_build_path: A function that converts paths relative to the current gyp file to paths relative to the build direcotry.
gyp_path_to_build_path: A function that converts paths relative to the current gyp file to paths relative to the build directory.
"""
info_plist = xcode_settings.GetPerTargetSetting('INFOPLIST_FILE')
if not info_plist:
return None, None, [], {}

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

Expand Down
2 changes: 1 addition & 1 deletion test/actions/multiple/gyptest-all.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
test.must_contain('relocate/src/output3.txt', 'hello there')
test.must_contain('relocate/src/output4.txt', 'hello there')

# Test that process_outputs_as_sources works in conjuction with merged
# Test that process_outputs_as_sources works in conjunction with merged
# actions.
test.run_built_executable(
'multiple_action_source_filter',
Expand Down
2 changes: 1 addition & 1 deletion test/win/gyptest-link-nxcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def GetHeaders(exe):
if 'NX compatible' not in GetHeaders('test_nxcompat_default.exe'):
test.fail_test()

# Explicitly off, should not be marked NX compatiable.
# Explicitly off, should not be marked NX compatible.
if 'NX compatible' in GetHeaders('test_nxcompat_no.exe'):
test.fail_test()

Expand Down
2 changes: 1 addition & 1 deletion test/win/gyptest-link-opt-icf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
if output.count('similar_function') != 6: # 3 definitions, 3 calls.
test.fail_test()

# Explicitly off, all functions preserved seperately.
# Explicitly off, all functions preserved separately.
output = test.run_dumpbin(
'/disasm', test.built_file_path('test_opticf_no.exe', chdir=CHDIR))
if output.count('similar_function') != 6: # 3 definitions, 3 calls.
Expand Down
2 changes: 1 addition & 1 deletion test/win/gyptest-link-tsaware.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def GetHeaders(exe):
return test.run_dumpbin('/headers', test.built_file_path(exe, chdir=CHDIR))

# Explicitly off, should not be marked NX compatiable.
# Explicitly off, should not be marked NX compatible.
if 'Terminal Server Aware' in GetHeaders('test_tsaware_no.exe'):
test.fail_test()

Expand Down
2 changes: 1 addition & 1 deletion test/win/precompiled/hello.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */

// Note the abscence of a stdio.h include. This will be inserted because of the
// Note the absence of a stdio.h include. This will be inserted because of the
// precompiled header.

extern int hello2();
Expand Down
2 changes: 1 addition & 1 deletion tools/pretty_gyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Regex to remove quoted strings when we're counting braces.
# It takes into account quoted quotes, and makes sure that the quotes match.
# NOTE: It does not handle quotes that span more than one line, or
# cases where an escaped quote is preceeded by an escaped backslash.
# cases where an escaped quote is preceded by an escaped backslash.
QUOTE_RE_STR = r'(?P<q>[\'"])(.*?)(?<![^\\][\\])(?P=q)'
QUOTE_RE = re.compile(QUOTE_RE_STR)

Expand Down
2 changes: 1 addition & 1 deletion tools/pretty_vcproj.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def MergeAttributes(node1, node2):
if value1 != value2:
node1.setAttribute(name, ';'.join([value1, value2]))
else:
# The attribute does nto exist in the main node. We append this one.
# The attribute does not exist in the main node. We append this one.
node1.setAttribute(name, value2)

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