Skip to content

Commit

Permalink
Move Box2D to an extension
Browse files Browse the repository at this point in the history
  • Loading branch information
MobiDevelop committed Apr 17, 2014
1 parent fee8920 commit a400850
Show file tree
Hide file tree
Showing 404 changed files with 38,353 additions and 33,039 deletions.
30 changes: 29 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,34 @@
</ant>
</target>

<!-- gdx box2d -->
<target name="gdx-box2d" depends="gdx-core">
<path id="classpath">
<pathelement location="${distDir}/gdx.jar"/>
<pathelement location="${distDir}/extensions/gdx-jnigen/gdx-jnigen.jar"/>
</path>
<ant antfile="../../../build-template.xml" dir="extensions/gdx-box2d/gdx-box2d">
<property name="distDir" value="${distDir}/extensions/gdx-box2d/"/>
<property name="jar" value="gdx-box2d"/>
<reference refid="classpath"/>
</ant>
</target>

<target name="gdx-box2d-gwt" depends="gdx-core,gdx-backend-gwt,gdx-box2d">
<path id="classpath">
<pathelement location="${distDir}/gdx.jar"/>
<pathelement location="${distDir}/gdx-backend-gwt.jar"/>
<pathelement location="${distDir}/extensions/gdx-box2d/gdx-box2d.jar"/>
<pathelement location="${basedir}/backends/gdx-backends-gwt/libs/gwt-dev.jar"/>
<pathelement location="${basedir}/backends/gdx-backends-gwt/libs/gwt-user.jar"/>
</path>
<ant antfile="../../../build-template.xml" dir="extensions/gdx-box2d/gdx-box2d-gwt">
<property name="distDir" value="${distDir}/extensions/gdx-box2d"/>
<property name="jar" value="gdx-box2d-gwt"/>
<reference refid="classpath"/>
</ant>
</target>

<!-- gdx controllers -->
<target name="gdx-controllers" depends="gdx-core">
<path id="classpath">
Expand Down Expand Up @@ -275,7 +303,7 @@
</target>

<target name="jars"
depends="clean,gdx-setup,gdx-core,gdx-backend-lwjgl,gdx-backend-jglfw,gdx-backend-headless,gdx-backend-android,gdx-backend-gwt,gdx-backend-robovm,gdx-tools,gdx-controllers,gdx-controllers-desktop,gdx-controllers-android,gdx-controllers-gwt,gdx-freetype,gdx-bullet"/>
depends="clean,gdx-setup,gdx-core,gdx-backend-lwjgl,gdx-backend-jglfw,gdx-backend-headless,gdx-backend-android,gdx-backend-gwt,gdx-backend-robovm,gdx-tools,gdx-box2d,gdx-box2d-gwt,gdx-controllers,gdx-controllers-desktop,gdx-controllers-android,gdx-controllers-gwt,gdx-freetype,gdx-bullet"/>

<target name="all" depends="jars,docs">
<!-- copy distribution files (licences etc.) -->
Expand Down
10 changes: 10 additions & 0 deletions extensions/gdx-box2d/gdx-box2d-gwt/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="com/badlogic/gdx/physics/box2d/gwt/emu/" kind="src" path="src"/>
<classpathentry kind="src" path="src/com/badlogic/gdx/physics/box2d/gwt/emu"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/gdx"/>
<classpathentry combineaccessrules="false" kind="src" path="/gdx-box2d"/>
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions extensions/gdx-box2d/gdx-box2d-gwt/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>gdx-box2d-gwt</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
</natures>
</projectDescription>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
formatter_profile=_libgdx
formatter_settings_version=12
61 changes: 61 additions & 0 deletions extensions/gdx-box2d/gdx-box2d-gwt/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-box2d-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>gdx-box2d-gwt</artifactId>
<packaging>jar</packaging>
<name>libGDX Box2D GWT</name>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gdx</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gdx-box2d</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>

<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>generate-resources</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name='com.badlogic.gdx.physics.box2d'/>
<source path="gwt"/>
<super-source path="gwt/emu" />
</module>
Loading

0 comments on commit a400850

Please sign in to comment.