Changeset 35523 for main/trunk


Ignore:
Timestamp:
2021-09-29T15:25:27+13:00 (3 years ago)
Author:
anupama
Message:

Ant target prepare-gnome-lib updated to display a message that it essentially does nothing on Windows. Follows Dr Bainbridge's pseudocode for conditional structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r35514 r35523  
    41284128  <target name="prepare-gnome-lib" depends="init" if="collection.building.enabled" unless="gnome-lib.present">
    41294129    <if>
    4130       <bool>
    4131     <and>
    4132       <istrue value="${checkout.gnomelib.ext}"/>
    4133       <istrue value="${current.os.isunix}"/>
    4134     </and>
    4135       </bool>
    4136 
    4137       <antcall target="checkout-gnome-lib"/>
    4138       <!--Compilation of gnome-lib happens during ant install, just before configuring (common-src and) build-src-->
    4139 
     4130      <bool><istrue value="${checkout.gnomelib.ext}"/></bool>
     4131      <if>
     4132    <bool><istrue value="${current.os.iswindows}"/></bool>
     4133   
     4134    <echo>Skipping prepare-gnome-lib, because compilation is on Windows which checks out binaries that do not rely on gnomelib</echo>
     4135    <else>
     4136      <!-- current.os.isunix -->
     4137
     4138      <antcall target="checkout-gnome-lib"/>
     4139      <!--Compilation of gnome-lib happens during ant install, just before configuring (common-src and) build-src-->
     4140     
     4141    </else>
     4142      </if>
    41404143      <else>
    4141     <echo>**** Not preparing gnome-lib:</echo>
    4142     <echo>property checkout.gnomelib.ext in build.properties was not set or was set to false, or OS is not unix.</echo>
    4143       </else>
     4144    <if><bool><istrue value="${current.os.isunix}"/></bool>
     4145      <!-- current.os.isunix and checkout.gnomelib.ext not turned on -->
     4146      <echo>**** Not preparing gnome-lib:</echo>
     4147      <echo>property checkout.gnomelib.ext in build.properties was not set or was set to false.</echo>
     4148    </if>
     4149      </else>     
    41444150    </if>
    41454151  </target>
Note: See TracChangeset for help on using the changeset viewer.