mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
codemod: format TARGETS with buildifier [4/5] (D5092623)
Reviewed By: igorsugak fbshipit-source-id: 277a9d2bdc1d7e3ff3075bfe2d7307502fd0a507
This commit is contained in:
parent
6df267fe5c
commit
03bdaff954
@ -1,30 +1,30 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
python_binary(
|
||||
name = 'cli',
|
||||
srcs = ['main.py'],
|
||||
main_module = 'eden/cli/main',
|
||||
deps = [
|
||||
'@/eden/cli:lib',
|
||||
'@/eden/fs/service:py-client',
|
||||
],
|
||||
name = "cli",
|
||||
srcs = ["main.py"],
|
||||
main_module = "eden/cli/main",
|
||||
deps = [
|
||||
"@/eden/cli:lib",
|
||||
"@/eden/fs/service:py-client",
|
||||
],
|
||||
)
|
||||
|
||||
python_library(
|
||||
name = 'lib',
|
||||
srcs = [
|
||||
'cmd_util.py',
|
||||
'config.py',
|
||||
'configinterpolator.py',
|
||||
'debug.py',
|
||||
'util.py',
|
||||
],
|
||||
name = "lib",
|
||||
srcs = [
|
||||
"cmd_util.py",
|
||||
"config.py",
|
||||
"configinterpolator.py",
|
||||
"debug.py",
|
||||
"util.py",
|
||||
],
|
||||
)
|
||||
|
||||
python_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['test/*.py']),
|
||||
deps = [':lib']
|
||||
name = "test",
|
||||
srcs = glob(["test/*.py"]),
|
||||
deps = [":lib"],
|
||||
)
|
||||
|
||||
for build_target, suffix in get_daemon_versions():
|
||||
|
@ -1,9 +1,9 @@
|
||||
cpp_binary(
|
||||
name = 'eden-fb303-collector',
|
||||
srcs = ['EdenFB303Collector.cpp'],
|
||||
name = "eden-fb303-collector",
|
||||
srcs = ["EdenFB303Collector.cpp"],
|
||||
deps = [
|
||||
'@/common/fb303/if:fb303-cpp2',
|
||||
'@/common/init:init',
|
||||
'@/common/network:util',
|
||||
]
|
||||
"@/common/fb303/if:fb303-cpp2",
|
||||
"@/common/init:init",
|
||||
"@/common/network:util",
|
||||
],
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
cpp_library(
|
||||
name = 'config',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly/experimental:experimental',
|
||||
'@/folly:folly',
|
||||
],
|
||||
name = "config",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
"@/folly/experimental:experimental",
|
||||
],
|
||||
)
|
||||
|
@ -1,13 +1,13 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp']),
|
||||
deps = [
|
||||
'@/eden/fs/config:config',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/eden/fs/utils/test:test_lib',
|
||||
'@/folly/experimental:test_util',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*Test.cpp"]),
|
||||
deps = [
|
||||
"@/eden/fs/config:config",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/eden/fs/utils/test:test_lib",
|
||||
"@/folly/experimental:test_util",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
@ -1,18 +1,18 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
cpp_library(
|
||||
name = 'fusell',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/fuse/privhelper:privhelper',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly:folly',
|
||||
'@/folly:stats',
|
||||
'@/folly:synchronized',
|
||||
'@/wangle:wangle',
|
||||
] + ['@/common/stats:threadlocal'] if is_facebook_internal() else [],
|
||||
external_deps = [
|
||||
('fuse', None, 'fuse'),
|
||||
],
|
||||
name = "fusell",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = ([
|
||||
"@/eden/fs/fuse/privhelper:privhelper",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
"@/folly:stats",
|
||||
"@/folly:synchronized",
|
||||
"@/wangle:wangle",
|
||||
] + ["@/common/stats:threadlocal"]) if is_facebook_internal() else [],
|
||||
external_deps = [
|
||||
("fuse", None, "fuse"),
|
||||
],
|
||||
)
|
||||
|
@ -1,12 +1,12 @@
|
||||
cpp_library(
|
||||
name = 'privhelper',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/folly:folly',
|
||||
'@/folly/io:iobuf',
|
||||
],
|
||||
external_deps = [
|
||||
('boost', None, 'boost_filesystem'),
|
||||
],
|
||||
name = "privhelper",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/folly:folly",
|
||||
"@/folly/io:iobuf",
|
||||
],
|
||||
external_deps = [
|
||||
("boost", None, "boost_filesystem"),
|
||||
],
|
||||
)
|
||||
|
@ -1,12 +1,12 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/fuse/privhelper:privhelper',
|
||||
'@/folly/experimental:test_util',
|
||||
],
|
||||
external_deps = [
|
||||
('boost', 'any'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/fuse/privhelper:privhelper",
|
||||
"@/folly/experimental:test_util",
|
||||
],
|
||||
external_deps = [
|
||||
("boost", "any"),
|
||||
],
|
||||
)
|
||||
|
@ -1,51 +1,51 @@
|
||||
thrift_library(
|
||||
name = 'serialization',
|
||||
thrift_args = ['--strict'],
|
||||
thrift_srcs = {
|
||||
'overlay.thrift': [],
|
||||
},
|
||||
languages = ['cpp2'],
|
||||
deps = [
|
||||
':hgdirstate',
|
||||
]
|
||||
name = "serialization",
|
||||
languages = ["cpp2"],
|
||||
thrift_args = ["--strict"],
|
||||
thrift_srcs = {
|
||||
"overlay.thrift": [],
|
||||
},
|
||||
deps = [
|
||||
":hgdirstate",
|
||||
],
|
||||
)
|
||||
|
||||
thrift_library(
|
||||
name = 'hgdirstate',
|
||||
thrift_args = ['--strict'],
|
||||
thrift_srcs = {
|
||||
'hgdirstate.thrift': None,
|
||||
},
|
||||
# Need to support .java and .py because eden.thrift depends on this file.
|
||||
languages = [
|
||||
'cpp2',
|
||||
'java',
|
||||
'py',
|
||||
],
|
||||
py_base_module = 'facebook',
|
||||
name = "hgdirstate",
|
||||
# Need to support .java and .py because eden.thrift depends on this file.
|
||||
languages = [
|
||||
"cpp2",
|
||||
"java",
|
||||
"py",
|
||||
],
|
||||
py_base_module = "facebook",
|
||||
thrift_args = ["--strict"],
|
||||
thrift_srcs = {
|
||||
"hgdirstate.thrift": None,
|
||||
},
|
||||
)
|
||||
|
||||
cpp_library(
|
||||
name = 'inodes',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
':serialization-cpp2',
|
||||
':hgdirstate-cpp2',
|
||||
'@/eden/fs/config:config',
|
||||
'@/eden/fs/fuse:fusell',
|
||||
'@/eden/fs/journal:journal',
|
||||
'@/eden/fs/model/git:gitignore',
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/service:thrift_cpp',
|
||||
'@/eden/fs/store:store',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly/experimental:experimental',
|
||||
'@/folly:folly',
|
||||
],
|
||||
external_deps = [
|
||||
'gflags',
|
||||
('boost', 'any'),
|
||||
('boost', 'any', 'boost_filesystem'),
|
||||
],
|
||||
name = "inodes",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
":hgdirstate-cpp2",
|
||||
":serialization-cpp2",
|
||||
"@/eden/fs/config:config",
|
||||
"@/eden/fs/fuse:fusell",
|
||||
"@/eden/fs/journal:journal",
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/model/git:gitignore",
|
||||
"@/eden/fs/service:thrift_cpp",
|
||||
"@/eden/fs/store:store",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
"@/folly/experimental:experimental",
|
||||
],
|
||||
external_deps = [
|
||||
"gflags",
|
||||
("boost", "any"),
|
||||
("boost", "any", "boost_filesystem"),
|
||||
],
|
||||
)
|
||||
|
@ -1,20 +1,23 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp'], excludes=[
|
||||
# TODO(mbolin): Figure out what is salvagable from these tests and then
|
||||
# re-enable them.
|
||||
"DirstateTest.cpp",
|
||||
"DirstatePersistenceTest.cpp",
|
||||
]),
|
||||
deps = [
|
||||
'@/eden/fs/inodes:inodes',
|
||||
'@/eden/fs/testharness:testharness',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/eden/fs/utils/test:test_lib',
|
||||
'@/folly/test:test_utils',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gmock'),
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(
|
||||
["*Test.cpp"],
|
||||
excludes = [
|
||||
# TODO(mbolin): Figure out what is salvagable from these tests and then
|
||||
# re-enable them.
|
||||
"DirstateTest.cpp",
|
||||
"DirstatePersistenceTest.cpp",
|
||||
],
|
||||
),
|
||||
deps = [
|
||||
"@/eden/fs/inodes:inodes",
|
||||
"@/eden/fs/testharness:testharness",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/eden/fs/utils/test:test_lib",
|
||||
"@/folly/test:test_utils",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gmock"),
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
@ -1,22 +1,22 @@
|
||||
cpp_library(
|
||||
name = 'journal',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly:folly',
|
||||
],
|
||||
external_deps = [
|
||||
('boost', 'any'),
|
||||
],
|
||||
name = "journal",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
],
|
||||
external_deps = [
|
||||
("boost", "any"),
|
||||
],
|
||||
)
|
||||
|
||||
cpp_unittest(
|
||||
name = 'test_journal',
|
||||
srcs = glob(['test/*Test.cpp']),
|
||||
deps = [
|
||||
':journal',
|
||||
'@/folly/experimental:test_util',
|
||||
],
|
||||
name = "test_journal",
|
||||
srcs = glob(["test/*Test.cpp"]),
|
||||
deps = [
|
||||
":journal",
|
||||
"@/folly/experimental:test_util",
|
||||
],
|
||||
)
|
||||
|
@ -1,14 +1,14 @@
|
||||
cpp_library(
|
||||
name = 'model',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly:folly',
|
||||
'@/folly/ssl:openssl_hash',
|
||||
],
|
||||
external_deps = [
|
||||
('boost', 'any'),
|
||||
('openssl', None, 'ssl'),
|
||||
],
|
||||
name = "model",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
"@/folly/ssl:openssl_hash",
|
||||
],
|
||||
external_deps = [
|
||||
("boost", "any"),
|
||||
("openssl", None, "ssl"),
|
||||
],
|
||||
)
|
||||
|
@ -1,51 +1,51 @@
|
||||
cpp_library(
|
||||
name = 'git',
|
||||
srcs = [
|
||||
'GitBlob.cpp',
|
||||
'GitTree.cpp',
|
||||
],
|
||||
headers = [
|
||||
'GitBlob.h',
|
||||
'GitTree.h',
|
||||
],
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/folly:folly',
|
||||
'@/folly/io:iobuf',
|
||||
],
|
||||
external_deps = [
|
||||
('libgit2', None, 'git2'),
|
||||
],
|
||||
name = "git",
|
||||
srcs = [
|
||||
"GitBlob.cpp",
|
||||
"GitTree.cpp",
|
||||
],
|
||||
headers = [
|
||||
"GitBlob.h",
|
||||
"GitTree.h",
|
||||
],
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/folly:folly",
|
||||
"@/folly/io:iobuf",
|
||||
],
|
||||
external_deps = [
|
||||
("libgit2", None, "git2"),
|
||||
],
|
||||
)
|
||||
|
||||
cpp_library(
|
||||
name = 'gitignore',
|
||||
srcs = [
|
||||
'GitIgnore.cpp',
|
||||
'GitIgnorePattern.cpp',
|
||||
'GitIgnoreStack.cpp',
|
||||
],
|
||||
headers = [
|
||||
'GitIgnore.h',
|
||||
'GitIgnorePattern.h',
|
||||
'GitIgnoreStack.h',
|
||||
],
|
||||
deps = [
|
||||
':glob',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly:folly',
|
||||
],
|
||||
name = "gitignore",
|
||||
srcs = [
|
||||
"GitIgnore.cpp",
|
||||
"GitIgnorePattern.cpp",
|
||||
"GitIgnoreStack.cpp",
|
||||
],
|
||||
headers = [
|
||||
"GitIgnore.h",
|
||||
"GitIgnorePattern.h",
|
||||
"GitIgnoreStack.h",
|
||||
],
|
||||
deps = [
|
||||
":glob",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
],
|
||||
)
|
||||
|
||||
cpp_library(
|
||||
name = 'glob',
|
||||
srcs = [
|
||||
'GlobMatcher.cpp',
|
||||
],
|
||||
headers = [
|
||||
'GlobMatcher.h',
|
||||
],
|
||||
deps = [
|
||||
'@/folly:folly',
|
||||
],
|
||||
name = "glob",
|
||||
srcs = [
|
||||
"GlobMatcher.cpp",
|
||||
],
|
||||
headers = [
|
||||
"GlobMatcher.h",
|
||||
],
|
||||
deps = [
|
||||
"@/folly:folly",
|
||||
],
|
||||
)
|
||||
|
@ -1,19 +1,19 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/model/git:git',
|
||||
'@/eden/fs/model/git:gitignore',
|
||||
'@/folly:folly',
|
||||
],
|
||||
external_deps = [
|
||||
'glog',
|
||||
('googletest', None, 'gmock'),
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*Test.cpp"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/model/git:git",
|
||||
"@/eden/fs/model/git:gitignore",
|
||||
"@/folly:folly",
|
||||
],
|
||||
external_deps = [
|
||||
"glog",
|
||||
("googletest", None, "gmock"),
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
||||
# This cpp_benchmark() rule depends on a library watchman.
|
||||
|
@ -1,12 +1,12 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly:array',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*Test.cpp"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:array",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
cpp_library(
|
||||
name = 'rocksdb',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/folly:folly',
|
||||
'@/rocksdb:rocksdb',
|
||||
],
|
||||
external_deps = [
|
||||
],
|
||||
name = "rocksdb",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/folly:folly",
|
||||
"@/rocksdb:rocksdb",
|
||||
],
|
||||
external_deps = [
|
||||
],
|
||||
)
|
||||
|
@ -1,11 +1,12 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs('//eden/fs/service/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
include_defs("//eden/fs/service/DEFS")
|
||||
|
||||
create_eden_fs_rules(
|
||||
suffix = get_oss_suffix(),
|
||||
subdir = 'out.oss',
|
||||
server_srcs = ['oss/RunServer.cpp'],
|
||||
server_deps = [],
|
||||
server_deps = [],
|
||||
server_srcs = ["oss/RunServer.cpp"],
|
||||
subdir = "out.oss",
|
||||
suffix = get_oss_suffix(),
|
||||
)
|
||||
|
||||
if is_facebook_internal():
|
||||
@ -23,13 +24,6 @@ if is_facebook_internal():
|
||||
|
||||
cpp_library(
|
||||
name = "server",
|
||||
headers = [
|
||||
"EdenError.h",
|
||||
"EdenServer.h",
|
||||
"EdenServiceHandler.h",
|
||||
"GlobNode.h",
|
||||
"StreamingSubscriber.h",
|
||||
],
|
||||
srcs = [
|
||||
"EdenError.cpp",
|
||||
"EdenServer.cpp",
|
||||
@ -37,6 +31,13 @@ cpp_library(
|
||||
"GlobNode.cpp",
|
||||
"StreamingSubscriber.cpp",
|
||||
],
|
||||
headers = [
|
||||
"EdenError.h",
|
||||
"EdenServer.h",
|
||||
"EdenServiceHandler.h",
|
||||
"GlobNode.h",
|
||||
"StreamingSubscriber.h",
|
||||
],
|
||||
deps = [
|
||||
":thrift_cpp",
|
||||
"@/common/fb303/cpp:fb303",
|
||||
@ -52,7 +53,7 @@ cpp_library(
|
||||
"@/thrift/lib/cpp2:server",
|
||||
],
|
||||
external_deps = [
|
||||
("boost", None, "boost_filesystem"),
|
||||
("boost", None, "boost_filesystem"),
|
||||
],
|
||||
)
|
||||
|
||||
@ -63,17 +64,20 @@ cpp_library(
|
||||
# includes this thrift_library() plus some extra utility code for working with
|
||||
# the thrift C++ data structures.
|
||||
thrift_library(
|
||||
name = 'thrift',
|
||||
thrift_args = ['--strict'],
|
||||
thrift_srcs = {
|
||||
'eden.thrift': ['EdenService'],
|
||||
},
|
||||
py_base_module = 'facebook',
|
||||
languages = ['java', 'py'],
|
||||
deps = [
|
||||
'@/common/fb303/if:fb303',
|
||||
'@/eden/fs/inodes:hgdirstate',
|
||||
],
|
||||
name = "thrift",
|
||||
languages = [
|
||||
"java",
|
||||
"py",
|
||||
],
|
||||
py_base_module = "facebook",
|
||||
thrift_args = ["--strict"],
|
||||
thrift_srcs = {
|
||||
"eden.thrift": ["EdenService"],
|
||||
},
|
||||
deps = [
|
||||
"@/common/fb303/if:fb303",
|
||||
"@/eden/fs/inodes:hgdirstate",
|
||||
],
|
||||
)
|
||||
|
||||
# This includes EdenService that is also present in the :thrift
|
||||
@ -87,21 +91,21 @@ thrift_library(
|
||||
# mapping being ambiguous (the headers are present in both of
|
||||
# these thrift_library targets).
|
||||
thrift_library(
|
||||
name = 'thrift-streaming',
|
||||
thrift_args = ['--strict'],
|
||||
thrift_srcs = {
|
||||
'streamingeden.thrift': [
|
||||
'StreamingEdenService',
|
||||
name = "thrift-streaming",
|
||||
languages = ["cpp2"],
|
||||
thrift_args = ["--strict"],
|
||||
thrift_srcs = {
|
||||
"streamingeden.thrift": [
|
||||
"StreamingEdenService",
|
||||
],
|
||||
"eden.thrift": [
|
||||
"EdenService",
|
||||
],
|
||||
},
|
||||
deps = [
|
||||
"@/common/fb303/if:fb303",
|
||||
"@/eden/fs/inodes:hgdirstate",
|
||||
],
|
||||
'eden.thrift': [
|
||||
'EdenService',
|
||||
],
|
||||
},
|
||||
languages = ['cpp2'],
|
||||
deps = [
|
||||
'@/common/fb303/if:fb303',
|
||||
'@/eden/fs/inodes:hgdirstate',
|
||||
],
|
||||
)
|
||||
|
||||
# A helper library for C++ that depends on the generated thrift stubs,
|
||||
@ -110,29 +114,29 @@ thrift_library(
|
||||
# Most C++ users should depend on this rule rather than directly using the
|
||||
# thrift or thrift-streaming rules above.
|
||||
cpp_library(
|
||||
name = 'thrift_cpp',
|
||||
headers = [
|
||||
'PrettyPrinters.h',
|
||||
'ThriftUtil.h',
|
||||
],
|
||||
srcs = [
|
||||
'PrettyPrinters.cpp',
|
||||
],
|
||||
deps = [
|
||||
':thrift-streaming-cpp2',
|
||||
],
|
||||
name = "thrift_cpp",
|
||||
srcs = [
|
||||
"PrettyPrinters.cpp",
|
||||
],
|
||||
headers = [
|
||||
"PrettyPrinters.h",
|
||||
"ThriftUtil.h",
|
||||
],
|
||||
deps = [
|
||||
":thrift-streaming-cpp2",
|
||||
],
|
||||
)
|
||||
|
||||
python_library(
|
||||
name = 'py-client',
|
||||
srcs = [
|
||||
'__init__.py',
|
||||
'client.py',
|
||||
],
|
||||
base_module = 'eden.thrift',
|
||||
deps = [
|
||||
':thrift-py',
|
||||
],
|
||||
name = "py-client",
|
||||
srcs = [
|
||||
"__init__.py",
|
||||
"client.py",
|
||||
],
|
||||
base_module = "eden.thrift",
|
||||
deps = [
|
||||
":thrift-py",
|
||||
],
|
||||
)
|
||||
|
||||
# JAVA BINDINGS FOR THRIFT ENDPOINT
|
||||
|
@ -1,13 +1,13 @@
|
||||
cpp_library(
|
||||
name = 'store',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/model/git:git',
|
||||
'@/eden/fs/rocksdb:rocksdb',
|
||||
'@/folly/experimental:experimental',
|
||||
'@/folly:folly',
|
||||
'@/rocksdb:rocksdb',
|
||||
],
|
||||
name = "store",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/model/git:git",
|
||||
"@/eden/fs/rocksdb:rocksdb",
|
||||
"@/folly:folly",
|
||||
"@/folly/experimental:experimental",
|
||||
"@/rocksdb:rocksdb",
|
||||
],
|
||||
)
|
||||
|
@ -1,13 +1,13 @@
|
||||
cpp_library(
|
||||
name = 'git',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/store:store',
|
||||
'@/folly:folly',
|
||||
],
|
||||
external_deps = [
|
||||
('libgit2', None, 'git2'),
|
||||
],
|
||||
name = "git",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/store:store",
|
||||
"@/folly:folly",
|
||||
],
|
||||
external_deps = [
|
||||
("libgit2", None, "git2"),
|
||||
],
|
||||
)
|
||||
|
@ -3,34 +3,37 @@
|
||||
# rather than as a PAR file. It needs to use the system python interpreter
|
||||
# in order to find the system's installed mercurial libraries.
|
||||
|
||||
TESTER_SRCS = ['tester.cpp']
|
||||
TESTER_SRCS = ["tester.cpp"]
|
||||
|
||||
cpp_library(
|
||||
name = 'hg',
|
||||
srcs = glob(['*.cpp'], excludes=TESTER_SRCS),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/model/git:git',
|
||||
'@/eden/fs/store:store',
|
||||
'@/eden/hg/datastorage:datapack',
|
||||
'@/folly:array',
|
||||
'@/folly:folly',
|
||||
'@/folly:subprocess',
|
||||
'@/folly/experimental:env_util',
|
||||
],
|
||||
external_deps = [
|
||||
'gflags',
|
||||
'glog',
|
||||
('boost', None, 'boost_filesystem'),
|
||||
]
|
||||
name = "hg",
|
||||
srcs = glob(
|
||||
["*.cpp"],
|
||||
excludes = TESTER_SRCS,
|
||||
),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/model/git:git",
|
||||
"@/eden/fs/store:store",
|
||||
"@/eden/hg/datastorage:datapack",
|
||||
"@/folly:array",
|
||||
"@/folly:folly",
|
||||
"@/folly:subprocess",
|
||||
"@/folly/experimental:env_util",
|
||||
],
|
||||
external_deps = [
|
||||
"gflags",
|
||||
"glog",
|
||||
("boost", None, "boost_filesystem"),
|
||||
],
|
||||
)
|
||||
|
||||
cpp_binary(
|
||||
name = 'tester',
|
||||
srcs = TESTER_SRCS,
|
||||
deps = [
|
||||
':hg',
|
||||
'@/folly/init:init',
|
||||
],
|
||||
name = "tester",
|
||||
srcs = TESTER_SRCS,
|
||||
deps = [
|
||||
":hg",
|
||||
"@/folly/init:init",
|
||||
],
|
||||
)
|
||||
|
@ -1,14 +1,14 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp']),
|
||||
deps = [
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/store:store',
|
||||
'@/eden/fs/testharness:testharness',
|
||||
'@/folly:folly',
|
||||
'@/folly/experimental:test_util',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*Test.cpp"]),
|
||||
deps = [
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/store:store",
|
||||
"@/eden/fs/testharness:testharness",
|
||||
"@/folly:folly",
|
||||
"@/folly/experimental:test_util",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
@ -1,15 +1,15 @@
|
||||
cpp_library(
|
||||
name = 'testharness',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/eden/fs/config:config',
|
||||
'@/eden/fs/inodes:inodes',
|
||||
'@/eden/fs/model:model',
|
||||
'@/eden/fs/store/hg:hg',
|
||||
'@/eden/fs/fuse:fusell',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly:folly',
|
||||
'@/folly/experimental:test_util',
|
||||
],
|
||||
name = "testharness",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/eden/fs/config:config",
|
||||
"@/eden/fs/fuse:fusell",
|
||||
"@/eden/fs/inodes:inodes",
|
||||
"@/eden/fs/model:model",
|
||||
"@/eden/fs/store/hg:hg",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly:folly",
|
||||
"@/folly/experimental:test_util",
|
||||
],
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp']),
|
||||
deps = [
|
||||
'@/eden/fs/testharness:testharness',
|
||||
'@/eden/fs/utils/test:test_lib',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*Test.cpp"]),
|
||||
deps = [
|
||||
"@/eden/fs/testharness:testharness",
|
||||
"@/eden/fs/utils/test:test_lib",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
cpp_library(
|
||||
name = 'utils',
|
||||
srcs = glob(['*.cpp']),
|
||||
headers = glob(['*.h']),
|
||||
deps = [
|
||||
'@/folly:evicting_cache_map',
|
||||
'@/folly:folly',
|
||||
'@/folly:subprocess',
|
||||
'@/folly/futures:futures',
|
||||
],
|
||||
name = "utils",
|
||||
srcs = glob(["*.cpp"]),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/folly:evicting_cache_map",
|
||||
"@/folly:folly",
|
||||
"@/folly:subprocess",
|
||||
"@/folly/futures:futures",
|
||||
],
|
||||
)
|
||||
|
@ -1,26 +1,29 @@
|
||||
cpp_unittest(
|
||||
name = 'test',
|
||||
srcs = glob(['*Test.cpp']),
|
||||
deps = [
|
||||
':test_lib',
|
||||
'@/eden/fs/utils:utils',
|
||||
'@/folly/experimental:test_util',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gmock'),
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test",
|
||||
srcs = glob(["*Test.cpp"]),
|
||||
deps = [
|
||||
":test_lib",
|
||||
"@/eden/fs/utils:utils",
|
||||
"@/folly/experimental:test_util",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gmock"),
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
||||
cpp_library(
|
||||
name = 'test_lib',
|
||||
headers = glob(['*.h']),
|
||||
srcs = glob(['*.cpp'], excludes=['*Test.cpp']),
|
||||
deps = [
|
||||
'@/folly:conv',
|
||||
'@/folly:exception_string',
|
||||
],
|
||||
external_deps = [
|
||||
('googletest', None, 'gtest'),
|
||||
],
|
||||
name = "test_lib",
|
||||
srcs = glob(
|
||||
["*.cpp"],
|
||||
excludes = ["*Test.cpp"],
|
||||
),
|
||||
headers = glob(["*.h"]),
|
||||
deps = [
|
||||
"@/folly:conv",
|
||||
"@/folly:exception_string",
|
||||
],
|
||||
external_deps = [
|
||||
("googletest", None, "gtest"),
|
||||
],
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
python_binary(
|
||||
name = 'post-clone',
|
||||
main_module = 'eden/hooks/hg/post-clone',
|
||||
srcs = [
|
||||
'post-clone.py',
|
||||
],
|
||||
name = "post-clone",
|
||||
srcs = [
|
||||
"post-clone.py",
|
||||
],
|
||||
main_module = "eden/hooks/hg/post-clone",
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
for daemon_target, suffix in get_daemon_versions():
|
||||
artifacts = get_test_env_and_deps(suffix)
|
||||
|
@ -1,4 +1,4 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
# We test only with the oss version because it builds faster
|
||||
# and we do not expect that testing against the internal version
|
||||
@ -8,17 +8,17 @@ oss_suffix = get_oss_suffix()
|
||||
artifacts = get_test_env_and_deps(oss_suffix)
|
||||
|
||||
python_unittest(
|
||||
name = 'hg',
|
||||
srcs = glob(['*.py']),
|
||||
env = artifacts['env'],
|
||||
deps = artifacts['deps'] + [
|
||||
'@/eden/hg/eden:eden',
|
||||
'@/eden/integration/hg/lib:testutil',
|
||||
# Note: pudb looks in $HOME/.config/pudb or $XDG_CONFIG_HOME/pudb for its
|
||||
# configuration settings. Because Eden's integration tests override $HOME,
|
||||
# it is a good idea to set $XDG_CONFIG_HOME if you want to use pudb. If no
|
||||
# config file is found, you will have to go through pudb's welcome flow
|
||||
# every time you use pudb to debug a test, which is pretty annoying.
|
||||
'@/pudb:pudb', # For convenience so we don't have to rebuild to debug.
|
||||
],
|
||||
name = "hg",
|
||||
srcs = glob(["*.py"]),
|
||||
env = artifacts["env"],
|
||||
deps = artifacts["deps"] + [
|
||||
"@/eden/hg/eden:eden",
|
||||
"@/eden/integration/hg/lib:testutil",
|
||||
# Note: pudb looks in $HOME/.config/pudb or $XDG_CONFIG_HOME/pudb for its
|
||||
# configuration settings. Because Eden's integration tests override $HOME,
|
||||
# it is a good idea to set $XDG_CONFIG_HOME if you want to use pudb. If no
|
||||
# config file is found, you will have to go through pudb's welcome flow
|
||||
# every time you use pudb to debug a test, which is pretty annoying.
|
||||
"@/pudb:pudb", # For convenience so we don't have to rebuild to debug.
|
||||
],
|
||||
)
|
||||
|
@ -1,31 +1,33 @@
|
||||
include_defs('//eden/DEFS')
|
||||
include_defs("//eden/DEFS")
|
||||
|
||||
# We test only with the oss version because it builds faster
|
||||
# and we do not expect that testing against the internal version
|
||||
# will provide any additional signal.
|
||||
oss_suffix = get_oss_suffix()
|
||||
daemon_target = '@/eden/fs/service:edenfs%s' % oss_suffix
|
||||
|
||||
daemon_target = "@/eden/fs/service:edenfs%s" % oss_suffix
|
||||
|
||||
artifacts = get_test_env_and_deps(oss_suffix)
|
||||
|
||||
python_library(
|
||||
name = 'testutil',
|
||||
srcs = [
|
||||
'hg_extension_test_base.py',
|
||||
'histedit_command.py',
|
||||
],
|
||||
deps = [
|
||||
'@/eden/integration/lib:lib',
|
||||
'@/eden/hooks/hg:post-clone',
|
||||
],
|
||||
name = "testutil",
|
||||
srcs = [
|
||||
"hg_extension_test_base.py",
|
||||
"histedit_command.py",
|
||||
],
|
||||
deps = [
|
||||
"@/eden/hooks/hg:post-clone",
|
||||
"@/eden/integration/lib:lib",
|
||||
],
|
||||
)
|
||||
|
||||
python_unittest(
|
||||
name = 'lib',
|
||||
srcs = [
|
||||
'hg_extension_test_base_test.py',
|
||||
],
|
||||
env = artifacts['env'],
|
||||
deps = artifacts['deps'] + [
|
||||
':testutil',
|
||||
],
|
||||
name = "lib",
|
||||
srcs = [
|
||||
"hg_extension_test_base_test.py",
|
||||
],
|
||||
env = artifacts["env"],
|
||||
deps = artifacts["deps"] + [
|
||||
":testutil",
|
||||
],
|
||||
)
|
||||
|
@ -1,12 +1,12 @@
|
||||
python_library(
|
||||
name = 'lib',
|
||||
srcs = glob(['*.py']),
|
||||
deps = [
|
||||
'@/eden/cli:lib',
|
||||
'@/eden/fs/service:py-client',
|
||||
'@/eden/fs/service:thrift-py',
|
||||
],
|
||||
external_deps = [
|
||||
'py-hypothesis'
|
||||
],
|
||||
name = "lib",
|
||||
srcs = glob(["*.py"]),
|
||||
deps = [
|
||||
"@/eden/cli:lib",
|
||||
"@/eden/fs/service:py-client",
|
||||
"@/eden/fs/service:thrift-py",
|
||||
],
|
||||
external_deps = [
|
||||
"py-hypothesis",
|
||||
],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user