-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwindows.json
47 lines (47 loc) · 1.4 KB
/
windows.json
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
42
43
44
45
46
47
{
"version": "1.13.0",
"source": "https://github.com/emcrisostomo/fswatch/releases/download/1.13.0/fswatch-1.13.0.tar.gz#c533fb6d9206814e12541282a76570412f65dc10",
"override": {
"buildsInSource": true,
"build": [
"git apply ./patch-windows.patch",
[
"./configure",
"#{os == 'windows' ? '--host=x86_64-w64-mingw32' : ''}",
"#{os == 'windows' ? 'CFLAGS=\"-DHAVE_WINDOW\"' : ''}",
"#{os == 'windows' ? 'CXXFLAGS=\"-DHAVE_WINDOWS\"' : ''}",
"--prefix=#{self.install}",
"--disable-dependency-tracking",
"--disable-silent-rules"
],
[
"bash",
"-c",
"#{os == 'windows' ? './build-windows.sh' : 'true'}"
],
"make",
"make install"
],
"buildEnv": {
"WINDOWS_AVAILABLE": "#{os == 'windows' ? 'yes' : 'no'}",
"CYGWIN_AVAILABLE": "#{os == 'windows' ? 'yes' : 'no'}"
},
"exportedEnv": {
"FSWATCH_INCLUDE_PATH": {
"val": "#{self.install / 'include'}",
"scope": "global"
},
"FSWATCH_BIN_PATH": {
"val": "#{self.install / 'fswatch'}",
"scope": "global"
},
"PATH": {
"scope": "global",
"val": "#{os == 'windows' ? '/usr/x86_64-w64-mingw32/sys-root/mingw/bin;$PATH' : $PATH}"
}
},
"dependencies": {
"automake": "esy-packages/esy-automake#f4fecab89169dd64cc363ec902d828c55c257fc0"
}
}
}