Skip to content

Commit f3fe7a1

Browse files
committed
moving core.jar and friends
1 parent 5df6d04 commit f3fe7a1

9 files changed

Lines changed: 48 additions & 12 deletions

File tree

app/src/processing/app/Library.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ public boolean accept(File dir, String name) {
7979
};
8080

8181

82-
public Library(File folder, String subfolder) {
82+
public Library(File folder) {
83+
this(folder, null);
84+
}
85+
86+
87+
public Library(File folder, String groupName) {
8388
super(folder, Library.propertiesFileName);
84-
this.group = subfolder;
89+
this.group = groupName;
8590

8691
libraryFolder = new File(folder, "library");
8792
examplesFolder = new File(folder, "examples");
@@ -462,7 +467,7 @@ static protected void list(File folder, ArrayList<Library> libraries) {
462467
discover(folder, librariesFolders);
463468

464469
for (File baseFolder : librariesFolders) {
465-
libraries.add(new Library(baseFolder, null));
470+
libraries.add(new Library(baseFolder));
466471
}
467472

468473
String[] list = folder.list(junkFolderFilter);

app/src/processing/app/Mode.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public abstract class Mode {
4545

4646
public ArrayList<Library> coreLibraries;
4747
public ArrayList<Library> contribLibraries;
48+
49+
/** Library folder for core. (Used for OpenGL in particular.) */
50+
protected Library coreLibrary;
4851

4952

5053
public Mode(Base base, File folder) {
@@ -144,6 +147,11 @@ public void rebuildLibraryList() {
144147
}
145148

146149

150+
public Library getCoreLibrary() {
151+
return null;
152+
}
153+
154+
147155
public Library getLibrary(String pkgName) throws SketchException {
148156
ArrayList<Library> libraries = importToLibraryTable.get(pkgName);
149157
if (libraries == null) {

app/src/processing/app/contrib/ContributionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static File getSketchbookContribFolder(Base base, Type type) {
187187
static InstalledContribution create(Base base, Type type, File folder) {
188188
switch (type) {
189189
case LIBRARY:
190-
return new Library(folder, null);
190+
return new Library(folder);
191191
case LIBRARY_COMPILATION:
192192
return LibraryCompilation.create(folder);
193193
case TOOL:

app/src/processing/mode/java/JavaBuild.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ public class JavaBuild {
5959
*/
6060
private String javaLibraryPath;
6161

62-
/**
63-
* List of library folders, as figured out during preprocessing.
64-
*/
62+
/** List of library folders, as figured out during preprocessing. */
6563
private ArrayList<Library> importedLibraries;
66-
64+
6765

6866
public JavaBuild(Sketch sketch) {
6967
this.sketch = sketch;

app/src/processing/mode/java/JavaMode.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import processing.app.Base;
3030
import processing.app.Editor;
3131
import processing.app.EditorState;
32+
import processing.app.Library;
3233
import processing.app.Mode;
3334
import processing.app.RunnerListener;
3435
import processing.app.Sketch;
@@ -167,7 +168,16 @@ public String[] getIgnorable() {
167168
"application.linux"
168169
};
169170
}
170-
171+
172+
173+
public Library getCoreLibrary() {
174+
if (coreLibrary == null) {
175+
File coreFolder = Base.getContentFile("core");
176+
coreLibrary = new Library(coreFolder, null);
177+
}
178+
return coreLibrary;
179+
}
180+
171181

172182
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
173183

build/build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
<!-- Libraries required for running processing -->
3030
<fileset dir=".." id="runtime.jars">
31-
<include name="core/core.jar" />
31+
<!--<include name="core/library/core.jar" />-->
32+
<include name="core/library" />
3233
<include name="app/pde.jar" />
3334
<include name="app/lib/antlr.jar" />
3435
<include name="app/lib/ecj.jar" />

core/build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<target name="clean" description="Clean out the build directories">
55
<delete dir="bin" />
6-
<delete file="core.jar" />
6+
<delete file="library/core.jar" />
77
</target>
88

99
<target name="compile" description="Compile">
@@ -33,7 +33,7 @@
3333
</target>
3434

3535
<target name="build" depends="compile" description="Build core library">
36-
<jar basedir="bin" destfile="core.jar" />
36+
<jar basedir="bin" destfile="library/core.jar" />
3737
</target>
3838

3939
</project>

core/library/export.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# If you want to support more platforms, visit jogamp.org to get the
2+
# natives libraries for the platform in question (i.e. Solaris).
3+
4+
name = OpenGL
5+
6+
application.macosx=opengl.jar,jogl.all.jar,gluegen-rt.jar,jogl-all-natives-macosx-universal.jar,gluegen-rt-natives-macosx-universal.jar
7+
application.windows32=opengl.jar,jogl.all.jar,gluegen-rt.jar,jogl-all-natives-windows-i586.jar,gluegen-rt-natives-windows-i586.jar
8+
application.windows64=opengl.jar,jogl.all.jar,gluegen-rt.jar,jogl-all-natives-windows-amd64.jar,gluegen-rt-natives-windows-amd64.jar
9+
application.linux32=opengl.jar,jogl.all.jar,gluegen-rt.jar,jogl-all-natives-linux-i586.jar,gluegen-rt-natives-linux-i586.jar
10+
application.linux64=opengl.jar,jogl.all.jar,gluegen-rt.jar,jogl-all-natives-linux-amd64.jar,gluegen-rt-natives-linux-amd64.jar

todo.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Have you added an NSPrincipalClass to your Info.plist, and are using a JavaAppli
88
_ Check out the desktop property. Unfortunately, it won't tell you *which* display is running in HiDPI, but it will stay up-to-date with live display changes (like a Retina-display being plugged and unplugged). If you query the property after each GraphicsEnvironment display change event, you should be able to live switch in and out of HiDPI.
99
java.awt.Toolkit.getDefaultToolkit().getDesktopProperty("apple.awt.contentScaleFactor");
1010

11+
_ launch moviemaker as separate Java process (to disable Quaqua)
12+
_ or selectively disable parts to see which is causing the trouble
13+
_ http://www.randelshofer.ch/quaqua/guide/tailoring.html
14+
1115
recent/open
1216
X add EditorState class, device-aware placement
1317
X get rid of restore sketch feature

0 commit comments

Comments
 (0)