Skip to content

Commit

Permalink
changed library name
Browse files Browse the repository at this point in the history
  • Loading branch information
thigg committed Aug 24, 2022
1 parent 465d380 commit a134c6f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions java-part/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ COMPILEHOST_GRAAL=/home/defaultuser/dev/graalvm-ce-java17-22.2.0
echo "transfering data"
rsync . $COMPILEHOST:$COMPILEHOST_WORKSPACE -r
echo "starting compilation"
ssh $COMPILEHOST "cd $COMPILEHOST_WORKSPACE; GRAALVM_HOME=$COMPILEHOST_GRAAL JAVA_HOME=$COMPILEHOST_GRAAL ./mvnw install -Pnative"
ssh $COMPILEHOST "cd $COMPILEHOST_WORKSPACE; GRAALVM_HOME=$COMPILEHOST_GRAAL JAVA_HOME=$COMPILEHOST_GRAAL ./mvnw clean install -Pnative"
scp $COMPILEHOST:"$COMPILEHOST_WORKSPACE/target/*.h" ../qt-part/lib/
scp $COMPILEHOST:"$COMPILEHOST_WORKSPACE/target/sailfishjava.so" ../qt-part/lib/libsailfishjava.so
scp $COMPILEHOST:"$COMPILEHOST_WORKSPACE/target/javafloodjava.so" ../qt-part/lib/libjavafloodjava.so
4 changes: 2 additions & 2 deletions java-part/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>sailfishjava</artifactId>
<groupId>de.thigg</groupId>
<artifactId>javafloodjava</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
Expand Down
12 changes: 4 additions & 8 deletions qt-part/flood-java.pro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SOURCES += \

DISTFILES += \
flood-java.desktop \
lib/libsailfishjava.so \
lib/libjavafloodjava.so \
qml/cover/CoverPage.qml \
qml/flood-java.qml \
qml/pages/GamePage.qml \
Expand All @@ -45,27 +45,23 @@ CONFIG += sailfishapp_i18n
OTHER_FILES += rpm/flood-java.changes\
rpm/flood-java.spec

# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/flood-java-de.ts translations/flood-java-en.ts

HEADERS += \
lib/graal_isolate.h \
lib/sailfishjava.h \
lib/flatbuffers/*.h \
lib/flatbuffers/pch/*.h \
lib/javafloodjava.h \
src/gamestate_generated.h \
src/gamepanel.h \
src/gamestate.h \
src/jgateway.h

javalib.files = $$PWD/lib/libsailfishjava.so
javalib.files = $$PWD/lib/libjavafloodjava.so
javalib.path = $$[QT_INSTALL_LIBS]

INSTALLS += javalib
LIBS += -L$$PWD/lib/ -lsailfishjava
LIBS += -L$$PWD/lib/ -ljavafloodjava

#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../target/release/ -lnativeimpl
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../target/debug/ -lnativeimpl
Expand Down
2 changes: 1 addition & 1 deletion qt-part/src/flood-java.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <sailfishapp.h>
#include <cstdio>
#include "../lib/graal_isolate.h"
#include "../lib/sailfishjava.h"
#include "../lib/javafloodjava.h"
#include "gamepanel.h"
#include "src/jgateway.h"

Expand Down
2 changes: 1 addition & 1 deletion qt-part/src/jgateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#endif

#include <QtQuick>
#include "../lib/sailfishjava.h"
#include "../lib/javafloodjava.h"

#include <cstring>
#include <string>
Expand Down

0 comments on commit a134c6f

Please sign in to comment.