mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24: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>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>org.teamvm.samples.benchmark.bck2brwsr.BenchmarkStarter</mainClass>
|
||||
<mainClass>org.teamvm.samples.benchmark.htmljava.BenchmarkStarter</mainClass>
|
||||
<addClasspath>true</addClasspath>
|
||||
<classpathPrefix>lib/</classpathPrefix>
|
||||
<useUniqueVersions>false</useUniqueVersions>
|
||||
|
@ -179,7 +179,7 @@
|
|||
<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.teavm.samples.benchmark.htmljava.BenchmarkStarter</export>
|
||||
<export>org/jbox2d/collision/shapes/</export>
|
||||
<export>org/jbox2d/common/</export>
|
||||
<export>org/jbox2d/dynamics/</export>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<configuration>
|
||||
<mainClass>org.teavm.samples.benchmark.bck2brwsr.BenchmarkFX</mainClass>
|
||||
<mainClass>org.teavm.samples.benchmark.htmljava.BenchmarkFX</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.teavm.samples.benchmark.bck2brwsr;
|
||||
package org.teavm.samples.benchmark.htmljava;
|
||||
|
||||
import net.java.html.boot.BrowserBuilder;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* 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.Style;
|
|
@ -39,7 +39,7 @@
|
|||
<script type="text/javascript" src="bck2brwsr.js"></script>
|
||||
<script>
|
||||
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');
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user