Skip to content

Commit

Permalink
Add package target.
Browse files Browse the repository at this point in the history
  • Loading branch information
madewokherd committed May 18, 2012
1 parent 9d22119 commit d63b66c
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 0 deletions.
21 changes: 21 additions & 0 deletions COPKG/.buildinfo
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,24 @@ x86 {
release {
uses: x86;
}

test {
}

package {
uses: release;

build-command: @"
cd COPKG
autopackage cairo.autopkg || goto failed
";

targets: {
@"COPKG\cairo[vc10]-${package-version}-x86.msi",
};

clean-command: @"
del COPKG\*.msi
del COPKG\*.wixpdb
";
}
94 changes: 94 additions & 0 deletions COPKG/cairo.autopkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
@import "version.inc";
@import "compat.inc";
@import "outercurve.inc";

#define {
flavor: "${comp??vc10}";
arch : "${plat??x86}";
}

package {
name: "cairo[${flavor}]";
version: "${package-version}";
arch : "${arch}";

display-name: "Cairo Graphics Library";
location: "http://coapp.org/repository/${OutputFilename}";

feed: "http://coapp.org/repository/packages.atom.xml";
publisher: "CoApp Project";
}

license[MPL11] {
license: @"..\COPYING-MPL-1.1";
license-url: "http://www.mozilla.org/MPL/1.1/";
license-type: "MPL";
}

license[LGPL21] {
license: @"..\COPYING-LGPL-2.1";
license-url: "http://www.gnu.org/licenses/lgpl-2.1.html";
license-type: "LGPL";
}

requires {
package: "pixman[vc10]-${pixman-dep-version}-x86-${pixman-dep-publickeytoken}";
package: "libpng[vc10]-${libpng-dep-version}-x86-${libpng-dep-publickeytoken}";
}

metadata {
summary: "Cairo Graphics Library";
description: @"Cairo is a vector graphics library that can output to many devices and use hardware acceleration in some cases.";
author-version : "${author-version}";
bug-tracker: "https://github.com/coapp-packages/cairo/issues";
stability : "0";
licenses : {
MPL11,
LGPL21
};
}

signing {
attributes : {
company="Outercurve Foundation",
description="Cairo is a vector graphics library that can output to many devices and use hardware acceleration in some cases.",
product-name="Cairo",
product-version="${package-version}",
file-version="${package-version}",
};

replace-signature: true;
include: {
dlls
};
}

manifest[cairodeps] {
// The 'assembly' section lists all items in SxS which need to be referenced.
assembly : {
"pixman[${flavor}]",
"libpng[${flavor}]",
};

// The 'include' section lists files (or sets of files) which will need to
// reference the above assemblies.
include : {
dlls
};
}

assembly[cairo[${flavor}]] {
include : {
dlls
};
}

files[dlls] {
root: @"cairo\Release";

include: {
"cairo.dll",
};

trim-path: all;
};
6 changes: 6 additions & 0 deletions COPKG/compat.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
compatability-policy {
minimum: "1.12.2.0";
maximum: "${OneLessThanCurrent}";
versions : {
};
}
11 changes: 11 additions & 0 deletions COPKG/outercurve.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package {
location: "http://coapp.org/repository/${OutputFilename}";
feed: "http://coapp.org/repository/packages.atom.xml";
publisher: "Outercurve Foundation, CoApp Project";
}

identity[CoApp Project] {
name : "CoApp Project, Outercurve Foundation";
email: "[email protected]";
website: "http://coapp.org";
}

0 comments on commit d63b66c

Please sign in to comment.