| |
|
| org.apache.jk.ant.SoTask
All known Subclasses: org.apache.jk.ant.compilers.CompilerAdapter, org.apache.jk.ant.compilers.LinkerAdapter,
SoTask | public class SoTask extends Task (Code) | | Task to generate a .so file, similar with ( or using ) libtool.
I hate libtool, so long term I would like to replace most of it
with decent java code. Short term it'll just use libtool and
hide some of the ugliness.
arguments:
author: Costin Manolache author: Mike Anderson author: Ignacio J. Ortega |
Constructor Summary | |
public | SoTask() |
debug | protected int debug(Code) | | |
depends | protected Path depends(Code) | | |
includes | protected PatternSet includes(Code) | | |
optG | protected boolean optG(Code) | | |
optWgcc | protected boolean optWgcc(Code) | | |
optimize | protected boolean optimize(Code) | | |
profile | protected boolean profile(Code) | | |
streamhandler | protected ExecuteStreamHandler streamhandler(Code) | | |
addAltSoFile | public void addAltSoFile(JkData altSo)(Code) | | Add an alternate target since some platforms (NetWare) have file name
limitations.
|
addDef | public void addDef(Def var)(Code) | | Add a -D option. Note that each define has
an if/unless attribute
|
addExport | public void addExport(JkData exp)(Code) | | Add an export file/symbol for NetWare or win32 platform
|
addImport | public void addImport(JkData imp)(Code) | | Add an import file/symbol for NetWare or win32 platform
|
addLinkOpt | public void addLinkOpt(JkData option)(Code) | | Add a link option for NetWare or win32 platform
|
addNLMModule | public void addNLMModule(JkData module)(Code) | | Add an NLMModule dependancy
|
addResource | public void addResource(JkData res)(Code) | | Add an resource file on win32 platform
|
addSrc | public void addSrc(FileSet fl)(Code) | | Source files ( .c )
a nested src element. |
checkDepend | public boolean checkDepend(long oldestO, File oldestOFile)(Code) | | If any file declared in element has changed, we'll do
a full rebuild.
|
closeStreamHandler | public void closeStreamHandler()(Code) | | |
createDepends | public Path createDepends()(Code) | | General dependencies. If any of the files is modified
( i.e. is newer than the oldest .o ) we'll recompile everything.
This can be used for headers ( until we add support for makedepend)
or any important file that could invalidate the build.
Another example is checking httpd or apxs ( if a new version
was installed, maybe some flags or symbols changed )
|
createIncludes | public PatternSet createIncludes()(Code) | | Include files
|
createLibs | public Path createLibs()(Code) | | Libraries ( .a, .so or .dll ) files to link to.
|
createStreamHandler | public void createStreamHandler() throws BuildException(Code) | | |
execute | public void execute() throws BuildException(Code) | | |
execute | public int execute(Commandline cmd) throws BuildException(Code) | | |
findSourceFiles | public void findSourceFiles()(Code) | | Find all source files declared with elements
|
setBuildDir | public void setBuildDir(File s)(Code) | | Directory where intermediary objects will be
generated
|
setDebug | public void setDebug(boolean b)(Code) | | Add debug information
|
setExtension | public void setExtension(String s)(Code) | | Set the extension for the target. This will depend on the platform
we are compiling for.
|
setGccWarn | public void setGccWarn(boolean b)(Code) | | Gcc warnings
|
setModule | public void setModule(String modName)(Code) | | The name of the target file.
(XXX including extension - this should be automatically added )
|
setOptimize | public void setOptimize(boolean b)(Code) | | Add debug information
|
setProfile | public void setProfile(boolean b)(Code) | | Add profiling information
|
setSoDir | public void setSoDir(String s)(Code) | | Directory where the .so file will be generated
|
setTarget | public void setTarget(String s)(Code) | | Set the target for this compilation. Don't include any
directory or suffix ( not sure about prefix - we may want
to add lib automatically for unix, and nothing on win/etc ? ).
|
setTaskDebug | public void setTaskDebug(int i)(Code) | | Debug the task
|
|
|
|