~ubuntu-branches/ubuntu/trusty/sweethome3d/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/02noadditionalprovisions/build.xml

  • Committer: Package Import Robot
  • Author(s): Gabriele Giacone
  • Date: 2014-01-28 02:27:55 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20140128022755-by8zvvmhwiju905v
Tags: 4.3+dfsg-1
* New upstream release.
* Bump Standards-Version to 3.9.5 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0"?>
2
2
<!-- build.xml
3
3
 
4
 
     Sweet Home 3D, Copyright (c) 2007-2013 Emmanuel PUYBARET / eTeks <info@eteks.com>. 
 
4
     Sweet Home 3D, Copyright (c) 2007-2014 Emmanuel PUYBARET / eTeks <info@eteks.com>. 
5
5
     
6
6
     Ant build file. Available targets :
7
7
     - build       : Builds SweetHome3D.jar file in build directory
30
30
-->
31
31
<project basedir="." default="jarExecutable" name="SweetHome3D">
32
32
  <!-- The current version of Sweet Home 3D -->
33
 
  <property name="version" value="4.2"/>
 
33
  <property name="version" value="4.3"/>
34
34
 
35
35
  <target name="build" 
36
36
          description="Builds build/SweetHome3D.jar with all its classes">
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 -->
48
50
      <extdirs>
49
51
        <pathelement location="/usr/share/java"/>
139
141
 
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">
152
154
      </fileset>
153
155
    </jar>
154
156
 
155
 
    <!-- Create java3d.jar containing Windows 64 bits Java 3D DLLs and jars -->
 
157
    <!-- Create java3d.jar containing Windows 64 bit Java 3D DLLs and jars -->
156
158
    <mkdir dir="deploy/lib/windows/x64"/>
157
159
    <jar destfile="deploy/lib/windows/x64/java3d.jar" manifest="build/META-INF/MANIFEST.MF">
158
160
      <fileset dir="lib">
165
167
      </fileset>
166
168
    </jar>
167
169
 
168
 
    <!-- Create java3d.jar containing Linux 32 bits Java 3D DLLs and jars -->
 
170
    <!-- Create java3d.jar containing Linux 32 bit Java 3D DLLs and jars -->
169
171
    <mkdir dir="deploy/lib/linux/i386"/>
170
172
    <jar destfile="deploy/lib/linux/i386/java3d.jar" manifest="build/META-INF/MANIFEST.MF">
171
173
      <fileset dir="lib">
178
180
      </fileset>
179
181
    </jar>
180
182
 
181
 
    <!-- Create java3d.jar containing Linux 64 bits Java 3D DLLs and jars -->
 
183
    <!-- Create java3d.jar containing Linux 64 bit Java 3D DLLs and jars -->
182
184
    <mkdir dir="deploy/lib/linux/x64"/>
183
185
    <jar destfile="deploy/lib/linux/x64/java3d.jar" manifest="build/META-INF/MANIFEST.MF">
184
186
      <fileset dir="lib">
211
213
  </target>
212
214
 
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) -->
233
235
      </fileset>
234
236
    </jar>
235
237
  </target>
236
 
        
 
238
 
237
239
  <target name="viewerLibraries" depends="manifest"
238
240
          description="Copies to deploy/lib the base libraries used by Sweet Home 3D Viewer">
239
241
    <mkdir dir="deploy/lib"/>
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 -->
486
490
  </target>
487
491
 
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"/>
503
507
      </fileset>
 
508
    </copy>
 
509
    <copy todir="install/windows/build/lib/x86" >
504
510
      <fileset dir="lib/windows/i386">
505
511
        <include name="*.dll"/>
506
512
      </fileset>
507
513
    </copy>
 
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"/>
 
518
      </fileset>
 
519
    </copy>
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" />
523
535
  
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">
 
540
        <include name="*"/>
 
541
        <include name="bin/**"/>
 
542
        <include name="lib/**"/>
 
543
 
 
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"/>
 
555
 
 
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"/>
 
578
      </fileset>
 
579
    </copy>
 
580
 
 
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/**"/>
567
624
    </copy>
568
625
 
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"/>
572
629
    </exec>
 
630
 
 
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"/>
 
635
    </exec>
 
636
    <delete file="${basedir}\install\windows\build\lib\SweetHome3D.jar"/>
 
637
 
 
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"/>
 
642
    </exec>
 
643
    <delete file="${basedir}\install\windows\build\jre6\x86\lib\rt.jar"/>
 
644
 
 
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"/>
 
649
    </exec>
 
650
    <delete file="${basedir}\install\windows\build\jre6\x64\lib\rt.jar"/>
573
651
  </target>
574
652
 
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"/>
584
662
    </exec>  
585
663
 
592
670
 
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"/>
609
688
    </exec>
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"/>
614
693
    </exec>  
615
694
 
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"/> 
738
817
 
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 
816
895
 
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"/>
903
982
    </exec>
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"/>
906
985
    </exec>
907
986
 
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/"/>