Skip to content

Commit 3db3fa3

Browse files
authored
Rename GLES worker. Rename GLES/vulkan worker outputs. (#126)
1 parent 5379555 commit 3db3fa3

File tree

82 files changed

+146
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+146
-145
lines changed

build/ci_vulkan_worker/2-build-travis.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ popd
2525
find vulkan-worker/src/android/build/outputs/
2626

2727
mkdir -p out
28-
cp vulkan-worker/src/android/build/outputs/apk/debug/android-debug.apk out/android-vulkan-worker.apk
28+
cp vulkan-worker/src/android/build/outputs/apk/debug/vulkan-worker-android-debug.apk out/vulkan-worker-android-debug.apk
2929

3030
find out/

build/travis/build.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ def go():
9595

9696
source_root = os.path.abspath(".")
9797

98-
os.chdir(path("platforms", "libgdx", "OGLTesting"))
98+
os.chdir(path("gles-worker"))
9999

100100
# Build desktop worker.
101101
subprocess.check_call(
102102
["./gradlew", "desktop:dist"])
103103

104104
# Copy desktop worker.
105105
shutil.copy2(
106-
path("desktop", "build", "libs", "desktop-1.0.jar"),
107-
path(source_root, "out", "desktop-gles-worker.jar")
106+
path("desktop", "build", "libs", "gles-worker-desktop-1.0.jar"),
107+
path(source_root, "out", "gles-worker-desktop-1.0.jar")
108108
)
109109

110110
# Build Android worker
@@ -113,8 +113,8 @@ def go():
113113

114114
# Copy Android worker.
115115
shutil.copy2(
116-
path("android", "build", "outputs", "apk", "debug", "android-debug.apk"),
117-
path(source_root, "out", "android-gles-worker.apk")
116+
path("android", "build", "outputs", "apk", "debug", "gles-worker-android-debug.apk"),
117+
path(source_root, "out", "gles-worker-android-debug.apk")
118118
)
119119

120120
os.chdir(source_root)

build/travis/check_headers.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def exclude_dirpath(f: str):
4141
return \
4242
f.startswith("./vulkan-worker/build") or \
4343
f in [
44-
"./platforms/libgdx/OGLTesting/build",
45-
"./platforms/libgdx/OGLTesting/android/build",
46-
"./platforms/libgdx/OGLTesting/android/libs",
47-
"./platforms/libgdx/OGLTesting/core/build",
48-
"./platforms/libgdx/OGLTesting/desktop/build",
49-
"./platforms/libgdx/OGLTesting/gradle/wrapper",
44+
"./gles-worker/build",
45+
"./gles-worker/android/build",
46+
"./gles-worker/android/libs",
47+
"./gles-worker/core/build",
48+
"./gles-worker/desktop/build",
49+
"./gles-worker/gradle/wrapper",
5050
"./build/licenses",
5151
"./vulkan-worker/src/android/build",
5252

@@ -77,16 +77,16 @@ def exclude_filepath(f: str):
7777
f in [
7878
"./graphicsfuzz/src/main/scripts/server-static/shaders/shader.vert",
7979
"./server-static-public/src/main/files/server-static/runner_multi_template.html",
80-
"./platforms/libgdx/OGLTesting/build.gradle",
81-
"./platforms/libgdx/OGLTesting/gradle.properties",
82-
"./platforms/libgdx/OGLTesting/settings.gradle",
83-
"./platforms/libgdx/OGLTesting/android/build.gradle",
84-
"./platforms/libgdx/OGLTesting/android/proguard-project.txt",
85-
"./platforms/libgdx/OGLTesting/android/project.properties",
86-
"./platforms/libgdx/OGLTesting/core/build.gradle",
87-
"./platforms/libgdx/OGLTesting/desktop/build.gradle",
88-
"./platforms/libgdx/OGLTesting/ios/build.gradle",
89-
"./platforms/libgdx/OGLTesting/ios/robovm.properties",
80+
"./gles-worker/build.gradle",
81+
"./gles-worker/gradle.properties",
82+
"./gles-worker/settings.gradle",
83+
"./gles-worker/android/build.gradle",
84+
"./gles-worker/android/proguard-project.txt",
85+
"./gles-worker/android/project.properties",
86+
"./gles-worker/core/build.gradle",
87+
"./gles-worker/desktop/build.gradle",
88+
"./gles-worker/ios/build.gradle",
89+
"./gles-worker/ios/robovm.properties",
9090
"./mvnw",
9191
"./mvnw.cmd"
9292

client-tests/src/test/java/com/graphicsfuzz/clienttests/DesktopClientTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ private static String getClientJar() throws URISyntaxException {
105105
.getCodeSource()
106106
.getLocation()
107107
.toURI()).getAbsoluteFile().getParentFile();
108-
return Paths.get(ToolPaths.getSourceRoot(file), "platforms", "libgdx",
109-
"OGLTesting", "desktop", "build", "libs", "desktop-1.0.jar").toString();
108+
return Paths.get(ToolPaths.getSourceRoot(file), "gles-worker",
109+
"desktop", "build", "libs", "gles-worker-desktop-1.0.jar").toString();
110110
}
111111

112112
@Test

android-client-dep/pom.xml gles-worker-dependencies/pom.xml

+10-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ limitations under the License.
1818
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1919
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2020
<modelVersion>4.0.0</modelVersion>
21-
<artifactId>android-client-dep</artifactId>
22-
<name>android-client-dep</name>
21+
<artifactId>gles-worker-dependencies</artifactId>
22+
<name>gles-worker-dependencies</name>
2323
<packaging>jar</packaging>
24+
<description>
25+
A shaded jar (uber jar) containing Java dependencies needed for the gles-worker. This includes
26+
some dependencies from the main GraphicsFuzz Maven build, plus repackaged third-party Java
27+
libraries. The repackaged third-party classes have a prefix added to their package names
28+
(e.g. com.graphicsfuzz.repackaged.org.apache) to guarantee that they won't conflict with any
29+
Java libraries that already exist on Android. We also compile at source level 1.6 for Android
30+
compatibility, although this may no longer be necessary with recent Android SDKs.
31+
</description>
2432

2533
<parent>
2634
<groupId>com.graphicsfuzz</groupId>
File renamed without changes.

platforms/libgdx/OGLTesting/android/AndroidManifest.xml gles-worker/android/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
-->
1818

1919
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20-
package="com.graphicsfuzz.libgdxclient"
20+
package="com.graphicsfuzz.glesworker"
2121
android:versionCode="1"
2222
android:versionName="1.0" >
2323

platforms/libgdx/OGLTesting/android/build.gradle gles-worker/android/build.gradle

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ apply plugin: "com.android.application"
1616

1717
configurations { natives }
1818

19+
assert file("../../gles-worker-dependencies/target/gles-worker-dependencies-1.0.jar").exists()
20+
1921
dependencies {
2022
implementation project(":core")
2123
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
@@ -25,18 +27,19 @@ dependencies {
2527
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
2628
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
2729
implementation "com.android.support:appcompat-v7:23.4.0"
28-
implementation files("../../../../android-client-dep/target/android-client-dep-1.0.jar")
30+
implementation files("../../gles-worker-dependencies/target/gles-worker-dependencies-1.0.jar")
2931
}
3032

3133
android {
3234
compileSdkVersion 26
3335

3436
defaultConfig {
35-
applicationId "com.graphicsfuzz.libgdxclient"
37+
applicationId "com.graphicsfuzz.glesworker"
3638
minSdkVersion 24
3739
targetSdkVersion 26
3840
versionCode 1
3941
versionName '0.0.1'
42+
setProperty("archivesBaseName", "gles-worker-android")
4043
}
4144
buildTypes {
4245
release {

platforms/libgdx/OGLTesting/android/src/com/graphicsfuzz/libgdxclient/AndroidLauncher.java gles-worker/android/src/com/graphicsfuzz/glesworker/AndroidLauncher.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import android.content.Intent;
2020
import android.os.Build;
@@ -32,7 +32,7 @@
3232

3333
public class AndroidLauncher extends AndroidApplication {
3434

35-
Main main = null;
35+
com.graphicsfuzz.glesworker.Main main = null;
3636
private static final boolean USE_GLES3 = true;
3737
private static final boolean STANDALONE = false;
3838

platforms/libgdx/OGLTesting/android/src/com/graphicsfuzz/libgdxclient/AndroidPersistentFile.java gles-worker/android/src/com/graphicsfuzz/glesworker/AndroidPersistentFile.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import android.content.Context;
20+
2021
import java.io.File;
2122
import java.io.FileOutputStream;
2223
import java.io.RandomAccessFile;

platforms/libgdx/OGLTesting/android/src/com/graphicsfuzz/libgdxclient/AndroidProgramBinaryGetter.java gles-worker/android/src/com/graphicsfuzz/glesworker/AndroidProgramBinaryGetter.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import android.opengl.GLES30;
20+
2021
import java.nio.ByteBuffer;
2122

2223
public class AndroidProgramBinaryGetter implements IProgramBinaryGetter {

platforms/libgdx/OGLTesting/android/src/com/graphicsfuzz/libgdxclient/AndroidService.java gles-worker/android/src/com/graphicsfuzz/glesworker/AndroidService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import android.app.ActivityManager;
2020
import android.app.ActivityManager.RunningTaskInfo;
@@ -114,7 +114,7 @@ public void run() {
114114
boolean foundOurTask = false;
115115

116116
for(RunningTaskInfo i: activityManager.getRunningTasks(Integer.MAX_VALUE)) {
117-
if("com.graphicsfuzz.libgdxclient.AndroidLauncher"
117+
if("AndroidLauncher"
118118
.equals(i.baseActivity.getClassName())) {
119119
activityManager.moveTaskToFront(i.id, ActivityManager.MOVE_TASK_WITH_HOME);
120120
foundOurTask = true;

platforms/libgdx/OGLTesting/android/src/com/graphicsfuzz/libgdxclient/AndroidWatchdog.java gles-worker/android/src/com/graphicsfuzz/glesworker/AndroidWatchdog.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import android.os.Process;
2020
import android.util.Log;
21+
2122
import java.util.concurrent.TimeUnit;
2223

2324
public class AndroidWatchdog implements IWatchdog {

platforms/libgdx/OGLTesting/android/src/com/graphicsfuzz/libgdxclient/LaunchServiceActivity.java gles-worker/android/src/com/graphicsfuzz/glesworker/LaunchServiceActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import android.app.Activity;
2020
import android.content.Intent;

platforms/libgdx/OGLTesting/build.gradle gles-worker/build.gradle

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
allprojects {
33
version = '1.0'
44
ext {
5-
appName = "libgdxclient"
5+
appName = "glesworker"
66
gdxVersion = '1.9.8'
77
roboVMVersion = '2.3.5'
88
box2DLightsVersion = '1.4'
@@ -20,8 +20,6 @@ allprojects {
2020
}
2121
}
2222

23-
assert file("../../../android-client-dep/target/android-client-dep-1.0.jar").exists()
24-
2523
task clean(type: Delete) {
2624
delete rootProject.buildDir
2725
}

platforms/libgdx/OGLTesting/core/build.gradle gles-worker/core/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
apply plugin: "java"
22

3+
assert file("../../gles-worker-dependencies/target/gles-worker-dependencies-1.0.jar").exists()
4+
35
dependencies {
46
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
5-
implementation files("../../../../android-client-dep/target/android-client-dep-1.0.jar")
7+
implementation files("../../gles-worker-dependencies/target/gles-worker-dependencies-1.0.jar")
68
implementation "ar.com.hjg:pngj:2.1.0"
79
}
810

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/Cache.java gles-worker/core/src/com/graphicsfuzz/glesworker/Cache.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import java.util.ArrayDeque;
2020

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/ComputeJobManager.java gles-worker/core/src/com/graphicsfuzz/glesworker/ComputeJobManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import com.badlogic.gdx.Gdx;
2020
import com.graphicsfuzz.repackaged.com.google.gson.JsonObject;

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/Constants.java gles-worker/core/src/com/graphicsfuzz/glesworker/Constants.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
public class Constants
2020
{

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/GetPNGException.java gles-worker/core/src/com/graphicsfuzz/glesworker/GetPNGException.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
public class GetPNGException extends Exception {
2020

21-
public GetPNGException(GlErrorException ex) {
21+
public GetPNGException(com.graphicsfuzz.glesworker.GlErrorException ex) {
2222
super(ex);
2323
}
2424

2525
@Override
26-
public synchronized GlErrorException getCause() {
26+
public synchronized com.graphicsfuzz.glesworker.GlErrorException getCause() {
2727
return (GlErrorException) super.getCause();
2828
}
2929
}

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/GlErrorException.java gles-worker/core/src/com/graphicsfuzz/glesworker/GlErrorException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
public class GlErrorException extends Exception {
2020
public final int glError;

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/IPersistentFile.java gles-worker/core/src/com/graphicsfuzz/glesworker/IPersistentFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
public interface IPersistentFile {
2020

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/IProgramBinaryGetter.java gles-worker/core/src/com/graphicsfuzz/glesworker/IProgramBinaryGetter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import java.nio.ByteBuffer;
2020

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/IWatchdog.java gles-worker/core/src/com/graphicsfuzz/glesworker/IWatchdog.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
public interface IWatchdog {
2020

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/JobGetter.java gles-worker/core/src/com/graphicsfuzz/glesworker/JobGetter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
import com.badlogic.gdx.Gdx;
2020
import com.badlogic.gdx.utils.Disposable;

platforms/libgdx/OGLTesting/core/src/com/graphicsfuzz/libgdxclient/JobType.java gles-worker/core/src/com/graphicsfuzz/glesworker/JobType.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.graphicsfuzz.libgdxclient;
17+
package com.graphicsfuzz.glesworker;
1818

1919
public enum JobType {
2020

0 commit comments

Comments
 (0)