make/netbeans/common/shared.xml

Print this page
rev 6406 : 8006709: Add minimal support of MacOSX platform for NetBeans Projects
Summary: Adds support for MacOSX platform and architecture detection. Other minor updates (-source/target 1.8)
Reviewed-by: duke


  68         <!-- You can override this target in the ../build.xml file. -->
  69     </target>
  70     <target name="-init" description="Initial configuration used by everything else." depends="-pre-init,-first-init,-project-init,-post-init"/>
  71     <target name="-project-init" depends="-warn-about-bootstrap.jdk">
  72         <property name="root" location="../../.."/>
  73         <property file="../common/architectures/name-${os.name}.properties"/>
  74         <property name="platform" value="windows"/>
  75         <property file="../common/architectures/arch-${os.arch}.properties"/>
  76         <property name="arch" value="${os.arch}"/>
  77         <echo level="verbose">System configuration claims architecture is ${platform}-${arch}</echo>
  78         <property name="build.dir" location="${root}/build/${platform}-${arch}"/>
  79         <property name="bin.dir" location="${build.dir}/bin"/>
  80         <property name="make.dir" location="${root}/make"/>
  81         <property name="gensrc.dir" location="${build.dir}/gensrc"/>
  82         <property name="classes.dir" location="${build.dir}/classes"/>
  83         <property name="jtreg.dir" location="${build.dir}/jtreg/${ant.project.name}"/>
  84         <property name="dist.dir" value="${root}/dist"/>
  85         <property name="includes" value="(nothing)"/>
  86         <property name="excludes" value=""/>
  87         <property name="javadoc.dir" location="${build.dir}/javadoc/${ant.project.name}"/>



  88         <condition property="os.linux">
  89             <os name="linux"/>
  90         </condition>
  91         <condition property="os.solaris">
  92             <os name="SunOS"/>
  93         </condition>
  94         <condition property="osfamily.unix">
  95             <os family="unix"/>
  96         </condition>
  97         <condition property="os.windows">
  98             <os family="windows"/>
  99         </condition>
 100         <condition property="platform.src.dir" value="${root}/src/solaris/classes">
 101             <os family="unix"/>
 102         </condition>
 103         <condition property="platform.src.dir" value="${root}/src/windows/classes">
 104             <os family="windows"/>
 105         </condition>
 106         <property name="share.src.dir" value="${root}/src/share/classes"/>
 107         <property name="bootstrap.jdk" location="${fallback.jdk}"/>


 109         <condition property="bootstrap.javac" value="${bootstrap.jdk}/bin/javac">
 110             <available file="${bootstrap.jdk}/bin/javac"/>
 111         </condition>
 112         <condition property="bootstrap.javac" value="${bootstrap.jdk}\bin\javac.exe">
 113             <available file="${bootstrap.jdk}\bin\javac.exe"/>
 114         </condition>
 115         <fail unless="bootstrap.javac">${bootstrap.jdk} does not appear to be a functional JDK; no javac found.</fail>
 116         <property name="javac.options" value="-Xlint"/> <!-- default, can be overridden per user or per project -->
 117         <property name="javac.debug" value="true"/>  <!-- default, can be overridden per user or per project -->
 118         <property name="javac.debuglevel" value="lines,vars,source"/>  <!-- default, can be overridden per user or per project -->
 119         <macrodef name="jdk-javac">
 120             <attribute name="srcdir"/>
 121             <attribute name="includes" default="${includes}"/>
 122             <attribute name="excludes" default="${excludes}"/>
 123             <attribute name="classesdir" default="${classes.dir}"/>
 124             <sequential>
 125                 <mkdir dir="@{classesdir}"/>
 126                 <javac srcdir="@{srcdir}" includes="@{includes}" excludes="@{excludes}" sourcepath="" 
 127                     destdir="@{classesdir}" fork="true" executable="${bootstrap.javac}"
 128                     debug="${javac.debug}" debuglevel="${javac.debuglevel}">
 129                     <compilerarg value="-source"/>
 130                     <compilerarg value="1.5"/>
 131                     <compilerarg value="-target"/>
 132                     <compilerarg value="1.6"/> <!-- for usability of JDK 6 as snapshot; change to 1.7 when JSR 294 put back -->
 133                     <!-- Mandatory for compiling partial JDK sources against a snapshot; should NEVER be used for any other purpose: -->
 134                     <compilerarg value="-XDignore.symbol.file=true"/>
 135                     <compilerarg line="${javac.options}"/>
 136                 </javac>
 137             </sequential>
 138         </macrodef>
 139         <available property="have.closed.src" file="${root}/src/closed/share/classes" type="dir"/>
 140     </target>
 141 
 142     <target name="-pre-compile">
 143         <!-- Empty placeholder for easier customization. -->
 144         <!-- You can override this target in the ../build.xml file. -->
 145     </target>
 146     <target name="-post-compile">
 147         <!-- Empty placeholder for easier customization. -->
 148         <!-- You can override this target in the ../build.xml file. -->
 149     </target>
 150     
 151     <target name="build" depends="-init,-pre-compile,-build-ant,-build-make,-post-compile" description="Build sources."/>
 152     <target name="-do-build-ant">




  68         <!-- You can override this target in the ../build.xml file. -->
  69     </target>
  70     <target name="-init" description="Initial configuration used by everything else." depends="-pre-init,-first-init,-project-init,-post-init"/>
  71     <target name="-project-init" depends="-warn-about-bootstrap.jdk">
  72         <property name="root" location="../../.."/>
  73         <property file="../common/architectures/name-${os.name}.properties"/>
  74         <property name="platform" value="windows"/>
  75         <property file="../common/architectures/arch-${os.arch}.properties"/>
  76         <property name="arch" value="${os.arch}"/>
  77         <echo level="verbose">System configuration claims architecture is ${platform}-${arch}</echo>
  78         <property name="build.dir" location="${root}/build/${platform}-${arch}"/>
  79         <property name="bin.dir" location="${build.dir}/bin"/>
  80         <property name="make.dir" location="${root}/make"/>
  81         <property name="gensrc.dir" location="${build.dir}/gensrc"/>
  82         <property name="classes.dir" location="${build.dir}/classes"/>
  83         <property name="jtreg.dir" location="${build.dir}/jtreg/${ant.project.name}"/>
  84         <property name="dist.dir" value="${root}/dist"/>
  85         <property name="includes" value="(nothing)"/>
  86         <property name="excludes" value=""/>
  87         <property name="javadoc.dir" location="${build.dir}/javadoc/${ant.project.name}"/>
  88         <condition property="os.macosx">
  89             <os family="mac"/>
  90         </condition>
  91         <condition property="os.linux">
  92             <os name="linux"/>
  93         </condition>
  94         <condition property="os.solaris">
  95             <os name="SunOS"/>
  96         </condition>
  97         <condition property="osfamily.unix">
  98             <os family="unix"/>
  99         </condition>
 100         <condition property="os.windows">
 101             <os family="windows"/>
 102         </condition>
 103         <condition property="platform.src.dir" value="${root}/src/solaris/classes">
 104             <os family="unix"/>
 105         </condition>
 106         <condition property="platform.src.dir" value="${root}/src/windows/classes">
 107             <os family="windows"/>
 108         </condition>
 109         <property name="share.src.dir" value="${root}/src/share/classes"/>
 110         <property name="bootstrap.jdk" location="${fallback.jdk}"/>


 112         <condition property="bootstrap.javac" value="${bootstrap.jdk}/bin/javac">
 113             <available file="${bootstrap.jdk}/bin/javac"/>
 114         </condition>
 115         <condition property="bootstrap.javac" value="${bootstrap.jdk}\bin\javac.exe">
 116             <available file="${bootstrap.jdk}\bin\javac.exe"/>
 117         </condition>
 118         <fail unless="bootstrap.javac">${bootstrap.jdk} does not appear to be a functional JDK; no javac found.</fail>
 119         <property name="javac.options" value="-Xlint"/> <!-- default, can be overridden per user or per project -->
 120         <property name="javac.debug" value="true"/>  <!-- default, can be overridden per user or per project -->
 121         <property name="javac.debuglevel" value="lines,vars,source"/>  <!-- default, can be overridden per user or per project -->
 122         <macrodef name="jdk-javac">
 123             <attribute name="srcdir"/>
 124             <attribute name="includes" default="${includes}"/>
 125             <attribute name="excludes" default="${excludes}"/>
 126             <attribute name="classesdir" default="${classes.dir}"/>
 127             <sequential>
 128                 <mkdir dir="@{classesdir}"/>
 129                 <javac srcdir="@{srcdir}" includes="@{includes}" excludes="@{excludes}" sourcepath="" 
 130                     destdir="@{classesdir}" fork="true" executable="${bootstrap.javac}"
 131                     debug="${javac.debug}" debuglevel="${javac.debuglevel}">




 132                     <!-- Mandatory for compiling partial JDK sources against a snapshot; should NEVER be used for any other purpose: -->
 133                     <compilerarg value="-XDignore.symbol.file=true"/>
 134                     <compilerarg line="${javac.options}"/>
 135                 </javac>
 136             </sequential>
 137         </macrodef>
 138         <available property="have.closed.src" file="${root}/src/closed/share/classes" type="dir"/>
 139     </target>
 140 
 141     <target name="-pre-compile">
 142         <!-- Empty placeholder for easier customization. -->
 143         <!-- You can override this target in the ../build.xml file. -->
 144     </target>
 145     <target name="-post-compile">
 146         <!-- Empty placeholder for easier customization. -->
 147         <!-- You can override this target in the ../build.xml file. -->
 148     </target>
 149     
 150     <target name="build" depends="-init,-pre-compile,-build-ant,-build-make,-post-compile" description="Build sources."/>
 151     <target name="-do-build-ant">