2016-09-16 13:26:34 -07:00
|
|
|
<!--
|
|
|
|
~ Copyright 2016 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.
|
|
|
|
-->
|
2014-10-05 04:45:44 -07:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2015-03-08 01:31:21 -08:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2014-10-05 04:45:44 -07:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-samples</artifactId>
|
2019-09-24 06:26:14 -07:00
|
|
|
<version>0.7.0-SNAPSHOT</version>
|
2014-10-05 04:45:44 -07:00
|
|
|
</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>
|
2015-02-28 08:28:53 -08:00
|
|
|
|
|
|
|
<properties>
|
2018-03-28 12:54:55 -07:00
|
|
|
<bck2brwsr.version>0.22</bck2brwsr.version>
|
|
|
|
<gwt.version>2.8.2</gwt.version>
|
2015-02-28 08:28:53 -08:00
|
|
|
</properties>
|
2014-10-05 04:45:44 -07:00
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-classlib</artifactId>
|
|
|
|
<version>${project.version}</version>
|
2015-02-27 00:18:10 -08:00
|
|
|
<scope>provided</scope>
|
2014-10-05 04:45:44 -07:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.teavm</groupId>
|
2015-10-09 22:36:56 -07:00
|
|
|
<artifactId>teavm-jso-apis</artifactId>
|
2014-10-05 04:45:44 -07:00
|
|
|
<version>${project.version}</version>
|
2015-02-27 00:18:10 -08:00
|
|
|
<scope>provided</scope>
|
2014-10-05 04:45:44 -07:00
|
|
|
</dependency>
|
2016-09-29 10:05:32 -07:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-interop</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2014-10-05 04:45:44 -07:00
|
|
|
<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>
|
2015-02-27 00:18:10 -08:00
|
|
|
<scope>provided</scope>
|
2014-10-05 04:45:44 -07:00
|
|
|
</dependency>
|
2015-02-25 02:48:28 -08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apidesign.bck2brwsr</groupId>
|
|
|
|
<artifactId>emul</artifactId>
|
2015-02-28 08:28:53 -08:00
|
|
|
<version>${bck2brwsr.version}</version>
|
2015-02-25 02:48:28 -08:00
|
|
|
<classifier>rt</classifier>
|
2014-10-05 04:45:44 -07:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.gwt</groupId>
|
|
|
|
<artifactId>gwt-user</artifactId>
|
2018-03-28 12:54:55 -07:00
|
|
|
<version>${gwt.version}</version>
|
2014-10-05 04:45:44 -07:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-02-27 00:18:10 -08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.dukescript.canvas</groupId>
|
|
|
|
<artifactId>html5-canvas</artifactId>
|
|
|
|
<version>0.7.2</version>
|
|
|
|
</dependency>
|
2015-03-19 13:13:49 -07:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apidesign.bck2brwsr</groupId>
|
|
|
|
<artifactId>ko-bck2brwsr</artifactId>
|
|
|
|
<version>${bck2brwsr.version}</version>
|
|
|
|
<classifier>bck2brwsr</classifier>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-02-27 00:18:10 -08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.netbeans.html</groupId>
|
|
|
|
<artifactId>net.java.html.boot</artifactId>
|
|
|
|
</dependency>
|
2014-10-05 04:45:44 -07:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
|
|
|
<webResources>
|
|
|
|
<resource>
|
|
|
|
<directory>${project.build.directory}/generated/js</directory>
|
|
|
|
</resource>
|
2016-10-06 05:49:58 -07:00
|
|
|
<resource>
|
|
|
|
<directory>${project.build.directory}/generated/wasm</directory>
|
|
|
|
</resource>
|
2014-10-05 04:45:44 -07:00
|
|
|
</webResources>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2015-02-27 00:18:10 -08:00
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2014-10-05 04:45:44 -07:00
|
|
|
<executions>
|
2015-03-08 01:31:21 -08:00
|
|
|
<execution>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<mainClass>org.teamvm.samples.benchmark.htmljava.BenchmarkStarter</mainClass>
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/gwt/*</exclude>
|
|
|
|
<exclude>**/teavm/*</exclude>
|
2016-10-06 05:49:58 -07:00
|
|
|
<exclude>**/benchmark/jvm/*</exclude>
|
2015-03-08 01:31:21 -08:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2014-10-05 04:45:44 -07:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2015-03-08 01:31:21 -08:00
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-maven-plugin</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>web-client</id>
|
|
|
|
<goals>
|
2015-10-09 07:56:38 -07:00
|
|
|
<goal>compile</goal>
|
2015-03-08 01:31:21 -08:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
|
|
|
|
<mainClass>org.teavm.samples.benchmark.teavm.BenchmarkStarter</mainClass>
|
2016-09-16 13:26:34 -07:00
|
|
|
<minifying>true</minifying>
|
2015-03-08 01:31:21 -08:00
|
|
|
<debugInformationGenerated>true</debugInformationGenerated>
|
2016-09-16 13:26:34 -07:00
|
|
|
<optimizationLevel>FULL</optimizationLevel>
|
2015-03-08 01:31:21 -08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-09-29 10:05:32 -07:00
|
|
|
<execution>
|
|
|
|
<id>wasm-client</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<targetDirectory>${project.build.directory}/generated/wasm/teavm-wasm</targetDirectory>
|
|
|
|
<mainClass>org.teavm.samples.benchmark.teavm.WasmBenchmarkStarter</mainClass>
|
|
|
|
<debugInformationGenerated>true</debugInformationGenerated>
|
|
|
|
<targetType>WEBASSEMBLY</targetType>
|
|
|
|
<optimizationLevel>FULL</optimizationLevel>
|
2019-10-01 04:53:42 -07:00
|
|
|
<minHeapSize>1</minHeapSize>
|
|
|
|
<maxHeapSize>16</maxHeapSize>
|
2018-11-20 03:55:04 -08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>native-client</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<targetDirectory>${project.build.directory}/generated/c</targetDirectory>
|
|
|
|
<mainClass>org.teavm.samples.benchmark.teavm.Gtk3BenchmarkStarter</mainClass>
|
|
|
|
<debugInformationGenerated>true</debugInformationGenerated>
|
|
|
|
<targetType>C</targetType>
|
|
|
|
<optimizationLevel>FULL</optimizationLevel>
|
2019-10-01 04:53:42 -07:00
|
|
|
<minHeapSize>1</minHeapSize>
|
|
|
|
<maxHeapSize>16</maxHeapSize>
|
2016-09-29 10:05:32 -07:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2015-03-08 01:31:21 -08:00
|
|
|
</executions>
|
2015-02-27 00:18:10 -08:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2015-03-08 01:31:21 -08:00
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>gwt-maven-plugin</artifactId>
|
2018-03-28 12:54:55 -07:00
|
|
|
<version>${gwt.version}</version>
|
2015-03-08 01:31:21 -08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<optimizationLevel>9</optimizationLevel>
|
|
|
|
<compileSourcesArtifacts>
|
|
|
|
<item>org.jbox2d:jbox2d-library</item>
|
|
|
|
</compileSourcesArtifacts>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2014-10-05 04:45:44 -07:00
|
|
|
</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>
|
2015-02-27 00:18:10 -08:00
|
|
|
<profiles>
|
2015-03-08 01:31:21 -08:00
|
|
|
<profile>
|
|
|
|
<id>fx</id>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.netbeans.html</groupId>
|
|
|
|
<artifactId>net.java.html.boot.fx</artifactId>
|
|
|
|
<version>1.1</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<version>1.3.2</version>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.teavm.samples.benchmark.htmljava.BenchmarkFX</mainClass>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2015-02-27 00:18:10 -08:00
|
|
|
</profiles>
|
2015-03-19 13:01:46 -07:00
|
|
|
</project>
|