Skip to content

Commit

Permalink
windows: README.md's example now builds on Windows (#19)
Browse files Browse the repository at this point in the history
* windows: README.md's example now builds on Windows

Depends on: #18
See: #13

* windows: @sassc//:sassc compiles with SassC 3.5.2
  • Loading branch information
laszlocsomor authored and alexeagle committed Apr 4, 2018
1 parent 8f9ee3e commit 808441d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions sass/sass.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,24 @@ cc_binary(
"@libsass//:srcs",
"sassc.c",
"sassc_version.h",
],
linkopts = ["-ldl", "-lm"],
] + select({
"@bazel_tools//src/conditions:windows": glob([
"win/**/*.c",
"win/**/*.h",
]),
"//conditions:default": [],
}),
includes = select({
"@bazel_tools//src/conditions:windows": ["win/posix"],
"//conditions:default": [],
}),
linkopts = select({
"@bazel_tools//src/conditions:windows": ["-DEFAULTLIB:shell32.lib"],
"//conditions:default": [
"-ldl",
"-lm",
],
}),
deps = ["@libsass//:headers"],
)
"""
Expand Down

0 comments on commit 808441d

Please sign in to comment.