mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 16:44:11 -08:00
198 lines
7.1 KiB
XML
198 lines
7.1 KiB
XML
<!--
|
|
Copyright 2014 Alexey Andreev.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.teavm</groupId>
|
|
<artifactId>teavm-samples</artifactId>
|
|
<version>0.3.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>teavm-samples-benchmark</artifactId>
|
|
<packaging>war</packaging>
|
|
|
|
<name>TeaVM performance benchmark</name>
|
|
<description>Compares performance of the JavaScript code produced by TeaVM and GWT</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.teavm</groupId>
|
|
<artifactId>teavm-classlib</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.teavm</groupId>
|
|
<artifactId>teavm-jso</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.teavm</groupId>
|
|
<artifactId>teavm-dom</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jbox2d</groupId>
|
|
<artifactId>jbox2d-library</artifactId>
|
|
<version>2.2.1.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jbox2d</groupId>
|
|
<artifactId>jbox2d-library</artifactId>
|
|
<version>2.2.1.1</version>
|
|
<classifier>sources</classifier>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apidesign.bck2brwsr</groupId>
|
|
<artifactId>emul</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<classifier>rt</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.gwt</groupId>
|
|
<artifactId>gwt-user</artifactId>
|
|
<version>2.7.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.4</version>
|
|
<configuration>
|
|
<webResources>
|
|
<resource>
|
|
<directory>${project.build.directory}/generated/js</directory>
|
|
</resource>
|
|
</webResources>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>org.teamvm.samples.benchmark.bck2brwsr.BenchmarkStarter</mainClass>
|
|
<addClasspath>true</addClasspath>
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
</manifest>
|
|
</archive>
|
|
<excludes>
|
|
<exclude>**/gwt/*</exclude>
|
|
<exclude>**/teavm/*</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.teavm</groupId>
|
|
<artifactId>teavm-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>web-client</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>build-javascript</goal>
|
|
</goals>
|
|
<configuration>
|
|
<targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
|
|
<mainClass>org.teavm.samples.benchmark.teavm.BenchmarkStarter</mainClass>
|
|
<runtime>SEPARATE</runtime>
|
|
<minifying>false</minifying>
|
|
<debugInformationGenerated>true</debugInformationGenerated>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>gwt-maven-plugin</artifactId>
|
|
<version>2.7.0</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<optimizationLevel>9</optimizationLevel>
|
|
<compileSourcesArtifacts>
|
|
<item>org.jbox2d:jbox2d-library</item>
|
|
</compileSourcesArtifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apidesign.bck2brwsr</groupId>
|
|
<artifactId>bck2brwsr-maven-plugin</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>aot</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<obfuscation>NONE</obfuscation>
|
|
<classPathPrefix>lib</classPathPrefix>
|
|
<mainJavaScript>${project.build.directory}/generated/js/b2b-benchmark.js</mainJavaScript>
|
|
<vm>${project.build.directory}/generated/js/bck2brwsr.js</vm>
|
|
<exports>
|
|
<export>org.teavm.samples.benchmark.bck2brwsr.BenchmarkStarter</export>
|
|
<export>org/jbox2d/collision/shapes/</export>
|
|
<export>org/jbox2d/common/</export>
|
|
<export>org/jbox2d/dynamics/</export>
|
|
<export>org/jbox2d/dynamics/joints/</export>
|
|
</exports>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<configuration>
|
|
<configLocation>../../checkstyle.xml</configLocation>
|
|
<propertyExpansion>config_loc=${basedir}/../..</propertyExpansion>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project> |