Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
S
saberlight
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
madhead
saberlight
Commits
4368313b
Verified
Commit
4368313b
authored
Jun 18, 2019
by
madhead
⌨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
So, hello, wonderful world of native development
parent
6675db34
Pipeline
#66638723
failed with stages
in 3 minutes and 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
app/build.gradle.kts
app/build.gradle.kts
+33
-1
app/src/linuxMain/cinterop/dbus/dbus.def
app/src/linuxMain/cinterop/dbus/dbus.def
+1
-0
app/src/linuxMain/kotlin/by/dev/madhead/saberlight/main.kt
app/src/linuxMain/kotlin/by/dev/madhead/saberlight/main.kt
+12
-0
No files found.
app/build.gradle.kts
View file @
4368313b
...
...
@@ -7,10 +7,42 @@ repositories {
}
kotlin
{
linuxArm32Hfp
(
"raspberrypi"
)
{
// linuxArm32Hfp("raspberrypi") {
// compilations {
// val main by getting {
// val dbus by cinterops.creating {
// defFile(file("src/raspberrypiMain/cinterop/dbus/dbus.def"))
// packageName("org.freedesktop.dbus")
// includeDirs("src/raspberrypiMain/cinterop/dbus/headers")
// }
// }
// }
// binaries {
// executable("saberlight") {
// entryPoint = "by.dev.madhead.saberlight.main"
// }
// }
// }
linuxX64
(
"linux"
)
{
compilations
{
val
main
by
getting
{
val
dbus
by
cinterops
.
creating
{
defFile
(
file
(
"src/linuxMain/cinterop/dbus/dbus.def"
))
packageName
(
"org.freedesktop.dbus"
)
includeDirs
(
"/usr/include/dbus-1.0/"
,
"/usr/lib/dbus-1.0/include/"
)
}
}
}
binaries
{
executable
(
"saberlight"
)
{
entryPoint
=
"by.dev.madhead.saberlight.main"
linkerOpts
=
mutableListOf
(
"-L/usr/lib"
,
"-ldbus-1"
)
}
}
}
...
...
app/src/linuxMain/cinterop/dbus/dbus.def
0 → 100644
View file @
4368313b
headers = dbus/dbus.h
app/src/linuxMain/kotlin/by/dev/madhead/saberlight/main.kt
0 → 100644
View file @
4368313b
package
by.dev.madhead.saberlight
import
org.freedesktop.dbus.DBusBusType
import
org.freedesktop.dbus.dbus_bus_get
fun
main
()
{
val
bus
=
dbus_bus_get
(
DBusBusType
.
DBUS_BUS_SYSTEM
,
null
)
println
(
bus
)
println
(
"Hello, world!"
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment