-
Notifications
You must be signed in to change notification settings - Fork 1
/
winenv.coffee
41 lines (32 loc) · 941 Bytes
/
winenv.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2015 Adobe Systems Incorporated
# All Rights Reserved.
path = require 'path'
vcInstallDir = "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC"
kitsDir = "C:\\Program Files (x86)\\Windows Kits\\8.1"
INCLUDE = [
(path.join vcInstallDir, "INCLUDE"),
(path.join vcInstallDir, "ATLMFC", "INCLUDE"),
(path.join kitsDir, "include", "shared"),
(path.join kitsDir, "include", "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", "winv6.3", "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