40
40
during applet launch (otherwise Java 1.1 to 1.4 plug-ins refuse to load Applet class) -->
41
41
<javac srcdir="src" destdir="build/classes"
42
42
includes="com/eteks/sweethome3d/applet/SweetHome3D*.java"
43
encoding="ISO-8859-1" target="1.1" source="1.2"/>
43
encoding="ISO-8859-1" target="1.1" source="1.2"
44
debug="false" debuglevel="lines,vars,source"/>
44
45
<!-- Compile other classes -->
45
46
<javac srcdir="src" destdir="build/classes"
46
encoding="ISO-8859-1" target="1.5" source="1.5">
47
encoding="ISO-8859-1" target="1.5" source="1.5"
48
debug="false" debuglevel="lines,vars,source">
47
49
<!-- Use lib as an extension directory to override default Java 3D libraries -->
49
51
<pathelement location="/usr/share/java"/>
140
142
<target name="java3dLibraries" depends="jogl-java3d,manifest"
141
143
description="Builds JNLP Java 3D libraries in deploy/lib subdirectories">
142
<!-- Create java3d.jar containing Windows 32 bits Java 3D DLLs and jars -->
144
<!-- Create java3d.jar containing Windows 32 bit Java 3D DLLs and jars -->
143
145
<mkdir dir="deploy/lib/windows/i386"/>
144
146
<jar destfile="deploy/lib/windows/i386/java3d.jar" manifest="build/META-INF/MANIFEST.MF">
145
147
<fileset dir="lib">
213
215
<target name="java3dAllSystemsLibrary"
214
description="Builds applet Java 3D library suitable for all systems in deploy/lib subdirectory">
216
description="Builds applet Java 3D library suitable for all systems in deploy/lib subdirectory">
215
217
<mkdir dir="deploy/lib"/>
216
218
<!-- Create java3d.jar containing Java 3D DLLs and jars for Windows, Linux and Mac OS X
217
219
(this library is used for Java versions older than Java SE 6 update 10) -->
372
374
during applet launch (otherwise Java 1.1 to 1.4 plug-ins refuse to load Applet class) -->
373
375
<javac srcdir="src" destdir="build/classes"
374
376
includes="com/eteks/sweethome3d/applet/SweetHome3DViewer.java"
375
encoding="ISO-8859-1" target="1.1" source="1.2"/>
377
encoding="ISO-8859-1" target="1.1" source="1.2"
378
debug="false" debuglevel="lines,vars,source"/>
376
379
<!-- Compile only classes depending on ViewerHelper to reduce Jar size -->
377
380
<javac srcdir="src" destdir="build/classes"
378
encoding="ISO-8859-1" target="1.5">
381
encoding="ISO-8859-1" target="1.5"
382
debug="false" debuglevel="lines,vars,source">
379
383
<include name="com/eteks/sweethome3d/applet/ViewerHelper.java"/>
380
384
<include name="com/eteks/sweethome3d/io/DefaultPatternTexture.java"/>
381
385
<!-- Use lib as an extension directory to override default Java 3D libraries -->
488
492
<!-- Builds Sweet Home 3D Windows launcher in install/windows/build directory.
489
CAUTION : May be run only under Windows and requires a Windows 32 bits JRE and launch4j
490
installed in their default location -->
493
CAUTION : May be run only under Windows 64 bit and requires Windows 32 bit JRE,
494
64 bit JRE and launch4j installed in their default location -->
491
495
<target name="windowsLauncher" depends="application,furniture,textures,help"
492
496
description="Builds Sweet Home 3D Windows launcher">
493
497
<!-- Copy SweetHome3D JARs and Windows Java 3D DLLs and JARs for Java 3D
494
498
to install/windows/build/lib -->
495
<mkdir dir="install/windows/build/lib"/>
499
<mkdir dir="install/windows/build/lib/x86"/>
496
500
<move file="build/SweetHome3D.jar" todir="install/windows/build/lib" />
497
501
<move file="build/Furniture.jar" todir="install/windows/build/lib" />
498
502
<move file="build/Textures.jar" todir="install/windows/build/lib" />
501
505
<fileset dir="lib">
502
506
<include name="*.jar"/>
509
<copy todir="install/windows/build/lib/x86" >
504
510
<fileset dir="lib/windows/i386">
505
511
<include name="*.dll"/>
514
<mkdir dir="install/windows/build/lib/x64"/>
515
<copy todir="install/windows/build/lib/x64" >
516
<fileset dir="lib/windows/x64">
517
<include name="*.dll"/>
508
520
<!-- Copy COPYING.TXT and licenses texts to install/windows/build/ -->
509
521
<copy file="COPYING.TXT" todir="install/windows/build"/>
510
522
<copy file="LICENSE.TXT" todir="install/windows/build" />
521
533
<copy file="THIRDPARTY-LICENSE-TANGO.TXT" todir="install/windows/build" />
522
534
<copy file="THIRDPARTY-LICENSE-CONTRIBUTIONS.TXT" todir="install/windows/build" />
524
<!-- Copy JRE to install/windows/build/jre... excluding files mentioned
525
in JRE README.TXT file (JRE bin/javaw.exe command excepted) -->
526
<copy todir="install/windows/build/jre6">
536
<!-- Copy 32 bit JRE to install/windows/build/jre/i386... excluding files mentioned
537
in JRE README.TXT file (JRE bin/javaw.exe command excepted) -->
538
<copy todir="install/windows/build/jre6/x86">
539
<fileset dir="C:\Program Files (x86)\Java\jre6">
541
<include name="bin/**"/>
542
<include name="lib/**"/>
544
<exclude name="lib/ext/sunjce_provider.jar"/>
545
<exclude name="bin/rmid.exe"/>
546
<exclude name="bin/rmiregistry.exe"/>
547
<exclude name="bin/tnameserv.exe"/>
548
<exclude name="bin/keytool.exe"/>
549
<exclude name="bin/kinit.exe"/>
550
<exclude name="bin/klist.exe"/>
551
<exclude name="bin/ktab.exe"/>
552
<exclude name="bin/policytool.exe"/>
553
<exclude name="bin/orbd.exe"/>
554
<exclude name="bin/servertool.exe"/>
556
<exclude name="bin/java.exe"/>
557
<exclude name="bin/javaws.exe"/>
558
<exclude name="bin/javacpl.exe"/>
559
<exclude name="bin/jucheck.exe"/>
560
<exclude name="bin/jusched.exe"/>
561
<exclude name="bin/wsdetect.dll"/>
562
<exclude name="bin/npjava*.dll"/>
563
<exclude name="bin/npjpi*.dll"/>
564
<exclude name="bin/npoji610.dll"/>
565
<exclude name="bin/regutils.dll"/>
566
<exclude name="bin/axbridge.dll"/>
567
<exclude name="bin/deploy.dll"/>
568
<exclude name="bin/jpicom.dll"/>
569
<exclude name="bin/javacpl.cpl"/>
570
<exclude name="bin/jpiexp.dll"/>
571
<exclude name="bin/jpinscp.dll"/>
572
<exclude name="bin/jpioji.dll"/>
573
<exclude name="bin/jpishare.dll"/>
574
<exclude name="lib/deploy.jar"/>
575
<exclude name="lib/plugin.jar"/>
576
<exclude name="lib/deploy/messages*.properties"/>
577
<exclude name="lib/deploy/splash.jpg"/>
581
<!-- Copy 64 bit JRE to install/windows/build/jre/x64... excluding files mentioned
582
in JRE README.TXT file (JRE bin/javaw.exe command excepted) -->
583
<copy todir="install/windows/build/jre6/x64">
527
584
<fileset dir="C:\Program Files\Java\jre6">
528
585
<include name="*"/>
529
586
<include name="bin/**"/>
569
626
<!-- Create SweetHome3D.exe with launch4j -->
570
<exec executable="C:\Program Files\Launch4j\launch4jc.exe" failonerror="yes">
627
<exec executable="C:\Program Files (x86)\Launch4j\launch4jc.exe" failonerror="yes">
571
628
<arg value="${basedir}\install\windows\installerLaunch4j.xml"/>
631
<!-- Pack largest jars -->
632
<exec executable="C:\Program Files\Java\jre6\bin\pack200.exe" failonerror="yes">
633
<arg value="${basedir}\install\windows\build\lib\SweetHome3D.pack.gz"/>
634
<arg value="${basedir}\install\windows\build\lib\SweetHome3D.jar"/>
636
<delete file="${basedir}\install\windows\build\lib\SweetHome3D.jar"/>
638
<exec executable="C:\Program Files\Java\jre6\bin\pack200.exe" failonerror="yes">
639
<arg value="-J-Xmx512m"/>
640
<arg value="${basedir}\install\windows\build\jre6\x86\lib\rt.pack.gz"/>
641
<arg value="${basedir}\install\windows\build\jre6\x86\lib\rt.jar"/>
643
<delete file="${basedir}\install\windows\build\jre6\x86\lib\rt.jar"/>
645
<exec executable="C:\Program Files\Java\jre6\bin\pack200.exe" failonerror="yes">
646
<arg value="-J-Xmx512m"/>
647
<arg value="${basedir}\install\windows\build\jre6\x64\lib\rt.pack.gz"/>
648
<arg value="${basedir}\install\windows\build\jre6\x64\lib\rt.jar"/>
650
<delete file="${basedir}\install\windows\build\jre6\x64\lib\rt.jar"/>
575
653
<!-- Builds install/SweetHome3D-version-windows.exe installer able to install SweetHome3D.exe
576
654
with a Windows JRE and Sweet Home 3D libraries.
577
CAUTION : May be run only under Windows and requires a Windows 32 bits JRE, launch4j and Inno Setup
578
installed in their default location -->
655
CAUTION : May be run only under Windows 64 bit and requires Windows 32 bit JRE, 64 bit JRE,
656
launch4j and Inno Setup installed in their default location -->
579
657
<target name="windowsInstaller" depends="windowsLauncher"
580
658
description="Builds install/SweetHome3D-version-windows.exe installer">
581
659
<!-- Create SweetHome3D-version-windows.exe with Inno Setup -->
582
<exec executable="C:\Program Files\Inno Setup 5\ISCC.exe" failonerror="yes">
660
<exec executable="C:\Program Files (x86)\Inno Setup 5\ISCC.exe" failonerror="yes">
583
661
<arg value="${basedir}\install\windows\installerInnoSetup.iss"/>
593
671
<!-- Builds install/SweetHome3D-version-windows.exe signed installer able to install SweetHome3D.exe
594
672
with a Windows JRE and Sweet Home 3D libraries.
595
CAUTION : May be run only under Windows and requires a Windows 32 bits JRE, launch4j, Inno Setup
596
and SignTool included in Windows platform SDK installed in their default location -->
673
CAUTION : May be run only under Windows 64 bit and requires Windows 32 bit JRE, 64 bit JRE,
674
launch4j, Inno Setup and SignTool included in Windows platform SDK
675
installed in their default location -->
597
676
<target name="windowsSignedInstaller" depends="windowsLauncher"
598
677
description="Builds install/SweetHome3D-version-windows.exe installer">
599
678
<input message="Enter signature password:"
600
679
addproperty="password"/>
601
680
<!-- Sign Sweet Home 3D launcher -->
602
<exec executable="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\signtool.exe" failonerror="yes">
681
<exec executable="C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\signtool.exe" failonerror="yes">
603
682
<arg value="sign"/>
604
683
<arg value="/f"/>
605
684
<arg value="${basedir}\install\windows\keys.pfx"/>
608
687
<arg value="${basedir}\install\windows\build\SweetHome3D.exe"/>
610
689
<!-- Create signed SweetHome3D-version-windows.exe with Inno Setup -->
611
<exec executable="C:\Program Files\Inno Setup 5\ISCC.exe" failonerror="yes">
612
<arg value="/sSignToolPgm=$$qC:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\signtool.exe$$q sign /f $$q${basedir}\install\windows\keys.pfx$$q /p ${password} $p"/>
690
<exec executable="C:\Program Files (x86)\Inno Setup 5\ISCC.exe" failonerror="yes">
691
<arg value="/sSignToolPgm=$$qC:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\signtool.exe$$q sign /f $$q${basedir}\install\windows\keys.pfx$$q /p ${password} $p"/>
613
692
<arg value="${basedir}\install\windows\signedInstallerInnoSetup.iss"/>
702
781
<!-- Builds install/SweetHome3D-version-macosx.dmg signed archive that contains SweetHome3D.app
703
782
and Sweet Home 3D libraries.
704
783
CAUTION : May be run only under Mac OS X and requires hdutil, codesign
705
and a certificate imported in Keychain Access -->
784
and a certificate imported in Keychain Access -->
706
785
<target name="macosxSignedInstaller" depends="macosxBundle"
707
786
description="Builds install/SweetHome3D-version-macosx.dmg archive">
708
787
<input message="Enter certificate name:" addproperty="certificateName"/>
739
818
<!-- Builds install/SweetHome3D-version-linux-x86.tgz archive that contains SweetHome3D command
740
819
with a Linux JRE and Sweet Home 3D libraries.
741
CAUTION : Requires a Linux 32 bits JRE installed in jre1.6.0_45 -->
820
CAUTION : Requires a Linux 32 bit JRE installed in jre1.6.0_45 -->
742
821
<target name="linux32Installer" depends="application,furniture,textures,help"
743
822
description="Builds install/SweetHome3D-version-linux-x86.tgz archive">
744
823
<!-- Copy SweetHome3D.jar and Linux Java 3D DLLs and JARs for Java 3D
817
896
<!-- Builds install/SweetHome3D-version-linux-x64.tgz archive that contains SweetHome3D command
818
897
with a Linux JRE and Sweet Home 3D libraries.
819
CAUTION : Requires a Linux 64 bits JRE installed in jre1.6.0_45 -->
898
CAUTION : Requires a Linux 64 bit JRE installed in jre1.6.0_45 -->
820
899
<target name="linux64Installer" depends="application,furniture,textures,help"
821
900
description="Builds install/SweetHome3D-version-linux-x64.tgz archive">
822
901
<!-- Copy SweetHome3D.jar and Linux Java 3D DLLs and JARs for Java 3D
898
977
<target name="windowsSignedPortableLaunchers"
899
978
description="Builds Sweet Home 3D Windows portable launchers">
900
979
<!-- Create portable executable files with launch4j -->
901
<exec executable="C:\Program Files\Launch4j\launch4jc.exe" failonerror="yes">
980
<exec executable="C:\Program Files (x86)\Launch4j\launch4jc.exe" failonerror="yes">
902
981
<arg value="${basedir}\install\portable\SweetHome3D-windows-x86.xml"/>
904
<exec executable="C:\Program Files\Launch4j\launch4jc.exe" failonerror="yes">
983
<exec executable="C:\Program Files (x86)\Launch4j\launch4jc.exe" failonerror="yes">
905
984
<arg value="${basedir}\install\portable\SweetHome3D-windows-x64.xml"/>
908
987
<input message="Enter signature password:"
909
988
addproperty="password"/>
910
989
<!-- Sign launchers -->
911
<exec executable="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\signtool.exe" failonerror="yes">
990
<exec executable="C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\signtool.exe" failonerror="yes">
912
991
<arg value="sign"/>
913
992
<arg value="/f"/>
914
993
<arg value="${basedir}\install\windows\keys.pfx"/>
1074
1153
<footer><![CDATA[<a href='http://www.sweethome3d.com' target='_parent'><font size='+1'>Sweet Home 3D ${version}</font></a>]]></footer>
1075
1154
<bottom><![CDATA[<table align='center'><tr>
1076
1155
<td><a href='http://www.eteks.com' target='_parent'><img align='absmiddle' src='http://www.sweethome3d.com/images/eteks.gif' border='0'><a></td>
1077
<td>© Copyrights 2006-2013 <a href='http://www.eteks.com' target='_parent'>eTeks</a> - All rights reserved
1156
<td>© Copyrights 2006-2014 <a href='http://www.eteks.com' target='_parent'>eTeks</a> - All rights reserved
1078
1157
<br>Distributed under <a href='http://www.gnu.org/licenses/gpl-2.0.html' target='_parent'>GNU General Public License</a></td></tr></table>]]></bottom>
1079
1158
<link href="http://docs.oracle.com/javase/1.5.0/docs/api/"/>
1080
1159
<link href="http://download.java.net/media/java3d/javadoc/1.5.2/"/>