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

Updated winenv.coffee for Windows 10 #1

Open
yongyi781 opened this issue Jan 4, 2016 · 1 comment
Open

Updated winenv.coffee for Windows 10 #1

yongyi781 opened this issue Jan 4, 2016 · 1 comment

Comments

@yongyi781
Copy link

Hi! I just found this tool and decided to try it out on my Windows 10 machine, with Visual Studio 2015. I managed to get it working using the following modified winenv.coffee file. I didn't make a pull request because the best thing to do is to make the paths configurable, but here is the path information for other people who want to try it out:

# Copyright 2015 Adobe Systems Incorporated
# All Rights Reserved.

path = require 'path'

vcInstallDir = "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC"
kitsDir = "C:\\Program Files (x86)\\Windows Kits\\10"
win10ver = "10.0.10586.0"

INCLUDE = [
  (path.join vcInstallDir, "INCLUDE"),
  (path.join vcInstallDir, "ATLMFC", "INCLUDE"),
  (path.join kitsDir, "include", win10ver, "ucrt"),
  (path.join kitsDir, "include", win10ver, "shared"),
  (path.join kitsDir, "include", win10ver, "um")
]

LIBPATH = [
  (path.join vcInstallDir, "lib"),
  (path.join vcInstallDir, "atlmfc", "lib")
]

LIB = [
  (path.join vcInstallDir, "lib"),
  (path.join vcInstallDir, "atlmfc", "lib")
  (path.join kitsDir, "lib", win10ver, "ucrt", "x86")
  (path.join kitsDir, "lib", win10ver, "um", "x86")
]

binPath = path.join vcInstallDir, "BIN"

Path = [
  binPath,
  process.env.Path
]

module.exports.makeEnv = () ->
  INCLUDE: INCLUDE.join ";"
  LIBPATH: LIBPATH.join ";"
  LIB: LIB.join ";"
  Path: Path.join ";"

module.exports.toolPath = (basename) ->
  path.join vcInstallDir, "BIN", basename
@dan-tull
Copy link
Contributor

dan-tull commented Jan 4, 2016

Great, glad you were able to get it working. I'll have to find some time to add configurability options (probably with some automatic discovery or presets so the common cases don't require a lot of manual fiddling around).

Thanks for passing along your updates to winenv for reference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants