-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use standard Java compiler for Makefile * Can still build with ECJ using Eclipse & jardesc * Ensure jar is only created after all classes are built (for parallel make) * Add Travis CI yml script * Add Travis CI badge to readme * Remove the unsafe obsolete progress bar from disabled EGM
- Loading branch information
1 parent
c3893ef
commit 275e557
Showing
5 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# competition for Thundercleese | ||
notifications: | ||
irc: "chat.freenode.net#enigma" | ||
# don't build "feature" branches | ||
branches: | ||
only: | ||
- "master" | ||
# obviously this is java duh | ||
language: java | ||
|
||
os: linux | ||
dist: xenial | ||
|
||
script: | ||
- git clone --recursive https://github.com/IsmAvatar/LateralGM.git ../LateralGM | ||
- curl -o jna.jar https://enigma-dev.org/bin/jna.jar | ||
- make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
JC = ecj -1.6 -nowarn -cp . | ||
JFLAGS = -cp ../plugins/shared/jna.jar:../lgm16b4.jar:/usr/share/java/eclipse-ecj.jar:/usr/share/java/ecj.jar | ||
OUTPUT_FILE = ../plugins/enigma.jar | ||
JC = javac | ||
JFLAGS = -source 1.7 -target 1.7 -cp .:jna.jar:../LateralGM:../LateralGM/modules/joshedit/src/main/java:../LateralGM/modules/joshedit/src/main/resources | ||
OUTPUT_FILE = enigma.jar | ||
|
||
.SUFFIXES: .java .class | ||
|
||
.java.class: | ||
$(JC) $(JFLAGS) $*.java | ||
%.class: %.java | ||
$(JC) $(JFLAGS) $*.java | ||
|
||
JAVA_FILES = $(shell find org -name "*.java") | ||
JAR_INC_FILES = $(shell find org -type f \( -not -wholename '*/.git/*' \) -a \( -not -name "*.java" \) | sed 's/\$$/\\\$$/g') | ||
JAR_INC_FILES = $(shell find org -type f \( -not -wholename '*/.git/*' \) -a \( -not -name "*.java" \)) | ||
BASE_CLASSES = $(JAVA_FILES:.java=.class) | ||
|
||
default: classes jar | ||
|
||
classes: $(JAVA_FILES:.java=.class) | ||
classes: $(BASE_CLASSES) | ||
|
||
clean: | ||
find org/enigma -name "*.class" -exec rm {} \; | ||
rm -f $(OUTPUT_FILE) | ||
find org/enigma -name "*.class" -exec rm {} \; | ||
rm -f $(OUTPUT_FILE) | ||
|
||
jar: $(BASE_CLASSES) | ||
@echo JAR $(OUTPUT_FILE) | ||
@jar cfm $(OUTPUT_FILE) META-INF/MANIFEST.MF COPYING LICENSE $(subst $$,\$$,$(JAR_INC_FILES)) | ||
|
||
jar: | ||
@jar cfm $(OUTPUT_FILE) META-INF/MANIFEST.MF COPYING LICENSE $(JAR_INC_FILES) | ||
.PHONY: clean jar default classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters