aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/adb-launch-main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/adb-launch-main.sh')
0 files changed, 0 insertions, 0 deletions
f='#n68'>68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387
<?xml version="1.0" encoding="UTF-8"?>

<project name="JOGLCommonStuff" basedir="." default="common.init">

    <description>Common JOGL Stuff</description>

    <fail message="Please build using Ant 1.8.0 or higher.">
        <condition>
            <not>
                <antversion atleast="1.8.0"/>
            </not>
        </condition>
    </fail>

    <!-- Pull in GlueGen cpptasks build file -->
    <property name="gluegen.root" value="../../gluegen" />
    <import file="${gluegen.root}/make/gluegen-cpptasks.xml" />
    <import file="${gluegen.root}/make/jogamp-archivetasks.xml" />
    <import file="${gluegen.root}/make/jogamp-env.xml" />

    <property name="ant-contrib.jar"  value="${gluegen.root}/make/lib/ant-contrib-1.0b3.jar" />

    <condition property="rootrel.build" value="build">
      <not>
          <isset property="rootrel.build"/>
      </not>
    </condition>

    <import file="versions.xml" />

    <!-- ================================================================== -->
    <!-- 
       - Base initialization of properties and detection of operating system.
      -->
    <target name="set.debug">
        <property name="c.compiler.debug" value="true" /> 
        <property name="javacdebug"       value="true" /> 
        <property name="javacdebuglevel"  value="source,lines,vars" /> 
    </target>
    <target name="common.init.debug" depends="set.debug, common.init"/>

    <target name="common.init" depends="jogamp.env.init, gluegen.cpptasks.detect.os" unless="common.init.done">
        <property name="common.init.done" value="true" />

        <!-- Set the project root directory to be up one directory. -->
        <property name="project.root"               value=".." />
        <property name="build"                      value="${project.root}/${rootrel.build}" />
        <property name="src"                        value="${project.root}/src" />
        <property name="lib"                        value="${build}/lib" />
        <property name="jar"                        value="${build}/jar" />

        <property name="all.srcj.path" value="${src}/nativewindow/classes;${src}/jogl/classes;${src}/newt/classes" />
        <!-- No generated classes for Newt at the present time -->
        <property name="all.genj.path" value="${build}/nativewindow/gensrc/classes;${build}/jogl/gensrc/classes" />

        <!-- Set the configuration and build files to this directory. -->
        <property name="make"                       value="." />
        <property name="config"                     value="${make}/config" />
        <property name="stub.includes"              value="stub_includes" /> <!-- NOTE:  this MUST be relative for FileSet -->
        <property name="stub.includes.common"       value="${stub.includes}/gluegen" />

        <tstamp>
             <format property="version.timestamp" pattern="yyyyMMdd"/>
        </tstamp>

        <property file="${build}/artifact.properties"/>
        <property name="jogl.build.number" value="manual"/>
        <property name="jogl.build.id"     value="${version.timestamp}"/>
        <property name="jogl.build.branch" value="master"/>
        <property name="jogl.build.commit" value="manual"/>

        <property name="nativewindow.version" value="${nativewindow_base_version}-b${jogl.build.number}-${version.timestamp}" />
        <property name="jogl.version"         value="${jogl_base_version}-b${jogl.build.number}-${version.timestamp}" />
        <property name="newt.version"         value="${newt_base_version}-b${jogl.build.number}-${version.timestamp}" />

        <property name="archive.name"               value="jogl-${jogl.version}-${os.and.arch}" />
        <property name="archive"                    value="${build}/${archive.name}" />

        <condition property="setup.nodesktop">
            <and>
                <isfalse value="${isWindows}" />
                <isfalse value="${isOSX}" />
                <isfalse value="${isX11}" />
            </and>
        </condition>

        <echo message="setup.nodesktop: ${setup.nodesktop}" />
        <echo message="setup.noAWT: ${setup.noAWT}" />

        <!-- Load the user specified properties file that defines various host
           - specific paths.  The user will be notified if this is does not
           - exist. -->
        <property name="user.properties.file" value="${user.home}/jogl.properties" />
        <property file="${user.properties.file}" />
        <echo message="Loaded ${user.properties.file}." />
        <property file="${user.home}/gluegen.properties" />
        <echo message="Loaded ${user.home}/gluegen.properties." />
        <echo message="antlr.jar=${antlr.jar}" />
        <echo message="junit.jar=${junit.jar}" />

        <!-- Set swt.jar to the correct file for this platform. We point to the debug JARs to allow
             stepping into SWT calls using the accompanying source code zip archives. -->
        <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86_64/swt-debug.jar">
          <istrue value="${isWindowsAMD64}" />
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86/swt-debug.jar">
          <istrue value="${isWindowsX86}" />
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-linux-x86_64/swt-debug.jar">
          <istrue value="${isLinuxAMD64}" />
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-linux-x86/swt-debug.jar">
          <istrue value="${isLinuxX86}" />
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx-x86_64/swt-debug.jar">
          <and>
            <istrue value="${isOSX}" />
            <or>
              <os arch="AMD64" />
              <os arch="x86_64" />
            </or>                
          </and>
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx/swt-debug.jar">
          <and>
            <istrue value="${isOSX}" />
            <or>
              <os arch="i386" />
              <os arch="x86" />
            </or>
          </and>
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
          <istrue value="${isSolarisX86}" />
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
          <istrue value="${isSolarisAMD64}" />
        </condition>
        <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
          <istrue value="${isSolarisSparc}" />
        </condition>
		<condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
          <istrue value="${isSolarisSparcv9}" />
        </condition>
        <echo message="swt.jar=${swt.jar}" />

        <property name="target.sourcelevel" value="1.5" />
        <property name="host.sourcelevel"   value="1.5" />

        <!-- property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" /-->
        <property name="javadoc.link" value="http://download.oracle.com/javase/1.5.0/docs/api/" />

        <!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
        <property name="javacdebug"       value="true" /> 
        <property name="javacdebuglevel"  value="source,lines" /> 
        <!--property name="javacdebuglevel"  value="source,lines,vars" /--> 
        <!-- property name="javac.memorymax"  value="128m" /-->  <!-- I ran out of memory with these .. linux x86_64 6u14 -->
        <property name="javac.memorymax"  value="512m" /> 

        <!-- Names of directories relative to the project root.
             Some of these are used in FileMappers later for dependence information
             and need exact string matching, which is why they use file.separator
             instead of "/". -->

        <!-- NOTE that these require a checked-out GlueGen, etc workspace as a -->
        <!-- sibling of the JOGL workspace. -->
        <property name="gluegen.make"               value="${gluegen.root}/make" />
        <property name="gluegen.build.xml"          value="${gluegen.make}/build.xml" />
        <property name="build.gluegen"              value="${gluegen.root}/${rootrel.build}" />
        <property name="obj.gluegen"                value="${build.gluegen}/obj"/>
        <property name="gluegen.jar"                value="${build.gluegen}/gluegen.jar" />
        <property name="ant.jar"                    value="${ant.home}/lib/ant.jar" />
        <property name="ant-junit.jar"              value="${ant.home}/lib/ant-junit.jar" />

        <property name="nativewindow.make"          value="." />
        <property name="nativewindow.build.xml"     value="${nativewindow.make}/build-nativewindow.xml" />
        <property name="build.nativewindow"         value="${build}/nativewindow" />
        <property name="obj.nativewindow"           value="${build.nativewindow}/obj"/>

        <property name="jogl.make"                  value="." />
        <property name="jogl.build.xml"             value="${jogl.make}/build-jogl.xml" />
        <property name="build.jogl"                 value="${build}/jogl" />
        <property name="obj.jogl"                   value="${build.jogl}/obj"/>

        <property name="newt.make"                  value="." />
        <property name="newt.build.xml"             value="${newt.make}/build-newt.xml" />
        <property name="build.newt"                 value="${build}/newt" />
        <property name="obj.newt"                   value="${build.newt}/obj"/>

        <property name="results.test"              value="${build}/test/results" />
        <property name="build.test"                value="${build}/test/build" />
        <property name="obj.test"                  value="${build.test}/obj"/>

        <condition property="obj.custom" value="${custom.libdir}${path.separator}" else="">
          <isset property="custom.libdir"/>
        </condition>

        <property name="obj.all.paths"              value="${obj.custom}${obj.gluegen}${path.separator}${obj.nativewindow}${path.separator}${obj.jogl}${path.separator}${obj.newt}${path.separator}${obj.test}" />

        <path id="gluegen.classpath">
          <pathelement location="${gluegen.jar}" />
          <pathelement location="${antlr.jar}" />
        </path>

        <property name="gluegen-gl.jar"             value="${build.jogl}/gluegen-gl.jar" />

        <path id="gluegen-gl.classpath">
          <pathelement location="${gluegen.jar}" />
          <pathelement location="${gluegen-gl.jar}" />
        </path>

        <!-- JavaSE combinations -->
        <property name="gluegen-rt.jar"             value="${build.gluegen}/gluegen-rt.jar" />
        <property name="jogl.test.jar"              value="${build.jogl}/jogl.test.jar"/>

        <!-- JavaSE combinations . AWT -->
        <property name="nativewindow.all.jar"       value="${build.nativewindow}/nativewindow.all.jar" />
        <property name="jogl.all.jar"               value="${build.jogl}/jogl.all.jar" />
        <property name="newt.all.jar"               value="${build.newt}/newt.all.jar" />
        <property name="newt.event.jar"             value="${build.newt}/newt.event.jar" />

        <!-- JavaSE combinations . NO.AWT -->
        <property name="nativewindow.all-noawt.jar" value="${build.nativewindow}/nativewindow.all-noawt.jar" />
        <property name="jogl.all-noawt.jar"         value="${build.jogl}/jogl.all-noawt.jar" />
        <property name="newt.all-noawt.jar"         value="${build.newt}/newt.all-noawt.jar" />

        <path id="swt_gluegen.classpath">
            <pathelement location="${gluegen-rt.jar}" />
            <pathelement location="${swt.jar}" />
        </path>

        <path id="nativewindow_gluegen.classpath">
            <pathelement location="${gluegen-rt.jar}" />
            <pathelement location="${swt.jar}" />
            <pathelement location="${nativewindow.all.jar}" />
        </path>

        <path id="nativewindow_gluegen_jogl.classpath">
            <pathelement location="${gluegen-rt.jar}" />
            <pathelement location="${swt.jar}" />
            <pathelement location="${nativewindow.all.jar}" />
            <pathelement location="${jogl.all.jar}" />
        </path>

        <path id="jogl_newt_all.classpath">
            <pathelement location="${gluegen-rt.jar}" />
            <pathelement location="${swt.jar}" />
            <pathelement location="${nativewindow.all.jar}" />
            <pathelement location="${jogl.all.jar}" />
            <pathelement location="${newt.all.jar}" />
        </path>

        <path id="jogl_newt_all-noawt.classpath">
            <pathelement location="${gluegen-rt.jar}" />
            <pathelement location="${swt.jar}" />