Changeset 35514


Ignore:
Timestamp:
2021-09-28T19:26:35+13:00 (3 years ago)
Author:
anupama
Message:

Now that checkout.gnomelib.ext is set to true by default in build.properties.svn, make sure that when on Windows, it's not checked out nor compile flags set for it, nor any attempt to compile it up.

File:
1 edited

Legend:

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

    r35459 r35514  
    718718
    719719  <!-- if we're told to work with gnome-lib, or if there's a gnome-lib-minimal that the user
    720        has placed in gs2build/ext, then compile gs2build after sourcing gnome-lib environment -->
     720       has placed in gs2build/ext, then compile gs2build after sourcing gnome-lib environment.
     721       But don't do anything with gnomelib on windows.
     722  -->
    721723  <condition property="opt.gnomelibext.arg"
    722724         value="--enable-gnome-lib-ext" else=" ">
    723     <or>
    724       <available file="${gs2build.home}/ext/gnome-lib-minimal" type="dir"/>
    725       <istrue value="${use.gnomelib.ext}"/>
    726       <istrue value="${checkout.gnomelib.ext}"/>
    727     </or>
     725    <and>
     726      <istrue value="${current.os.isunix}"/>
     727      <or>
     728    <available file="${gs2build.home}/ext/gnome-lib-minimal" type="dir"/>
     729    <istrue value="${use.gnomelib.ext}"/>
     730    <istrue value="${checkout.gnomelib.ext}"/>
     731      </or>
     732    </and>   
    728733   </condition>
    729734
     
    40604065
    40614066
    4062   <!-- Compile up gnome-lib src folder if: checkout.gnomelib.ext is turned on, and if not using the binary
    4063        version (gnome-lib-minimal), and if the gnome-lib src folder is not already compiled up. -->
    4064   <target name="compile-gnome-lib" if="checkout.gnomelib.ext">
     4067  <!-- If not on windows, then compile up gnome-lib src folder if:
     4068       checkout.gnomelib.ext is turned on,
     4069       and if not using the binary version (gnome-lib-minimal),
     4070       and if the gnome-lib src folder is not already compiled up. -->
     4071  <target name="compile-gnome-lib" if="checkout.gnomelib.ext" unless="current.os.iswindows">
    40654072
    40664073    <!-- http://stackoverflow.com/questions/3290307/sourcing-a-shell-profile-in-an-ant-build-file
     
    41224129    <if>
    41234130      <bool>
    4124     <istrue value="${checkout.gnomelib.ext}"/>
     4131    <and>
     4132      <istrue value="${checkout.gnomelib.ext}"/>
     4133      <istrue value="${current.os.isunix}"/>
     4134    </and>
    41254135      </bool>
    41264136
     
    41304140      <else>
    41314141    <echo>**** Not preparing gnome-lib:</echo>
    4132     <echo>property checkout.gnomelib.ext in build.properties was not set or was set to false</echo>
     4142    <echo>property checkout.gnomelib.ext in build.properties was not set or was set to false, or OS is not unix.</echo>
    41334143      </else>
    41344144    </if>
Note: See TracChangeset for help on using the changeset viewer.