sapling/eden/fs/utils/TARGETS
Adam Simpkins 05288c2b98 put PathFuncs.h in their own library rule
Summary:
This updates the eden/fs/utils/TARGETS file so that PathFuncs.h and
PathFuncs.cpp are in their own separate library.  The existing "utils" library
depends on it, but other users can now depend on PathFuncs.h without pulling in
the other code in utils.

I plan to make some of the privhelper code depend on PathFuncs.h in an upcoming
diff, and this makes it so that privhelper will not need to pull in the rest of
the utils code.

Reviewed By: bolinfest

Differential Revision: D5501253

fbshipit-source-id: 804067785ed663e223977d1c84ebcfc28b3f1642
2017-07-27 13:42:45 -07:00

54 lines
1.0 KiB
Plaintext

# @autodeps
PATH_SRCS = ["PathFuncs.cpp"]
PATH_HEADERS = ["PathFuncs.h"]
cpp_library(
name = "utils",
srcs = glob(
["*.cpp"],
excludes = PATH_SRCS,
),
headers = glob(
["*.h"],
excludes = PATH_HEADERS,
),
deps = [
":path",
"@/folly:conv",
"@/folly:dynamic",
"@/folly:evicting_cache_map",
"@/folly:exception",
"@/folly:exception_wrapper",
"@/folly:fbvector",
"@/folly:singleton",
"@/folly:string",
"@/folly:subprocess",
"@/folly/experimental/logging:logging",
"@/folly/futures:core",
"@/folly/futures:shared_promise",
],
external_deps = [
"gflags",
"glog",
],
)
cpp_library(
name = "path",
srcs = PATH_SRCS,
headers = PATH_HEADERS,
deps = [
"@/folly:exception",
"@/folly:format",
"@/folly:hash",
"@/folly:optional",
"@/folly:string",
"@/folly/portability:stdlib",
],
external_deps = [
"boost",
],
)