Skip to content

Commit

Permalink
Add BinaryPath support to .use file. Closes #754
Browse files Browse the repository at this point in the history
  • Loading branch information
nddrylliog committed Dec 8, 2013
1 parent 7aec8d2 commit 2321417
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/rock/middle/UseDef.ooc
Expand Up @@ -61,6 +61,7 @@ UseDef: class {
sourcePath: String { get set }
linker: String { get set }
main: String { get set }
binarypath: String { get set }

imports : ArrayList<String> { get set }
preMains : ArrayList<String> { get set }
Expand Down Expand Up @@ -145,6 +146,10 @@ UseDef: class {
if (linker) {
params linker = linker
}

if (binarypath) {
params binaryPath = binarypath
}
}

parseCustomPkg: func (value: String) -> CustomPkg {
Expand Down Expand Up @@ -315,6 +320,8 @@ UseDef: class {
}
} else if (id == "Linker") {
linker = value trim()
} else if (id == "BinaryPath") {
binarypath = value trim()
} else if (id == "LibPaths") {
for (path in value split(',')) {
libFile := File new(path trim())
Expand Down

0 comments on commit 2321417

Please sign in to comment.