Skip to content

Updated winenv.coffee for Windows 10 #1

@yongyi781

Description

@yongyi781

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions