Skip to content

Commit

Permalink
initialize from svn at lightzone/branches/3.8.x Revision 10413
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKast committed Dec 22, 2012
1 parent 524e749 commit 003df0a
Show file tree
Hide file tree
Showing 3,975 changed files with 915,143 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
24 changes: 24 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2005-2011, Fabio Riccardi
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name "LightZone" nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
211 changes: 211 additions & 0 deletions lightcrafts/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
<project name="lightcrafts" default="build">

<tstamp/>

<!--===== Properties =====================================================-->

<property file="resources/com/lightcrafts/utils/resources/Version.properties"/>

<property name="common-jar" value="products/lightcrafts.jar"/>

<property name="lcjai-jar" value="products/lcjai.jar"/>

<exec executable="cat" vmlauncher="false" failonerror="true"
outputproperty="app-version">
<arg value="version.txt"/>
</exec>

<condition property="UNIVERSAL" value="1" else="0">
<isset property="UNIVERSAL"/>
</condition>
<condition property="USE_ICC" value="1" else="0">
<isset property="USE_ICC"/>
</condition>

<!--===== Application build ==============================================-->

<condition property="jai-classpath"
value="../windows/lib/mlibwrapper_jai.jar">
<not>
<os family="mac"/>
</not>
</condition>

<target name="javac">
<exec executable="make" dir="products" failonerror="true"
vmlauncher="false"/>

<mkdir dir="extbuild"/>
<javac srcdir="extsrc" destdir="extbuild" source="1.5" target="1.5"
debug="true" classpath="${jai-classpath}"/>

<mkdir dir="build"/>
<javac destdir="build" source="1.5" target="1.5" debug="true">
<src path="src"/>
<classpath>
<pathelement path="extbuild"/>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>

<target name="coprocesses">
<exec executable="make" dir="coprocesses" failonerror="true"
vmlauncher="false">
<arg value="USE_ICC=${USE_ICC}"/>
<arg value="UNIVERSAL=${UNIVERSAL}"/>
</exec>
</target>

<target name="revision">
<mkdir dir="build/com/lightcrafts/utils/resources"/>
<exec executable="svn">
<arg value="info"/>
<redirector output="build/com/lightcrafts/utils/resources/Revision"
logError="true"/>
</exec>
<copy file="version.txt"
tofile="build/com/lightcrafts/utils/resources/Version"/>
</target>

<target name="resources" depends="revision">
<copy todir="build">
<fileset dir="resources" excludes=".svn"/>
<fileset dir="locale" excludes=".svn"/>
</copy>
</target>

<target name="jni">
<exec executable="make" dir="jnisrc" failonerror="true" vmlauncher="false">
<arg value="USE_ICC=${USE_ICC}"/>
<arg value="UNIVERSAL=${UNIVERSAL}"/>
</exec>
</target>

<target name="build" depends="javac, coprocesses, resources, jni"/>

<!--===== Make a jar file ================================================-->

<target name="jar" depends="build">
<delete file="${common-jar}"/>
<jar jarfile="${common-jar}">
<fileset dir="build"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="com.lightcrafts.app.Application"/>
<attribute name="Implementation-Title" value="${app-name}"/>
<attribute name="Implementation-Vendor" value="Light Crafts, Inc."/>
<attribute name="Implementation-Version"
value="${app-version} ${TODAY}"/>
</manifest>
</jar>

<delete file="${lcjai-jar}"/>
<jar jarfile="${lcjai-jar}">
<fileset dir="extbuild"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Implementation-Title" value="${app-name}"/>
<attribute name="Implementation-Vendor" value="Light Crafts, Inc."/>
<attribute name="Implementation-Version"
value="${app-version} ${TODAY}"/>
</manifest>
</jar>
</target>

<target name="check-for-jar">
<condition property="jar-exists">
<available file="${common-jar}"/>
</condition>
</target>

<target name="jar-if-necessary" depends="check-for-jar" unless="jar-exists">
<antcall target="jar"/>
</target>

<!--===== Make test ======================================================-->

<target name="test" depends="build">
<ant dir="test" target="build"/>
<ant dir="test" target="docs-test"/>
</target>

<!--===== Run the application ============================================-->

<target name="run" depends="jar-if-necessary">
<java classname="com.lightcrafts.app.Application" dir="products"
failonerror="true" fork="true" maxmemory="768m">
<classpath>
<fileset dir="products">
<include name="*.jar"/>
</fileset>
</classpath>
<sysproperty key="java.library.path" value="."/>
<sysproperty key="lightcrafts.debug" value="1"/>
</java>
</target>

<!-- Same as the "run" target, but with the test classes in the classpath: -->
<target name="run-test" depends="jar-if-necessary">
<java classname="com.lightcrafts.app.Application" dir="products"
failonerror="true" fork="true" maxmemory="768m">
<classpath>
<fileset dir="products">
<include name="*.jar"/>
</fileset>
<pathelement path="test/build"/>
</classpath>
<assertions>
<enable/>
</assertions>
<sysproperty key="java.library.path" value="."/>
<sysproperty key="lightcrafts.debug" value="1"/>
<sysproperty key="com.sun.management.jmxremote" value=""/>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>
</java>
</target>

<!--===== Javadoc ========================================================-->

<target name="javadoc">
<mkdir dir="doc"/>
<javadoc destdir="doc">
<fileset dir="src"/>
</javadoc>
</target>

<!--===== Clean up =======================================================-->

<target name="clean-up">
<delete dir="build"/>
<delete dir="extbuild"/>
<exec executable="make" dir="jnisrc">
<arg value="${clean-method}"/>
</exec>
<exec executable="make" dir="coprocesses">
<arg value="${clean-method}"/>
</exec>
<exec executable="make" dir="products">
<arg value="${clean-method}"/>
</exec>
<ant dir="test" target="${clean-method}"/>
</target>

<target name="distclean">
<antcall target="clean-up">
<param name="clean-method" value="distclean"/>
</antcall>
</target>
<target name="clean" depends="distclean"/>

<target name="mostlyclean">
<antcall target="clean-up">
<param name="clean-method" value="mostlyclean"/>
</antcall>
</target>

</project>
<!-- vim:set et sw=2 ts=2: -->
3 changes: 3 additions & 0 deletions lightcrafts/coprocesses/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include ../mk/recurse.mk

# vim:set noet sw=8 ts=8:
18 changes: 18 additions & 0 deletions lightcrafts/coprocesses/dcraw/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
HIGH_PERFORMANCE:= 1
#USE_ICC_HERE:= 1

TARGET_BASE:= dcraw

# Uncomment to compile in debug mode.
#DEBUG:= true

EXEC_EXTRA_DEFINES:= -DNO_JPEG -DNO_LCMS
EXEC_LINUX_DEFINES:= -Dfgetc=getc_unlocked
EXEC_MACOSX_DEFINES:= $(EXEC_LINUX_DEFINES)
EXEC_WINDOWS_DEFINES:= -DDJGPP
EXEC_LINUX_LINK:= -lm

ROOT:= ../../..
include $(ROOT)/lightcrafts/mk/executable.mk

# vim:set noet sw=8 ts=8:
Loading

0 comments on commit 003df0a

Please sign in to comment.