forked from MobiVM/robovm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reworked way swift dependencies are picked up
- allowing static swift libs to be linked by linker (no need to specify them) - fixed pattern to not try to copy swift libs that are part of runtime, only @rpath are being copied now; - application binary is being scanned for swift dependencies as well now. As static linking might introduce ones - added `<swiftSupport>` config option. Putting this to `robovm.xml` will add swift path to linker library search path (cherry picked from commit e81afdb)
- Loading branch information
Showing
3 changed files
with
85 additions
and
72 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
26 changes: 26 additions & 0 deletions
26
compiler/compiler/src/main/java/org/robovm/compiler/config/SwiftSupport.java
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,26 @@ | ||
package org.robovm.compiler.config; | ||
|
||
import org.simpleframework.xml.Element; | ||
import org.simpleframework.xml.ElementList; | ||
|
||
import java.io.File; | ||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
/** | ||
* Configuration entry for Swift language related configurations | ||
*/ | ||
public class SwiftSupport { | ||
/** | ||
* path where swift library to be looked at | ||
* also these libraries will be added to linker library search path | ||
*/ | ||
@ElementList(required = false, entry = "path") | ||
private ArrayList<Config.QualifiedFile> swiftLibPaths; | ||
|
||
public List<Config.QualifiedFile> getSwiftLibPaths() { | ||
return swiftLibPaths == null ? Collections.emptyList() | ||
: Collections.unmodifiableList(swiftLibPaths); | ||
} | ||
} |
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