-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Reggie Burnett
committed
Feb 25, 2005
1 parent
7d1ec7f
commit b02a5af
Showing
15 changed files
with
2,513 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<project name="MySqlClient" default="allframeworks" xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd"> | ||
<description>MySQLClient Managed Provider for MySQL</description> | ||
|
||
<!-- sets where we can expect to find NUnit on your system --> | ||
<property name="nunit" value="d:\program files\NUnit 2.2\bin"/> | ||
|
||
<!-- filesets --> | ||
<fileset id="Source"> | ||
<include name="mysqlclient/common/*.cs"/> | ||
<include name="mysqlclient/Types/*.cs"/> | ||
<include name="mysqlclient/*.cs"/> | ||
</fileset> | ||
|
||
<if test="${not property::exists('debug')}"> | ||
<property name="defines" value=""/> | ||
</if> | ||
|
||
<if test="${not property::exists('debug')}"> | ||
<property name="debug" value="false"/> | ||
<property name="opt" value="true"/> | ||
<property name="buildType" value="release"/> | ||
</if> | ||
|
||
<if test="${(debug)}"> | ||
<property name="opt" value="false"/> | ||
<property name="buildType" value="debug"/> | ||
</if> | ||
|
||
<if test="${not property::exists('build.dir')}"> | ||
<property name="build.dir" value="."/> | ||
</if> | ||
|
||
<!-- builds the client on all supported frameworks --> | ||
<target name="allframeworks"> | ||
<property name="framework" value="net-1.0"/> | ||
<call target="client"/> | ||
<property name="framework" value="net-1.1"/> | ||
<call target="client"/> | ||
<call target="Docs"/> | ||
</target> | ||
|
||
<!-- core managed driver target --> | ||
<target name="client" description="Core client target"> | ||
<property name="nant.settings.currentframework" value="${framework}"/> | ||
<mkdir dir="bin/${framework}/${buildType}" failonerror="false"/> | ||
<csc define="${defines}" output="bin/${framework}/${buildType}/MySql.Data.dll" target="library" | ||
debug="${debug}" optimize="${opt}" | ||
doc="bin/${framework}/${buildType}/MySql.Data.xml"> | ||
<arg value="/nowarn:0679"/> | ||
<references> | ||
<include name="ICSharpCode.SharpZipLib.dll"/> | ||
</references> | ||
<sources refid="Source"/> | ||
</csc> | ||
<csc output="bin/${framework}/${buildType}/MySql.Data.Tests.dll" target="library" debug="${debug}" optimize="${opt}"> | ||
<arg value="/nowarn:0679"/> | ||
<sources> | ||
<include name="TestSuite/*.cs"/> | ||
</sources> | ||
<references> | ||
<include name="bin/${framework}/${buildType}/MySql.Data.dll"/> | ||
<include name="${nunit}/nunit.framework.dll"/> | ||
</references> | ||
</csc> | ||
</target> | ||
|
||
<!-- core managed driver target 1.0 --> | ||
<target name="net-1.0" description="1.0 .NET target"> | ||
<property name="framework" value="net-1.0"/> | ||
<call target="client"/> | ||
</target> | ||
|
||
<!-- core managed driver target 1.1 --> | ||
<target name="net-1.1" description="1.1 .NET target"> | ||
<property name="framework" value="net-1.1"/> | ||
<call target="client"/> | ||
</target> | ||
|
||
|
||
<!-- testing targets --> | ||
<target name="alltests" depends="test-net-1.1, test-net-1.0"> | ||
</target> | ||
|
||
<target name="test-net-1.1" depends="net-1.1"> | ||
<property name="framework" value="net-1.1"/> | ||
<call target="testclient"/> | ||
</target> | ||
|
||
<target name="test-net-1.0" depends="net-1.0"> | ||
<property name="framework" value="net-1.0"/> | ||
<call target="testclient"/> | ||
</target> | ||
|
||
<!-- target to run the test suite --> | ||
<target name="testclient" description="Target to run NUnit tests"> | ||
<echo message="Stopping all services"/> | ||
<servicecontroller action="Stop" service="MySql4.0"/> | ||
<servicecontroller action="Stop" service="MySql4.1"/> | ||
<servicecontroller action="Stop" service="MySql5.0"/> | ||
|
||
<echo message="Testing MySQL 4.0"/> | ||
<servicecontroller action="Start" service="MySql4.0"/> | ||
<call target="testdb"/> | ||
|
||
<echo message="Testing MySQL 4.1"/> | ||
<servicecontroller action="Stop" service="MySql4.0"/> | ||
<servicecontroller action="Start" service="MySql4.1"/> | ||
<call target="testdb"/> | ||
|
||
<echo message="Testing MySQL 5.0"/> | ||
<servicecontroller action="Stop" service="MySql4.1"/> | ||
<servicecontroller action="Start" service="MySql5.0"/> | ||
<call target="testdb"/> | ||
</target> | ||
|
||
<target name="testdb" description="Target to test a database with all possible configurations"> | ||
<nunit2 verbose="true"> | ||
<formatter type="Plain" /> | ||
<test assemblyname="bin/${framework}/${buildType}/MySql.Data.Tests.dll" | ||
appconfig="testsuite/MySql.Data.Tests.dll.config" /> | ||
</nunit2> | ||
</target> | ||
|
||
<!-- documentation target --> | ||
<target name="Docs" description="Documentation"> | ||
<ndoc> | ||
<assemblies basedir="bin/${framework}/${buildType}"> | ||
<include name="MySQL.Data.dll" /> | ||
</assemblies> | ||
<summaries> | ||
<include name="${build.dir}/mysqlclient/docs/namespace.xml"/> | ||
</summaries> | ||
<documenters> | ||
<documenter name="MSDN"> | ||
<property name="OutputDirectory" value="${build.dir}/bin/${framework}/${buildType}/doc/VS.Net" /> | ||
<property name="HtmlHelpName" value="MySql.Data" /> | ||
<property name="HtmlHelpCompilerFilename" value="hhc.exe" /> | ||
<property name="IncludeFavorites" value="False" /> | ||
<property name="Title" value="MySQL ADO.Net Data Provider" /> | ||
<property name="SplitTOCs" value="False" /> | ||
<property name="DefaulTOC" value="" /> | ||
<property name="ShowVisualBasic" value="True" /> | ||
<property name="ShowMissingSummaries" value="False" /> | ||
<property name="ShowMissingRemarks" value="False" /> | ||
<property name="ShowMissingParams" value="False" /> | ||
<property name="ShowMissingReturns" value="False" /> | ||
<property name="ShowMissingValues" value="False" /> | ||
<property name="DocumentInternals" value="False" /> | ||
<property name="DocumentProtected" value="True" /> | ||
<property name="DocumentPrivates" value="False" /> | ||
<property name="DocumentEmptyNamespaces" value="False" /> | ||
<property name="IncludeAssemblyVersion" value="False" /> | ||
<property name="CopyrightText" value="Copyright MySQL AB 2004" /> | ||
<property name="CopyrightHref" value="http://www.mysql.com" /> | ||
</documenter> | ||
</documenters> | ||
</ndoc> | ||
|
||
<!-- now copy the generated docs to the doc folder --> | ||
<mkdir dir="doc"/> | ||
<copy file="bin/${framework}/${buildType}/doc/VS.Net/MySql.Data.chm" todir="doc"/> | ||
<delete dir="bin/${framework}/${buildType}/doc" failonerror="false"/> | ||
</target> | ||
|
||
<!-- Remove all generated files target --> | ||
<target name="clean" description="Remove all generated files"> | ||
<delete failonerror="false"> | ||
<fileset> | ||
<include name="bin\*.*" /> | ||
</fileset> | ||
</delete> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
MySQL FLOSS License Exception | ||
|
||
The MySQL AB Exception for Free/Libre and Open Source Software-only | ||
Applications Using MySQL Client Libraries (the "FLOSS Exception"). | ||
|
||
|
||
Exception Intent | ||
We want specified Free/Libre and Open Source Software ("FLOSS") applications | ||
to be able to use specified GPL-licensed MySQL client libraries (the | ||
"Program") despite the fact that not all FLOSS licenses are compatible with | ||
version 2 of the GNU General Public License (the "GPL"). | ||
|
||
|
||
Legal Terms and Conditions | ||
As a special exception to the terms and conditions of version 2.0 of the | ||
GPL: | ||
|
||
0. You are free to distribute a Derivative Work that is formed entirely from | ||
the Program and one or more works (each, a "FLOSS Work") licensed under | ||
one or more of the licenses listed below in section 1, as long as: | ||
|
||
a. You obey the GPL in all respects for the Program and the Derivative | ||
Work, except for identifiable sections of the Derivative Work which | ||
are not derived from the Program, and which can reasonably be | ||
considered independent and separate works in themselves, | ||
|
||
b. all identifiable sections of the Derivative Work which are not | ||
derived from the Program, and which can reasonably be considered | ||
independent and separate works in themselves, | ||
|
||
(i) are distributed subject to one of the FLOSS licenses listed | ||
below, and | ||
|
||
(ii) the object code or executable form of those sections are | ||
accompanied by the complete corresponding machine-readable | ||
source code for those sections on the same medium and under the | ||
same FLOSS license as the corresponding object code or | ||
executable forms of those sections, and | ||
|
||
c. any works which are aggregated with the Program or with a Derivative | ||
Work on a volume of a storage or distribution medium in accordance | ||
with the GPL, can reasonably be considered independent and separate | ||
works in themselves which are not derivatives of either the Program, | ||
a Derivative Work or a FLOSS Work. | ||
|
||
If the above conditions are not met, then the Program may only be copied, | ||
modified, distributed or used under the terms and conditions of the GPL or | ||
another valid licensing option from MySQL AB. | ||
|
||
1. FLOSS License List | ||
|
||
License name Version(s)/Copyright Date | ||
Academic Free License 2.0 | ||
Apache Software License 1.0/1.1/2.0 | ||
Apple Public Source License 2.0 | ||
Artistic license From Perl 5.8.0 | ||
BSD license "July 22 1999" | ||
Common Public License 1.0 | ||
GNU Library or "Lesser" General Public License (LGPL) 2.0/2.1 | ||
Jabber Open Source License 1.0 | ||
MIT License (As listed in file MIT-License.txt) - | ||
Mozilla Public License (MPL) 1.0/1.1 | ||
Open Software License 2.0 | ||
PHP License 3.0 | ||
Python license (CNRI Python License) - | ||
Python Software Foundation License 2.1.1 | ||
Sleepycat License "1999" | ||
W3C License "2001" | ||
X11 License "2001" | ||
Zlib/libpng License - | ||
Zope Public License 2.0 | ||
|
||
Due to the many variants of some of the above licenses, we require that any | ||
version follow the 2003 version of the Free Software Foundation's Free | ||
Software Definition (http://www.gnu.org/philosophy/free-sw.html) or version | ||
1.9 of the Open Source Definition by the Open Source Initiative | ||
(http://www.opensource.org/docs/definition.php). | ||
|
||
2. Definitions | ||
|
||
a. Terms used, but not defined, herein shall have the meaning provided in | ||
the GPL. | ||
|
||
b. Derivative Work means a derivative work under copyright law. | ||
|
||
3. Applicability | ||
|
||
This FLOSS Exception applies to all Programs that contain a notice placed by | ||
MySQL AB saying that the Program may be distributed under the terms of this | ||
FLOSS Exception. If you create or distribute a work which is a Derivative | ||
Work of both the Program and any other work licensed under the GPL, then | ||
this FLOSS Exception is not available for that work; thus, you must remove | ||
the FLOSS Exception notice from that work and comply with the GPL in all | ||
respects, including by retaining all GPL notices. You may choose to | ||
redistribute a copy of the Program exclusively under the terms of the GPL by | ||
removing the FLOSS Exception notice from that copy of the Program, provided | ||
that the copy has never been modified by you or any third party. | ||
|
||
$Id: FLOSS-exception.txt,v 1.5 2004/07/15 15:24:19 z Exp $ |
Binary file not shown.
Oops, something went wrong.