0002-gyp-apply-https-codereview.chromium.org-11361103.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 511840e82116662aa825088fb8a52a9f799f7767 Mon Sep 17 00:00:00 2001
  2. From: Nathan Rajlich <nathan@tootallnate.net>
  3. Date: Wed, 14 Nov 2012 16:54:04 -0800
  4. Subject: [PATCH 2/3] gyp: apply https://codereview.chromium.org/11361103/
  5. ---
  6. gyp/pylib/gyp/generator/msvs.py | 6 ++++++
  7. 1 file changed, 6 insertions(+)
  8. diff --git a/gyp/pylib/gyp/generator/msvs.py b/gyp/pylib/gyp/generator/msvs.py
  9. index d8e0872..c59aea1 100644
  10. --- a/gyp/pylib/gyp/generator/msvs.py
  11. +++ b/gyp/pylib/gyp/generator/msvs.py
  12. @@ -2720,6 +2720,9 @@ def _GetMSBuildAttributes(spec, config, build_file):
  13. product_name = spec.get('product_name', '$(ProjectName)')
  14. target_name = prefix + product_name
  15. msbuild_attributes['TargetName'] = target_name
  16. + if 'TargetExt' not in msbuild_attributes and 'product_extension' in spec:
  17. + ext = spec.get('product_extension')
  18. + msbuild_attributes['TargetExt'] = '.' + ext
  19. if spec.get('msvs_external_builder'):
  20. external_out_dir = spec.get('msvs_external_builder_out_dir', '.')
  21. @@ -2773,6 +2776,9 @@ def _GetMSBuildConfigurationGlobalProperties(spec, configurations, build_file):
  22. attributes['OutputDirectory'])
  23. _AddConditionalProperty(properties, condition, 'TargetName',
  24. attributes['TargetName'])
  25. + if 'TargetExt' in attributes:
  26. + _AddConditionalProperty(properties, condition, 'TargetExt',
  27. + attributes['TargetExt'])
  28. if attributes.get('TargetPath'):
  29. _AddConditionalProperty(properties, condition, 'TargetPath',
  30. --
  31. 2.3.2 (Apple Git-55)