Skip to content

Commit

Permalink
Remove unnecessary "unix" directory (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault authored Apr 14, 2022
1 parent c687356 commit b286465
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions settings.sc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import scala.util.Properties

trait GenerateHeaders extends JavaModule {
def cDirectory = T {
val osDir = if (Properties.isWin) "win32" else "unix"
millSourcePath / "src" / "main" / "c" / osDir
millSourcePath / "src" / "main" / "c"
}
def javacOptions = T {
val dest = cDirectory()
Expand Down Expand Up @@ -323,7 +322,7 @@ trait JniUnixModule extends Module {
def unixLibName: T[String]

def unixCSources = T.sources {
val mainDir = millSourcePath / "src" / "main" / "c" / "unix"
val mainDir = millSourcePath / "src" / "main" / "c"
val isEmpty = !os.isDir(mainDir) || os.walk.stream(mainDir).filter(
_.last.endsWith(".c")
).filter(os.isFile(_)).headOption.isEmpty
Expand Down

0 comments on commit b286465

Please sign in to comment.