From b0b4b5912c299eacc6cdb53d52f231686c8d8fce Mon Sep 17 00:00:00 2001 From: Charlie Groves Date: Sun, 6 Mar 2011 23:11:08 +0000 Subject: [PATCH] Get a little crazy with the Cheez Whiz and use our shared build system for narya. This has a few benefits over the old system: * We don't have to copy our Maven, Java, and Actionscript settings to every project * Maven dependency fetching uses a cache in dist until clean is run instead of checking for snapshots on every build * Building aslibs no longer needs to generate a configuration file, which grows confusingly stale * Nailgun can be used to run mxmlc. This cuts actionscript compile time in half. It can also generate a script to call nailgun, which avoids the few seconds of Java startup required to run Ant. This means we're using Flex 4 to compile naryalib.swc now, but we released a 1.7 recently. Any projects wishing to stay out of Flex 4 land can pin to that. If this goes off without too much turbulence, I'll migrate our other projects in a couple days. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6513 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- bootstrap.xml | 36 +++++++++ build.xml | 209 ++++++++++++++------------------------------------ 2 files changed, 92 insertions(+), 153 deletions(-) create mode 100644 bootstrap.xml diff --git a/bootstrap.xml b/bootstrap.xml new file mode 100644 index 000000000..b24d3886b --- /dev/null +++ b/bootstrap.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/build.xml b/build.xml index 66c862773..e3fac6147 100644 --- a/build.xml +++ b/build.xml @@ -1,35 +1,21 @@ - - - - - - + + + + + + - - - - - - - - - + + + - - - - - - - - - + + + + @@ -38,11 +24,11 @@ - + - + @@ -51,22 +37,22 @@ - - - + - + - + + + + @@ -74,64 +60,17 @@ - - - - + - - - - + - - - - - - - - - - - - - NOTE: not building ActionScript library. Pass -Dflexsdk.dir=DIR to - activate ActionScript library build. - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -147,26 +86,16 @@ - + + - - - - - - - - - - - + - @@ -180,24 +109,21 @@ - + - - + - - - + - + - + @@ -228,11 +153,10 @@ - + - + @@ -242,17 +166,14 @@ - + - - + + - + @@ -283,12 +204,11 @@ - + - + @@ -362,29 +282,12 @@ - - - - - - - - - - - - - - - - - - - - - - + + + +