diff options
| author | J08nY | 2018-01-23 17:31:15 +0100 |
|---|---|---|
| committer | J08nY | 2018-01-23 17:31:15 +0100 |
| commit | cb6c6b8b1274fe5a340c4317a4b015ea0ef15396 (patch) | |
| tree | 864a54dcdf07da33cd139312c8b0ee693e1a0eff /build-standalone.xml | |
| parent | 6c46a27a52854aee24f7a37e74002bd6f4485723 (diff) | |
| parent | c581e39e539e6dadb49d9f83f563ab2b375f6e0b (diff) | |
| download | ECTester-0.2.0.tar.gz ECTester-0.2.0.tar.zst ECTester-0.2.0.zip | |
Merge branch 'devel'v0.2.0
Diffstat (limited to 'build-standalone.xml')
| -rw-r--r-- | build-standalone.xml | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/build-standalone.xml b/build-standalone.xml new file mode 100644 index 0000000..dcfb1f3 --- /dev/null +++ b/build-standalone.xml @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- You may freely edit this file. See commented blocks below for --> +<!-- some examples of how to customize the build. --> +<!-- (If you delete it and reopen the project it will be recreated.) --> +<!-- By default, only the Clean and Build commands use this build script. --> +<!-- Commands such as Run, Debug, and Test only use this build script if --> +<!-- the Compile on Save feature is turned off for the project. --> +<!-- You can turn off the Compile on Save (or Deploy on Save) setting --> +<!-- in the project's Project Properties dialog box.--> +<project name="ECTesterStandalone" default="default" basedir="."> + <description>Builds, tests, and runs the project ECTesterStandalone.</description> + <import file="nbproject/standalone/build-impl.xml"/> + <import file="nbproject/dist-build.xml"/> + <!-- + + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: + + -pre-init: called before initialization of project properties + -post-init: called after initialization of project properties + -pre-compile: called before javac compilation + -post-compile: called after javac compilation + -pre-compile-single: called before javac compilation of single file + -post-compile-single: called after javac compilation of single file + -pre-compile-test: called before javac compilation of JUnit tests + -post-compile-test: called after javac compilation of JUnit tests + -pre-compile-test-single: called before javac compilation of single JUnit test + -post-compile-test-single: called after javac compilation of single JUunit test + -pre-jar: called before JAR building + -post-jar: called after JAR building + -post-clean: called after cleaning build products + + (Targets beginning with '-' are not intended to be called on their own.) + + Example of inserting an obfuscator after compilation could look like this: + + <target name="-post-compile"> + <obfuscate> + <fileset dir="${build.classes.dir}"/> + </obfuscate> + </target> + + For list of available properties check the imported + nbproject/build-impl.xml file. + + + Another way to customize the build is by overriding existing main targets. + The targets of interest are: + + -init-macrodef-javac: defines macro for javac compilation + -init-macrodef-junit: defines macro for junit execution + -init-macrodef-debug: defines macro for class debugging + -init-macrodef-java: defines macro for class execution + -do-jar: JAR building + run: execution of project + -javadoc-build: Javadoc generation + test-report: JUnit report generation + + An example of overriding the target for project execution could look like this: + + <target name="run" depends="SimpleECC-impl.jar"> + <exec dir="bin" executable="launcher.exe"> + <arg file="${dist.jar}"/> + </exec> + </target> + + Notice that the overridden target depends on the jar target and not only on + the compile target as the regular run target does. Again, for a list of available + properties which you can use, check the target you are overriding in the + nbproject/build-impl.xml file. + + --> + <target name="-pre-jar"> + <copy file="LICENSE" todir="${build.classes.dir}"/> + </target> + + <target name="package" depends="jar"> + <property name="store.jar.name" value="ECTesterStandalone-dist"/> + <antcall target="dist-build.package"/> + </target> + + <target name="libs-try"> + <exec dir="src/cz/crcs/ectester/standalone/libs/jni" executable="make" osfamily="unix"> + <arg value="-k"/> + </exec> + </target> + <target name="libs"> + <exec dir="src/cz/crcs/ectester/standalone/libs/jni" failonerror="true" executable="make" osfamily="unix"> + <arg value="-k"/> + </exec> + </target> + + <target name="-post-compile" depends="libs-try"/> + <target name="-post-clean"> + <exec dir="src/cz/crcs/ectester/standalone/libs/jni" failonerror="true" executable="make" + osfamily="unix"> + <arg value="clean"/> + </exec> + </target> + + <target name="headers" depends="compile"> + <javah classpath="${build.classes.dir}" outputfile="src/cz/crcs/ectester/standalone/libs/jni/native.h"> + <class name="cz.crcs.ectester.standalone.libs.TomcryptLib"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeProvider$TomCrypt"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeKeyPairGeneratorSpi$TomCrypt"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeECPublicKey$TomCrypt"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeECPrivateKey$TomCrypt"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeKeyAgreementSpi$TomCrypt"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeSignatureSpi$TomCryptRaw"/> + <class name="cz.crcs.ectester.standalone.libs.BotanLib"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeProvider$Botan"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeKeyPairGeneratorSpi$Botan"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeECPublicKey$Botan"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeECPrivateKey$Botan"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeKeyAgreementSpi$Botan"/> + <class name="cz.crcs.ectester.standalone.libs.jni.NativeSignatureSpi$Botan"/> + </javah> + </target> +</project> |
