mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 16:44:11 -08:00
Using the HTML/Java name as the benchmark is generic and can also work on JavaFX
This commit is contained in:
parent
cf8645decf
commit
e048987b4f
|
@ -108,7 +108,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>org.teamvm.samples.benchmark.bck2brwsr.BenchmarkStarter</mainClass>
|
<mainClass>org.teamvm.samples.benchmark.htmljava.BenchmarkStarter</mainClass>
|
||||||
<addClasspath>true</addClasspath>
|
<addClasspath>true</addClasspath>
|
||||||
<classpathPrefix>lib/</classpathPrefix>
|
<classpathPrefix>lib/</classpathPrefix>
|
||||||
<useUniqueVersions>false</useUniqueVersions>
|
<useUniqueVersions>false</useUniqueVersions>
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
<mainJavaScript>${project.build.directory}/generated/js/b2b-benchmark.js</mainJavaScript>
|
<mainJavaScript>${project.build.directory}/generated/js/b2b-benchmark.js</mainJavaScript>
|
||||||
<vm>${project.build.directory}/generated/js/bck2brwsr.js</vm>
|
<vm>${project.build.directory}/generated/js/bck2brwsr.js</vm>
|
||||||
<exports>
|
<exports>
|
||||||
<export>org.teavm.samples.benchmark.bck2brwsr.BenchmarkStarter</export>
|
<export>org.teavm.samples.benchmark.htmljava.BenchmarkStarter</export>
|
||||||
<export>org/jbox2d/collision/shapes/</export>
|
<export>org/jbox2d/collision/shapes/</export>
|
||||||
<export>org/jbox2d/common/</export>
|
<export>org/jbox2d/common/</export>
|
||||||
<export>org/jbox2d/dynamics/</export>
|
<export>org/jbox2d/dynamics/</export>
|
||||||
|
@ -235,7 +235,7 @@
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
<version>1.3.2</version>
|
<version>1.3.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<mainClass>org.teavm.samples.benchmark.bck2brwsr.BenchmarkFX</mainClass>
|
<mainClass>org.teavm.samples.benchmark.htmljava.BenchmarkFX</mainClass>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.samples.benchmark.bck2brwsr;
|
package org.teavm.samples.benchmark.htmljava;
|
||||||
|
|
||||||
import net.java.html.boot.BrowserBuilder;
|
import net.java.html.boot.BrowserBuilder;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.samples.benchmark.bck2brwsr;
|
package org.teavm.samples.benchmark.htmljava;
|
||||||
|
|
||||||
import com.dukescript.api.canvas.GraphicsContext2D;
|
import com.dukescript.api.canvas.GraphicsContext2D;
|
||||||
import com.dukescript.api.canvas.Style;
|
import com.dukescript.api.canvas.Style;
|
|
@ -39,7 +39,7 @@
|
||||||
<script type="text/javascript" src="bck2brwsr.js"></script>
|
<script type="text/javascript" src="bck2brwsr.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var vm = bck2brwsr('b2b-benchmark.js');
|
var vm = bck2brwsr('b2b-benchmark.js');
|
||||||
var c = vm.loadClass('org.teavm.samples.benchmark.bck2brwsr.BenchmarkStarter');
|
var c = vm.loadClass('org.teavm.samples.benchmark.htmljava.BenchmarkStarter');
|
||||||
c.invoke('main');
|
c.invoke('main');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user