AntScriptGenerator
to create Ant build files that invoke the compiler toolchain to create the shared libraries.
| Modifier and Type | Field and Description |
|---|---|
| public String[] | androidABIs
List of ABIs we wish to build for Android. |
| public String[] | androidAndroidMk
Extra lines which will be added to Android's Android.mk |
| public String[] | androidApplicationMk
Extra lines which will be added to Android's Application.mk |
| public Architecture | architecture
whether this is an x86, ARM or RISC-V build, not used for Android |
| public String | archiver
the command to use when archiving files. |
| public String | archiverFlags
the flags passed to the archiver, must not be null |
| public Architecture. | bitness
whether this is a 32-bit, 64-bit or 128-bit build, not used for Android |
| public String | buildFileName
the name of the generated build file for this target, defaults to "build-${target}(64)?.xml", must not be null |
| public BooleanSupplier | canBuild
Condition to check if build this target |
| public String | cCompiler
the compiler to use when compiling c files. |
| public String[] | cExcludes
the C files and directories to be excluded from the build, accepts Ant path format, must not be null |
| public String | cFlags
the flags passed to the C compiler, must not be null |
| public String[] | cIncludes
the C files and directories to be included in the build, accepts Ant path format, must not be null |
| public String | compilerPrefix
prefix for the compiler (g++, gcc), useful for cross compilation, must not be null |
| public String | compilerSuffix
suffix for the compiler (g++, gcc), useful for cross compilation, must not be null |
| public String | cppCompiler
the compiler to use when compiling c++ files. |
| public String[] | cppExcludes
the C++ files and directories to be excluded from the build, accepts Ant path format, must not be null |
| public String | cppFlags
the flags passed to the C++ compiler, must not be null |
| public String[] | cppIncludes
the C++ files and directories to be included in the build, accepts Ant path format, must not be null |
| public boolean | excludeFromMasterBuildFile
whether to exclude this build target from the master build file, useful for debugging |
| public String[] | headerDirs
the directories containing headers for the build, must not be null |
| public String | libName
The name used for the library file. |
| public String | libraries
the libraries to be linked to the output, specify via e.g. -ldinput -ldxguid etc. |
| public String | linkerFlags
the flags passed to the linker, must not be null |
| public String | minIOSVersion
Minimum supported iOS version, will default to iOS 11 |
| public Os | os
the target operating system |
| public String | osFileName
The name used for folders for this specific target. |
| public String | postCompileTask
Ant Xml executed in a target after compilation |
| public String | preCompileTask
Ant XML executed in a target before compilation |
| public String | xcframeworkBundleIdentifier
ios framework bundle identifier, if null an automatically generated bundle identifier will be used |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public static BuildTarget | newDefaultTarget(Os type, boolean is64Bit)
Deprecated
Use
Creates a new default BuildTarget for the given OS, using common default values.
newDefaultTarget method.
|
| public static BuildTarget | newDefaultTarget(Os type, Architecture.
Creates a new default BuildTarget for the given OS, using common default values. |
| public static BuildTarget | newDefaultTarget(Os type, boolean is64Bit, boolean isARM)
Deprecated
Use
Creates a new default BuildTarget for the given OS, using common default values.
newDefaultTarget method.
|
| public static BuildTarget | newDefaultTarget(Os type, Architecture.
Creates a new default BuildTarget for the given OS, using common default values. |
| androidABIs | back to summary |
|---|---|
| public String[] androidABIs List of ABIs we wish to build for Android. Defaults to all available in current NDK. https://developer.android.com/ndk/guides/application_mk#app_abi | |
| androidAndroidMk | back to summary |
|---|---|
| public String[] androidAndroidMk Extra lines which will be added to Android's Android.mk | |
| androidApplicationMk | back to summary |
|---|---|
| public String[] androidApplicationMk Extra lines which will be added to Android's Application.mk | |
| architecture | back to summary |
|---|---|
| public Architecture architecture whether this is an x86, ARM or RISC-V build, not used for Android | |
| archiver | back to summary |
|---|---|
| public String archiver the command to use when archiving files. Usually ar, must not be null | |
| archiverFlags | back to summary |
|---|---|
| public String archiverFlags the flags passed to the archiver, must not be null | |
| bitness | back to summary |
|---|---|
| public Architecture. whether this is a 32-bit, 64-bit or 128-bit build, not used for Android | |
| buildFileName | back to summary |
|---|---|
| public String buildFileName the name of the generated build file for this target, defaults to "build-${target}(64)?.xml", must not be null | |
| canBuild | back to summary |
|---|---|
| public BooleanSupplier canBuild Condition to check if build this target | |
| cCompiler | back to summary |
|---|---|
| public String cCompiler the compiler to use when compiling c files. Usually gcc or clang, must not be null | |
| cExcludes | back to summary |
|---|---|
| public String[] cExcludes the C files and directories to be excluded from the build, accepts Ant path format, must not be null | |
| cFlags | back to summary |
|---|---|
| public String cFlags the flags passed to the C compiler, must not be null | |
| cIncludes | back to summary |
|---|---|
| public String[] cIncludes the C files and directories to be included in the build, accepts Ant path format, must not be null | |
| compilerPrefix | back to summary |
|---|---|
| public String compilerPrefix prefix for the compiler (g++, gcc), useful for cross compilation, must not be null | |
| compilerSuffix | back to summary |
|---|---|
| public String compilerSuffix suffix for the compiler (g++, gcc), useful for cross compilation, must not be null | |
| cppCompiler | back to summary |
|---|---|
| public String cppCompiler the compiler to use when compiling c++ files. Usually g++ or clang++, must not be null | |
| cppExcludes | back to summary |
|---|---|
| public String[] cppExcludes the C++ files and directories to be excluded from the build, accepts Ant path format, must not be null | |
| cppFlags | back to summary |
|---|---|
| public String cppFlags the flags passed to the C++ compiler, must not be null | |
| cppIncludes | back to summary |
|---|---|
| public String[] cppIncludes the C++ files and directories to be included in the build, accepts Ant path format, must not be null | |
| excludeFromMasterBuildFile | back to summary |
|---|---|
| public boolean excludeFromMasterBuildFile whether to exclude this build target from the master build file, useful for debugging | |
| headerDirs | back to summary |
|---|---|
| public String[] headerDirs the directories containing headers for the build, must not be null | |
| libName | back to summary |
|---|---|
| public String libName The name used for the library file. This is a full file name, including file extension. Default is platform specific. E.g. "lib{sharedLibName}64.so" | |
| libraries | back to summary |
|---|---|
| public String libraries the libraries to be linked to the output, specify via e.g. -ldinput -ldxguid etc. | |
| linkerFlags | back to summary |
|---|---|
| public String linkerFlags the flags passed to the linker, must not be null | |
| minIOSVersion | back to summary |
|---|---|
| public String minIOSVersion Minimum supported iOS version, will default to iOS 11 | |
| os | back to summary |
|---|---|
| public Os os the target operating system | |
| osFileName | back to summary |
|---|---|
| public String osFileName The name used for folders for this specific target. Defaults to "${target}(64)" | |
| postCompileTask | back to summary |
|---|---|
| public String postCompileTask Ant Xml executed in a target after compilation | |
| preCompileTask | back to summary |
|---|---|
| public String preCompileTask Ant XML executed in a target before compilation | |
| xcframeworkBundleIdentifier | back to summary |
|---|---|
| public String xcframeworkBundleIdentifier ios framework bundle identifier, if null an automatically generated bundle identifier will be used | |
| BuildTarget | back to summary |
|---|---|
| public BuildTarget(Os targetType, Architecture. Creates a new build target. See members of this class for a description of the parameters. | |
| getBuildFilename | back to summary |
|---|---|
| public String getBuildFilename() | |
| getSharedLibFilename | back to summary |
|---|---|
| public String getSharedLibFilename(String sharedLibName) | |
| getTargetFolder | back to summary |
|---|---|
| public String getTargetFolder() | |
| newDefaultTarget | back to summary |
|---|---|
| public static BuildTarget newDefaultTarget(Os type, boolean is64Bit)
Deprecated Use Creates a new default BuildTarget for the given OS, using common default values.
| |
| newDefaultTarget | back to summary |
|---|---|
| public static BuildTarget newDefaultTarget(Os type, Architecture. Creates a new default BuildTarget for the given OS, using common default values. | |
| newDefaultTarget | back to summary |
|---|---|
| public static BuildTarget newDefaultTarget(Os type, boolean is64Bit, boolean isARM)
Deprecated Use Creates a new default BuildTarget for the given OS, using common default values.
| |
| newDefaultTarget | back to summary |
|---|---|
| public static BuildTarget newDefaultTarget(Os type, Architecture. Creates a new default BuildTarget for the given OS, using common default values. | |