Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate authored and bnoordhuis committed Nov 6, 2015
1 parent a2ed0df commit 8ef9034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gyp/pylib/gyp/generator/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2798,6 +2798,9 @@ def _GetMSBuildAttributes(spec, config, build_file):
product_name = spec.get('product_name', '$(ProjectName)')
target_name = prefix + product_name
msbuild_attributes['TargetName'] = target_name
if 'TargetExt' not in msbuild_attributes and 'product_extension' in spec:
ext = spec.get('product_extension')
msbuild_attributes['TargetExt'] = '.' + ext

if spec.get('msvs_external_builder'):
external_out_dir = spec.get('msvs_external_builder_out_dir', '.')
Expand Down Expand Up @@ -2851,6 +2854,9 @@ def _GetMSBuildConfigurationGlobalProperties(spec, configurations, build_file):
attributes['OutputDirectory'])
_AddConditionalProperty(properties, condition, 'TargetName',
attributes['TargetName'])
if 'TargetExt' in attributes:
_AddConditionalProperty(properties, condition, 'TargetExt',
attributes['TargetExt'])

if attributes.get('TargetPath'):
_AddConditionalProperty(properties, condition, 'TargetPath',
Expand Down

0 comments on commit 8ef9034

Please sign in to comment.