vs2017backend.py 1.0 KB

123456789101112131415161718192021222324252627282930
  1. # Copyright 2014-2016 The Meson development team
  2. # Licensed under the Apache License, Version 2.0 (the "License");
  3. # you may not use this file except in compliance with the License.
  4. # You may obtain a copy of the License at
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. # Unless required by applicable law or agreed to in writing, software
  7. # distributed under the License is distributed on an "AS IS" BASIS,
  8. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. # See the License for the specific language governing permissions and
  10. # limitations under the License.
  11. import os
  12. from .vs2010backend import Vs2010Backend
  13. class Vs2017Backend(Vs2010Backend):
  14. def __init__(self, build):
  15. super().__init__(build)
  16. self.name = 'vs2017'
  17. self.platform_toolset = 'v141'
  18. self.vs_version = '2017'
  19. # WindowsSDKVersion should be set by command prompt.
  20. sdk_version = os.environ.get('WindowsSDKVersion', None)
  21. if sdk_version:
  22. self.windows_target_platform_version = sdk_version.rstrip('\\')