mirror of
https://github.com/irmen/prog8.git
synced 2024-06-10 20:29:33 +00:00
lib updates, removed unused and obsolete http and dbus modules
This commit is contained in:
parent
42c7569791
commit
04f7b772a3
|
@ -1,25 +0,0 @@
|
||||||
<component name="libraryTable">
|
|
||||||
<library name="github.hypfvieh.dbus.java" type="repository">
|
|
||||||
<properties maven-id="com.github.hypfvieh:dbus-java:3.3.2" />
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/hypfvieh/dbus-java/3.3.2/dbus-java-3.3.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-unixsocket/0.38.17/jnr-unixsocket-0.38.17.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-ffi/2.2.11/jnr-ffi-2.2.11.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jffi/1.3.9/jffi-1.3.9.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jffi/1.3.9/jffi-1.3.9-native.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/ow2/asm/asm/9.2/asm-9.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-a64asm/1.0.0/jnr-a64asm-1.0.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-x86asm/1.0.2/jnr-x86asm-1.0.2.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-constants/0.10.3/jnr-constants-0.10.3.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-enxio/0.32.13/jnr-enxio-0.32.13.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/jnr/jnr-posix/3.1.15/jnr-posix-3.1.15.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
|
@ -1,10 +0,0 @@
|
||||||
<component name="libraryTable">
|
|
||||||
<library name="glassfish.javax.json" type="repository">
|
|
||||||
<properties include-transitive-deps="false" maven-id="org.glassfish:javax.json:1.1.4" />
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/glassfish/javax.json/1.1.4/javax.json-1.1.4.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
|
@ -1,13 +1,10 @@
|
||||||
<component name="libraryTable">
|
<component name="libraryTable">
|
||||||
<library name="michael.bull.kotlin.result.jvm" type="repository">
|
<library name="michael.bull.kotlin.result.jvm" type="repository">
|
||||||
<properties maven-id="com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18" />
|
<properties maven-id="com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20" />
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/michael-bull/kotlin-result/kotlin-result-jvm/1.1.18/kotlin-result-jvm-1.1.18.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/com/michael-bull/kotlin-result/kotlin-result-jvm/1.1.20/kotlin-result-jvm-1.1.20.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.8.10/kotlin-stdlib-jdk8-1.8.10.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib/1.9.22/kotlin-stdlib-1.9.22.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib/1.8.10/kotlin-stdlib-1.8.10.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/annotations/13.0/annotations-13.0.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/annotations/13.0/annotations-13.0.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.8.10/kotlin-stdlib-jdk7-1.8.10.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib-common/1.8.10/kotlin-stdlib-common-1.8.10.jar!/" />
|
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES />
|
<SOURCES />
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<component name="libraryTable">
|
|
||||||
<library name="slf4j.simple" type="repository">
|
|
||||||
<properties maven-id="org.slf4j:slf4j-simple:2.0.11" />
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-simple/2.0.11/slf4j-simple-2.0.11.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/2.0.11/slf4j-api-2.0.11.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
|
@ -1,18 +0,0 @@
|
||||||
<component name="libraryTable">
|
|
||||||
<library name="takes" type="repository">
|
|
||||||
<properties maven-id="org.takes:takes:1.24.4" />
|
|
||||||
<CLASSES>
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/takes/takes/1.24.4/takes-1.24.4.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/cactoos/cactoos/0.54.0/cactoos-0.54.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/javax/xml/bind/jaxb-api/2.4.0-b180830.0359/jaxb-api-2.4.0-b180830.0359.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/sun/xml/bind/jaxb-core/4.0.0/jaxb-core-4.0.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/jakarta/xml/bind/jakarta.xml.bind-api/4.0.0/jakarta.xml.bind-api-4.0.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/jakarta/activation/jakarta.activation-api/2.1.0/jakarta.activation-api-2.1.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/eclipse/angus/angus-activation/1.0.0/angus-activation-1.0.0.jar!/" />
|
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/com/sun/xml/bind/jaxb-impl/4.0.0/jaxb-impl-4.0.0.jar!/" />
|
|
||||||
</CLASSES>
|
|
||||||
<JAVADOC />
|
|
||||||
<SOURCES />
|
|
||||||
</library>
|
|
||||||
</component>
|
|
|
@ -10,10 +10,8 @@
|
||||||
<module fileurl="file://$PROJECT_DIR$/codeOptimizers/codeOptimizers.iml" filepath="$PROJECT_DIR$/codeOptimizers/codeOptimizers.iml" />
|
<module fileurl="file://$PROJECT_DIR$/codeOptimizers/codeOptimizers.iml" filepath="$PROJECT_DIR$/codeOptimizers/codeOptimizers.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/compiler/compiler.iml" filepath="$PROJECT_DIR$/compiler/compiler.iml" />
|
<module fileurl="file://$PROJECT_DIR$/compiler/compiler.iml" filepath="$PROJECT_DIR$/compiler/compiler.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/compilerAst/compilerAst.iml" filepath="$PROJECT_DIR$/compilerAst/compilerAst.iml" />
|
<module fileurl="file://$PROJECT_DIR$/compilerAst/compilerAst.iml" filepath="$PROJECT_DIR$/compilerAst/compilerAst.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/dbusCompilerService/dbusCompilerService.iml" filepath="$PROJECT_DIR$/dbusCompilerService/dbusCompilerService.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/docs/docs.iml" filepath="$PROJECT_DIR$/docs/docs.iml" />
|
<module fileurl="file://$PROJECT_DIR$/docs/docs.iml" filepath="$PROJECT_DIR$/docs/docs.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/examples/examples.iml" filepath="$PROJECT_DIR$/examples/examples.iml" />
|
<module fileurl="file://$PROJECT_DIR$/examples/examples.iml" filepath="$PROJECT_DIR$/examples/examples.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/httpCompilerService/httpCompilerService.iml" filepath="$PROJECT_DIR$/httpCompilerService/httpCompilerService.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/intermediate/intermediate.iml" filepath="$PROJECT_DIR$/intermediate/intermediate.iml" />
|
<module fileurl="file://$PROJECT_DIR$/intermediate/intermediate.iml" filepath="$PROJECT_DIR$/intermediate/intermediate.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/parser/parser.iml" filepath="$PROJECT_DIR$/parser/parser.iml" />
|
<module fileurl="file://$PROJECT_DIR$/parser/parser.iml" filepath="$PROJECT_DIR$/parser/parser.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/virtualmachine/virtualmachine.iml" filepath="$PROJECT_DIR$/virtualmachine/virtualmachine.iml" />
|
<module fileurl="file://$PROJECT_DIR$/virtualmachine/virtualmachine.iml" filepath="$PROJECT_DIR$/virtualmachine/virtualmachine.iml" />
|
||||||
|
|
|
@ -26,7 +26,7 @@ compileTestKotlin {
|
||||||
dependencies {
|
dependencies {
|
||||||
// should have no dependencies to other modules
|
// should have no dependencies to other modules
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'application'
|
id 'application'
|
||||||
|
@ -27,7 +26,7 @@ dependencies {
|
||||||
implementation project(':codeCore')
|
implementation project(':codeCore')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
|
|
||||||
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.8.0'
|
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.8.0'
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
||||||
|
|
|
@ -29,7 +29,7 @@ dependencies {
|
||||||
implementation project(':codeGenIntermediate')
|
implementation project(':codeGenIntermediate')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ dependencies {
|
||||||
implementation project(':intermediate')
|
implementation project(':intermediate')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
|
|
||||||
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.8.0'
|
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.8.0'
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
||||||
|
|
|
@ -27,7 +27,7 @@ dependencies {
|
||||||
implementation project(':codeCore')
|
implementation project(':codeCore')
|
||||||
implementation project(':compilerAst')
|
implementation project(':compilerAst')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
|
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
|
|
||||||
testImplementation project(':codeCore')
|
testImplementation project(':codeCore')
|
||||||
testImplementation project(':intermediate')
|
testImplementation project(':intermediate')
|
||||||
|
|
|
@ -25,7 +25,7 @@ dependencies {
|
||||||
implementation project(':codeCore')
|
implementation project(':codeCore')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
implementation "org.antlr:antlr4-runtime:4.13.1"
|
implementation "org.antlr:antlr4-runtime:4.13.1"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
implementation project(':parser')
|
implementation project(':parser')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,84 +0,0 @@
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'application'
|
|
||||||
id "org.jetbrains.kotlin.jvm"
|
|
||||||
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion = JavaLanguageVersion.of(javaVersion)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
compileKotlin {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = javaVersion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
compileTestKotlin {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = javaVersion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':codeCore')
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
|
|
||||||
implementation "com.github.hypfvieh:dbus-java:3.3.2"
|
|
||||||
implementation "org.slf4j:slf4j-simple:2.0.9"
|
|
||||||
}
|
|
||||||
|
|
||||||
configurations.all {
|
|
||||||
exclude group: 'com.ibm.icu', module: 'icu4j'
|
|
||||||
exclude group: "org.antlr", module: "antlr4"
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDir "${project.projectDir}/src"
|
|
||||||
}
|
|
||||||
resources {
|
|
||||||
srcDir "${project.projectDir}/res"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
test {
|
|
||||||
java {
|
|
||||||
srcDir "${project.projectDir}/test"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = true
|
|
||||||
|
|
||||||
application {
|
|
||||||
mainClass = 'prog8.dbus.DbusserverKt'
|
|
||||||
applicationName = 'prog8compilerservicedbus'
|
|
||||||
}
|
|
||||||
|
|
||||||
shadowJar {
|
|
||||||
archiveBaseName = 'prog8compilerservicedbus'
|
|
||||||
archiveVersion = '1.0'
|
|
||||||
// minimize()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
test {
|
|
||||||
// Enable JUnit 5 (Gradle 4.6+).
|
|
||||||
useJUnitPlatform()
|
|
||||||
|
|
||||||
// Always run tests, even when nothing changed.
|
|
||||||
dependsOn 'cleanTest'
|
|
||||||
|
|
||||||
// Show test results.
|
|
||||||
testLogging {
|
|
||||||
events "skipped", "failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
build.finalizedBy installDist, installShadowDist
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
|
||||||
<orderEntry type="library" name="jetbrains.kotlinx.cli.jvm" level="project" />
|
|
||||||
<orderEntry type="library" name="github.hypfvieh.dbus.java" level="project" />
|
|
||||||
<orderEntry type="library" name="slf4j.simple" level="project" />
|
|
||||||
<orderEntry type="module" module-name="codeCore" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
|
@ -1,28 +0,0 @@
|
||||||
package prog8.dbus
|
|
||||||
|
|
||||||
import org.freedesktop.dbus.annotations.IntrospectionDescription
|
|
||||||
import org.freedesktop.dbus.interfaces.DBusInterface
|
|
||||||
|
|
||||||
|
|
||||||
const val serviceObjectPath = "/razorvine/TestService"
|
|
||||||
|
|
||||||
|
|
||||||
interface IrmenDbusTest: DBusInterface
|
|
||||||
{
|
|
||||||
@IntrospectionDescription("return some sort of status")
|
|
||||||
fun Status(address: String): Map<Int, String>
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
internal class TestService: IrmenDbusTest {
|
|
||||||
|
|
||||||
override fun Status(address: String): Map<Int, String> {
|
|
||||||
return mapOf(
|
|
||||||
5 to "hello",
|
|
||||||
42 to address
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun isRemote() = true
|
|
||||||
override fun getObjectPath() = serviceObjectPath
|
|
||||||
}
|
|
|
@ -1,57 +0,0 @@
|
||||||
package prog8.dbus
|
|
||||||
|
|
||||||
|
|
||||||
import org.freedesktop.dbus.connections.impl.DBusConnection
|
|
||||||
import org.freedesktop.dbus.exceptions.DBusExecutionException
|
|
||||||
import org.freedesktop.dbus.interfaces.DBusInterface
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
Inspect the dbus services interactively via the qdbusviewer tool.
|
|
||||||
|
|
||||||
|
|
||||||
Command line access is also possible with:
|
|
||||||
|
|
||||||
$ dbus-send --session --dest=local.net.razorvine.prog8.dbus --type=method_call --print-reply /razorvine/TestService prog8.dbus.IrmenDbusTest.Status string:"hello world"
|
|
||||||
|
|
||||||
$ qdbus --literal local.net.razorvine.prog8.dbus /razorvine/TestService Status string:"hello world"
|
|
||||||
|
|
||||||
$ gdbus call --session -d local.net.razorvine.prog8.dbus -o /razorvine/TestService --method prog8.dbus.IrmenDbusTest.Status string:"hello world"
|
|
||||||
|
|
||||||
Or with the dasbus python library:
|
|
||||||
|
|
||||||
from dasbus.connection import SessionMessageBus
|
|
||||||
from dasbus.identifier import DBusServiceIdentifier
|
|
||||||
|
|
||||||
PROG8_SERVICE = DBusServiceIdentifier(
|
|
||||||
namespace=("local", "net", "razorvine", "prog8", "dbus"),
|
|
||||||
message_bus=SessionMessageBus()
|
|
||||||
)
|
|
||||||
|
|
||||||
proxy = PROG8_SERVICE.get_proxy("/razorvine/TestService")
|
|
||||||
print(proxy.Status("hello world"))
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
inline fun <reified I: DBusInterface> DBusConnection.getRemote(busname: String, objectpath: String): I =
|
|
||||||
this.getRemoteObject(busname, objectpath, I::class.java)
|
|
||||||
|
|
||||||
inline fun <reified I: DBusInterface> DBusConnection.getPeerRemote(busname: String, objectpath: String): I =
|
|
||||||
this.getPeerRemoteObject(busname, objectpath, I::class.java)
|
|
||||||
|
|
||||||
|
|
||||||
fun main() {
|
|
||||||
DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION).use {
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
val obj = it.getRemote<IrmenDbusTest>("local.net.razorvine.prog8.dbus", serviceObjectPath)
|
|
||||||
println(obj.Status("irmen"))
|
|
||||||
|
|
||||||
} catch (dx: DBusExecutionException) {
|
|
||||||
println("DBUS ERROR! $dx")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
package prog8.dbus
|
|
||||||
|
|
||||||
import org.freedesktop.dbus.connections.impl.DBusConnection
|
|
||||||
|
|
||||||
|
|
||||||
fun main() {
|
|
||||||
val busname = "local.net.razorvine.prog8.dbus"
|
|
||||||
|
|
||||||
DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION).use {
|
|
||||||
it.requestBusName(busname)
|
|
||||||
println("connection names : ${it.names.toList()}")
|
|
||||||
println("connection unique name : ${it.uniqueName}")
|
|
||||||
println("connection address : ${it.address}")
|
|
||||||
println("connection machine id : ${it.machineId}")
|
|
||||||
println("bus name for clients : $busname")
|
|
||||||
println("object path for clients : $serviceObjectPath")
|
|
||||||
|
|
||||||
val service = TestService()
|
|
||||||
it.exportObject(service.objectPath, service)
|
|
||||||
|
|
||||||
Thread.sleep(100000)
|
|
||||||
it.releaseBusName(busname)
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +1,6 @@
|
||||||
TODO
|
TODO
|
||||||
====
|
====
|
||||||
|
|
||||||
replace Takes by Http4k in httpCompilerService project. https://github.com/http4k/examples/blob/master/hello-world/README.md
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,25 +3,24 @@
|
||||||
|
|
||||||
main {
|
main {
|
||||||
sub start() {
|
sub start() {
|
||||||
monogfx.lores()
|
monogfx.hires()
|
||||||
monogfx.drawmode(monogfx.MODE_INVERT)
|
monogfx.drawmode(monogfx.MODE_INVERT)
|
||||||
|
|
||||||
ubyte tt
|
ubyte tt
|
||||||
|
|
||||||
repeat {
|
repeat {
|
||||||
ubyte tts=tt
|
ubyte tts=tt
|
||||||
word x1 = math.sin8(tts) / 2
|
word x1 = math.sin8(tts)
|
||||||
byte y1 = math.cos8(tts) / 2
|
word y1 = math.cos8(tts)
|
||||||
tts += 256/3
|
tts += 256/3
|
||||||
word x2 = math.sin8(tts) / 2
|
word x2 = math.sin8(tts)
|
||||||
byte y2 = math.cos8(tts) / 2
|
word y2 = math.cos8(tts)
|
||||||
tts += 256/3
|
tts += 256/3
|
||||||
word x3 = math.sin8(tts) / 2
|
word x3 = math.sin8(tts)
|
||||||
byte y3 = math.cos8(tts) / 2
|
word y3 = math.cos8(tts)
|
||||||
monogfx.line(160+x1 as uword, 120+y1 as ubyte, 160+x2 as uword, 120+y2 as ubyte, true)
|
monogfx.line(320+x1*2 as uword, 240+y1 as uword, 320+x2 as uword, 240+y2 as uword, true)
|
||||||
monogfx.line(160+x2 as uword, 120+y2 as ubyte, 160+x3 as uword, 120+y3 as ubyte, true)
|
monogfx.line(320+x2*2 as uword, 240+y2 as uword, 320+x3 as uword, 240+y3 as uword, true)
|
||||||
monogfx.line(160+x3 as uword, 120+y3 as ubyte, 160+x1 as uword, 120+y1 as ubyte, true)
|
monogfx.line(320+x3*2 as uword, 240+y3 as uword, 320+x1 as uword, 240+y1 as uword, true)
|
||||||
sys.waitvsync()
|
|
||||||
tt++
|
tt++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,87 +0,0 @@
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'application'
|
|
||||||
id "org.jetbrains.kotlin.jvm"
|
|
||||||
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion = JavaLanguageVersion.of(javaVersion)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
compileKotlin {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = javaVersion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
compileTestKotlin {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = javaVersion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':codeCore')
|
|
||||||
implementation project(':compiler')
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
|
|
||||||
implementation "org.takes:takes:1.24.4"
|
|
||||||
implementation "javax.json:javax.json-api:1.1.4"
|
|
||||||
implementation "org.glassfish:javax.json:1.1.4"
|
|
||||||
implementation "org.slf4j:slf4j-simple:2.0.11"
|
|
||||||
}
|
|
||||||
|
|
||||||
configurations.all {
|
|
||||||
exclude group: 'com.ibm.icu', module: 'icu4j'
|
|
||||||
exclude group: "org.antlr", module: "antlr4"
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDir "${project.projectDir}/src"
|
|
||||||
}
|
|
||||||
resources {
|
|
||||||
srcDir "${project.projectDir}/res"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
test {
|
|
||||||
java {
|
|
||||||
srcDir "${project.projectDir}/test"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = true
|
|
||||||
|
|
||||||
application {
|
|
||||||
mainClass = 'prog8.http.TestHttpKt'
|
|
||||||
applicationName = 'prog8compilerservicehttp'
|
|
||||||
}
|
|
||||||
|
|
||||||
shadowJar {
|
|
||||||
archiveBaseName = 'prog8compilerservicehttp'
|
|
||||||
archiveVersion = '1.0'
|
|
||||||
// minimize()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
test {
|
|
||||||
// Enable JUnit 5 (Gradle 4.6+).
|
|
||||||
useJUnitPlatform()
|
|
||||||
|
|
||||||
// Always run tests, even when nothing changed.
|
|
||||||
dependsOn 'cleanTest'
|
|
||||||
|
|
||||||
// Show test results.
|
|
||||||
testLogging {
|
|
||||||
events "skipped", "failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
build.finalizedBy installDist, installShadowDist
|
|
|
@ -1,19 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
|
||||||
<orderEntry type="library" name="jetbrains.kotlinx.cli.jvm" level="project" />
|
|
||||||
<orderEntry type="library" name="glassfish.javax.json" level="project" />
|
|
||||||
<orderEntry type="library" name="takes" level="project" />
|
|
||||||
<orderEntry type="library" name="slf4j.simple" level="project" />
|
|
||||||
<orderEntry type="module" module-name="codeCore" />
|
|
||||||
<orderEntry type="module" module-name="compiler" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
|
@ -1,74 +0,0 @@
|
||||||
package prog8.http
|
|
||||||
|
|
||||||
import org.takes.Request
|
|
||||||
import org.takes.Response
|
|
||||||
import org.takes.Take
|
|
||||||
import org.takes.facets.fork.FkMethods
|
|
||||||
import org.takes.facets.fork.FkRegex
|
|
||||||
import org.takes.facets.fork.TkFork
|
|
||||||
import org.takes.http.Exit
|
|
||||||
import org.takes.http.FtBasic
|
|
||||||
import org.takes.rq.form.RqFormBase
|
|
||||||
import org.takes.rs.RsJson
|
|
||||||
import org.takes.tk.TkSlf4j
|
|
||||||
import prog8.compiler.CompilerArguments
|
|
||||||
import prog8.compiler.compileProgram
|
|
||||||
import javax.json.Json
|
|
||||||
import kotlin.io.path.Path
|
|
||||||
|
|
||||||
|
|
||||||
class Jsonding: RsJson.Source {
|
|
||||||
override fun toJson(): javax.json.JsonStructure {
|
|
||||||
return Json.createObjectBuilder()
|
|
||||||
.add("name", "irmen")
|
|
||||||
.build()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class RequestParser : Take {
|
|
||||||
override fun act(request: Request): Response {
|
|
||||||
val form = RqFormBase(request)
|
|
||||||
// val names = form.names()
|
|
||||||
val a = form.param("a").single()
|
|
||||||
val args = CompilerArguments(
|
|
||||||
Path(a),
|
|
||||||
optimize = true,
|
|
||||||
writeAssembly = true,
|
|
||||||
warnSymbolShadowing = false,
|
|
||||||
compilationTarget = "c64",
|
|
||||||
symbolDefs = emptyMap(),
|
|
||||||
quietAssembler = false,
|
|
||||||
includeSourcelines = false,
|
|
||||||
asmListfile = false,
|
|
||||||
experimentalCodegen = false,
|
|
||||||
splitWordArrays = false,
|
|
||||||
breakpointCpuInstruction = null,
|
|
||||||
printAst1 = false,
|
|
||||||
printAst2 = false,
|
|
||||||
varsHighBank = null,
|
|
||||||
varsGolden = false,
|
|
||||||
slabsHighBank = null,
|
|
||||||
slabsGolden = false,
|
|
||||||
dumpVariables = false
|
|
||||||
)
|
|
||||||
compileProgram(args)
|
|
||||||
return RsJson(Jsonding())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun main() {
|
|
||||||
FtBasic(
|
|
||||||
TkSlf4j(
|
|
||||||
TkFork(
|
|
||||||
FkRegex("/", "hello, world!"),
|
|
||||||
FkRegex("/json",
|
|
||||||
TkFork(
|
|
||||||
FkMethods("GET", RsJson(Jsonding())),
|
|
||||||
FkMethods("POST", RequestParser())
|
|
||||||
)
|
|
||||||
),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
8080
|
|
||||||
).start(Exit.NEVER)
|
|
||||||
}
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
rm -f *.bin *.xex *.jar *.asm *.prg *.vm.txt *.vice-mon-list *.list *.p8ir a.out imgui.ini
|
rm -f *.bin *.xex *.jar *.asm *.prg *.vm.txt *.vice-mon-list *.list *.p8ir a.out imgui.ini
|
||||||
rm -rf build out
|
rm -rf build out
|
||||||
rm -rf compiler/build codeGenCpu6502/build codeGenExperimental/build codeGenIntermediate/build intermediate/build virtualmachine/build codeOptimizers/build compilerAst/build dbusCompilerService/build httpCompilerService/build parser/build parser/src/prog8/parser
|
rm -rf compiler/build codeGenCpu6502/build codeGenExperimental/build codeGenIntermediate/build intermediate/build virtualmachine/build codeOptimizers/build compilerAst/build parser/build parser/src/prog8/parser
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,5 @@ include(
|
||||||
':codeGenIntermediate',
|
':codeGenIntermediate',
|
||||||
':codeGenCpu6502',
|
':codeGenCpu6502',
|
||||||
':codeGenExperimental',
|
':codeGenExperimental',
|
||||||
':compiler',
|
':compiler'
|
||||||
':dbusCompilerService',
|
|
||||||
':httpCompilerService'
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -27,7 +27,7 @@ dependencies {
|
||||||
implementation project(':codeCore')
|
implementation project(':codeCore')
|
||||||
implementation project(':intermediate')
|
implementation project(':intermediate')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.20"
|
||||||
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.8.0'
|
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.8.0'
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
||||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user