Skip to content

Commit

Permalink
Merge pull request #2 from Ashampoo/alternative_entrypoints
Browse files Browse the repository at this point in the history
Use non-standard entry point for native to prevent interference.
  • Loading branch information
StefanOltmann authored Jul 7, 2023
2 parents dd1f677 + 847b686 commit 236063f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
15 changes: 6 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ kotlin {

mingwX64("win") {
binaries {
executable(
buildTypes = setOf(NativeBuildType.RELEASE)
)
executable(setOf(NativeBuildType.RELEASE)) {
entryPoint = "com.ashampoo.xmp.main"
}
}
}

Expand Down Expand Up @@ -191,15 +191,12 @@ kotlin {
macosArm64()
).forEach {

it.binaries.executable(
buildTypes = setOf(NativeBuildType.RELEASE)
) {
it.binaries.executable(setOf(NativeBuildType.RELEASE)) {
baseName = "xmpcore"
entryPoint = "com.ashampoo.xmp.main"
}

it.binaries.framework(
buildTypes = setOf(NativeBuildType.RELEASE)
) {
it.binaries.framework(setOf(NativeBuildType.RELEASE)) {
baseName = "xmpcore"
/* Part of the XCFramework */
xcf.add(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class XMPIteratorImpl(
this.options = options ?: IteratorOptions()

// the start node of the iteration depending on the schema and property filter
var startNode: XMPNode? = null
var startNode: XMPNode?
var initialPath: String? = null
val baseSchema = !schemaNS.isNullOrEmpty()
val baseProperty = !propPath.isNullOrEmpty()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package com.ashampoo.xmp

import kotlinx.cinterop.CPointer
import kotlinx.cinterop.UnsafeNumber
import kotlinx.cinterop.memScoped
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.ashampoo.xmp.XMPMetaFactory
package com.ashampoo.xmp

import com.ashampoo.xmp.options.SerializeOptions
import platform.posix.perror

Expand Down

0 comments on commit 236063f

Please sign in to comment.