-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.buildinfo
84 lines (68 loc) · 1.86 KB
/
.buildinfo
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@import "version.inc";
@import "common.inc";
#define {
NewVersion : "${package-version++}";
}
#product-info {
product-name: "cairo";
version: "${package-version}";
original-source-location: "git://anongit.freedesktop.org/git/cairo";
original-source-website: "http://www.cairographics.org/download/";
license: "MPL 1.1, LGPL 2.1";
packager: "Vincent Povirk <[email protected]>";
}
x86 {
requires: {
"pixman-dev[vc10]-${pixman-dep-version}-x86-${pixman-dep-publickeytoken}",
"libpng-dev[vc10]-${libpng-dep-version}-x86-${libpng-dep-publickeytoken}",
};
platform: x86;
compiler: vc10;
build-command: @"
if ""${BUILT}"" equ ""true"" goto end
msbuild /p:Platform=Win32 /p:Configuration=Release COPKG\cairo\cairo.sln
:end
";
targets: {
@"COPKG\cairo\Release\cairo.dll",
@"COPKG\cairo\Release\cairo.lib",
};
clean-command: @"
msbuild /p:Platform=Win32 /p:Configuration=Release COPKG\cairo\cairo.sln /target:Clean
";
}
release {
uses: x86;
}
test {
uses: release;
}
package {
uses: release;
build-command: @"
if ""${noversion}"" neq ""true"" ptk update-version
cd COPKG
autopackage cairo-dev-common.autopkg || goto failed
autopackage cairo.autopkg cairo-dev.autopkg || goto failed
";
targets: {
@"COPKG\cairo[vc10]-${NewVersion}-x86.msi",
@"COPKG\cairo-dev[vc10]-${NewVersion}-x86.msi",
@"COPKG\cairo-dev-common-${NewVersion}-any.msi",
};
clean-command: @"
del COPKG\*.msi
del COPKG\*.wixpdb
";
}
update-version {
default : false;
build-command : @"
REM auto-increment version.inc file...
pushd COPKG
setlocal EnableDelayedExpansion
set VERSTRING=#define { package-version: ${NewVersion}; }
echo !VERSTRING! > version.inc
popd
";
}