mirror of
https://github.com/facebook/sapling.git
synced 2024-12-27 15:13:37 +03:00
Include build files that were inadvertently excluded from the initial export.
fbshipit-source-id: 2c76f0d5e55d84859ad9f4841cbe6994a62446f8
This commit is contained in:
parent
2eeea32117
commit
83f42a9fa6
50
eden/fs/cli/TARGETS
Normal file
50
eden/fs/cli/TARGETS
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
include_defs('//eden/DEFS')
|
||||||
|
|
||||||
|
if is_facebook_internal():
|
||||||
|
edenfs_target = '@/eden/fs/service:edenfs'
|
||||||
|
else:
|
||||||
|
edenfs_target = '@/eden/fs/service:edenfs-oss'
|
||||||
|
|
||||||
|
python_binary(
|
||||||
|
name = 'cli',
|
||||||
|
py_version = "<3",
|
||||||
|
srcs = glob(['*.py'], excludes = ['__init__.py']),
|
||||||
|
gen_srcs = {
|
||||||
|
edenfs_target: 'eden-server',
|
||||||
|
},
|
||||||
|
main_module = 'eden/fs/cli/main',
|
||||||
|
deps = [
|
||||||
|
':glue',
|
||||||
|
'@/eden/fs/importer/git:git',
|
||||||
|
'@/eden/fs/inodes:inodes',
|
||||||
|
'@/eden/fs/service:thrift-py',
|
||||||
|
'@/libfb/py:parutil',
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
python_library(
|
||||||
|
name = 'glue',
|
||||||
|
srcs = [
|
||||||
|
'__init__.py',
|
||||||
|
],
|
||||||
|
base_module = 'glue',
|
||||||
|
deps = [
|
||||||
|
':_glue',
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_python_extension(
|
||||||
|
name = '_glue',
|
||||||
|
base_module = 'glue',
|
||||||
|
srcs = [
|
||||||
|
'_glue.pyx',
|
||||||
|
],
|
||||||
|
cython_args = [
|
||||||
|
'--cplus',
|
||||||
|
'-3',
|
||||||
|
],
|
||||||
|
compiler_flags=['-fno-strict-aliasing'],
|
||||||
|
deps = [
|
||||||
|
'@/eden/fs/importer/git:git',
|
||||||
|
],
|
||||||
|
)
|
9
eden/fs/config/TARGETS
Normal file
9
eden/fs/config/TARGETS
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'config',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/eden/utils:utils',
|
||||||
|
'@/folly:folly',
|
||||||
|
],
|
||||||
|
)
|
12
eden/fs/config/test/TARGETS
Normal file
12
eden/fs/config/test/TARGETS
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
cpp_unittest(
|
||||||
|
name = 'test',
|
||||||
|
srcs = glob(['*Test.cpp']),
|
||||||
|
deps = [
|
||||||
|
'@/eden/fs/config:config',
|
||||||
|
'@/eden/utils:utils',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('boost', 'any'),
|
||||||
|
'gtest',
|
||||||
|
],
|
||||||
|
)
|
26
eden/fs/importer/git/TARGETS
Normal file
26
eden/fs/importer/git/TARGETS
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
MAIN_SRCS = ['main.cpp']
|
||||||
|
|
||||||
|
cpp_library(
|
||||||
|
name = 'git',
|
||||||
|
srcs = glob(['*.cpp'], excludes = MAIN_SRCS),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
'@/eden/fs/store:store',
|
||||||
|
'@/folly:folly',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('boost', 'any'), # Just in case?
|
||||||
|
('libgit2', None, 'git2'),
|
||||||
|
('openssl', None, 'ssl'),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_binary(
|
||||||
|
name = 'main',
|
||||||
|
srcs = MAIN_SRCS,
|
||||||
|
deps = [
|
||||||
|
':git',
|
||||||
|
'@/folly/init:init',
|
||||||
|
],
|
||||||
|
)
|
14
eden/fs/importer/git/test/TARGETS
Normal file
14
eden/fs/importer/git/test/TARGETS
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
python_unittest(
|
||||||
|
name = 'test',
|
||||||
|
py_version = "<3",
|
||||||
|
srcs = [
|
||||||
|
'integration_test.py',
|
||||||
|
],
|
||||||
|
gen_srcs = {
|
||||||
|
'@/eden/fs/importer/git:main': 'main',
|
||||||
|
},
|
||||||
|
deps = [
|
||||||
|
'@/libfb/py:parutil',
|
||||||
|
'@/eden/fs/importer/git:main',
|
||||||
|
],
|
||||||
|
)
|
15
eden/fs/inodes/TARGETS
Normal file
15
eden/fs/inodes/TARGETS
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'inodes',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/folly:folly',
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
'@/eden/fs/overlay:overlay',
|
||||||
|
'@/eden/fs/store:store',
|
||||||
|
'@/eden/fuse:fusell',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('boost', 'any'),
|
||||||
|
],
|
||||||
|
)
|
12
eden/fs/integration/TARGETS
Normal file
12
eden/fs/integration/TARGETS
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
python_unittest(
|
||||||
|
name='integration',
|
||||||
|
py_version="<3",
|
||||||
|
srcs=glob(['*.py']),
|
||||||
|
gen_srcs = {
|
||||||
|
'@/eden/fs/cli:cli': 'eden-cli',
|
||||||
|
},
|
||||||
|
deps=[
|
||||||
|
'@/libfb/py:parutil',
|
||||||
|
'@/eden/fs/cli:cli',
|
||||||
|
],
|
||||||
|
)
|
9
eden/fs/mercurial/TARGETS
Normal file
9
eden/fs/mercurial/TARGETS
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
cpp_library(
|
||||||
|
name="mercurial",
|
||||||
|
srcs=glob(['*.cpp']),
|
||||||
|
headers=glob(['*.h']),
|
||||||
|
deps=[
|
||||||
|
"@/folly:folly",
|
||||||
|
"@/eden/fuse:fusell",
|
||||||
|
],
|
||||||
|
)
|
12
eden/fs/model/TARGETS
Normal file
12
eden/fs/model/TARGETS
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'model',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/folly:folly',
|
||||||
|
'@/eden/utils:utils',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('boost', 'any'),
|
||||||
|
],
|
||||||
|
)
|
12
eden/fs/model/git/TARGETS
Normal file
12
eden/fs/model/git/TARGETS
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'git',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/folly:folly',
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('libgit2', None, 'git2'),
|
||||||
|
],
|
||||||
|
)
|
15
eden/fs/model/git/test/TARGETS
Normal file
15
eden/fs/model/git/test/TARGETS
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
cpp_unittest(
|
||||||
|
name = 'test',
|
||||||
|
srcs = glob(['*Test.cpp']),
|
||||||
|
deps = [
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
'@/eden/fs/model/git:git',
|
||||||
|
'@/folly:folly',
|
||||||
|
'@/crypto/lib/cpp:fbcrypto-base',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
'glog',
|
||||||
|
'gmock',
|
||||||
|
'gtest',
|
||||||
|
],
|
||||||
|
)
|
10
eden/fs/model/test/TARGETS
Normal file
10
eden/fs/model/test/TARGETS
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
cpp_unittest(
|
||||||
|
name = 'test',
|
||||||
|
srcs = glob(['*Test.cpp']),
|
||||||
|
deps = [
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
'gtest',
|
||||||
|
],
|
||||||
|
)
|
21
eden/fs/overlay/TARGETS
Normal file
21
eden/fs/overlay/TARGETS
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'overlay',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/folly:folly',
|
||||||
|
'@/eden/utils:utils',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('boost', 'any'),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_unittest(
|
||||||
|
name = "test_overlay",
|
||||||
|
srcs = glob(['test/*Test.cpp']),
|
||||||
|
deps = [
|
||||||
|
':overlay',
|
||||||
|
'@/folly/experimental:test_util',
|
||||||
|
],
|
||||||
|
)
|
11
eden/fs/rocksdb/TARGETS
Normal file
11
eden/fs/rocksdb/TARGETS
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'rocksdb',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/folly:folly',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
'rocksdb',
|
||||||
|
],
|
||||||
|
)
|
63
eden/fs/service/TARGETS
Normal file
63
eden/fs/service/TARGETS
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
include_defs('//eden/DEFS')
|
||||||
|
include_defs('//eden/fs/service/DEFS')
|
||||||
|
|
||||||
|
create_eden_fs_rules(
|
||||||
|
suffix = '-oss',
|
||||||
|
subdir = 'out.oss',
|
||||||
|
server_srcs = ['oss/EdenServer.cpp'],
|
||||||
|
server_deps = [],
|
||||||
|
)
|
||||||
|
|
||||||
|
thrift_library(
|
||||||
|
name = 'thrift',
|
||||||
|
thrift_args = ['--strict'],
|
||||||
|
thrift_srcs = {
|
||||||
|
'eden.thrift': ['EdenService'],
|
||||||
|
},
|
||||||
|
py_base_module = 'facebook',
|
||||||
|
languages = ['cpp2', 'java', 'py'],
|
||||||
|
deps = ['@/common/fb303/if:fb303'],
|
||||||
|
)
|
||||||
|
|
||||||
|
if is_facebook_internal():
|
||||||
|
include_defs('//eden/fs/service/facebook/DEFS')
|
||||||
|
create_eden_fs_rules(
|
||||||
|
suffix = '',
|
||||||
|
subdir = 'out.fb',
|
||||||
|
server_srcs = ['facebook/EdenServer.cpp'],
|
||||||
|
server_deps = ['@/common/services/cpp:cpp'],
|
||||||
|
)
|
||||||
|
|
||||||
|
# JAVA BINDINGS FOR THRIFT ENDPOINT
|
||||||
|
#
|
||||||
|
# There are two JAR files that we expect Java clients to use:
|
||||||
|
# 1. A JAR that defines Eden's Thrift API.
|
||||||
|
# 2. A JAR that contains the general Java library for Thrift.
|
||||||
|
#
|
||||||
|
# For 1, when eden.thrift changes, run:
|
||||||
|
#
|
||||||
|
# buck build //eden/fs/service:thrift#java
|
||||||
|
#
|
||||||
|
# Copy the resulting JAR (`buck --show-output //eden/fs/service:thrift#java`) to
|
||||||
|
# the project where you are using Eden in Java.
|
||||||
|
#
|
||||||
|
# For 2, you should only have to build this once:
|
||||||
|
#
|
||||||
|
# buck build //eden/fs/service:java-thrift-dependencies
|
||||||
|
#
|
||||||
|
# Copy the resulting JAR
|
||||||
|
# (`buck --show-output //eden/fs/service:java-thrift-dependencies`) to any
|
||||||
|
# project where you are using Thrift in Java. In theory, if the Java bindings
|
||||||
|
# for Thrift change, you will have to rebuild this, but it's unclear whether
|
||||||
|
# that code sees much activity these days. To be safe, you could always update
|
||||||
|
# this JAR when you update the Eden JAR.
|
||||||
|
|
||||||
|
# This java_binary() exists as a simple way to get //thrift/lib/java/src:thrift
|
||||||
|
# and all of its transitive dependencies into one JAR file.
|
||||||
|
java_binary(
|
||||||
|
name = 'java-thrift-dependencies',
|
||||||
|
deps = [
|
||||||
|
'//common/fb303/if:fb303#java',
|
||||||
|
'//thrift/lib/java/src:thrift',
|
||||||
|
],
|
||||||
|
)
|
14
eden/fs/store/TARGETS
Normal file
14
eden/fs/store/TARGETS
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = 'store',
|
||||||
|
srcs = glob(['*.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
'@/eden/fs/rocksdb:rocksdb',
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
'@/eden/fs/model/git:git',
|
||||||
|
'@/folly:folly',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
'rocksdb',
|
||||||
|
],
|
||||||
|
)
|
14
eden/fs/store/test/TARGETS
Normal file
14
eden/fs/store/test/TARGETS
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
cpp_unittest(
|
||||||
|
name = 'test',
|
||||||
|
srcs = glob(['*Test.cpp']),
|
||||||
|
deps = [
|
||||||
|
'@/crypto/lib/cpp:fbcrypto-base',
|
||||||
|
'@/eden/fs/model:model',
|
||||||
|
'@/eden/fs/store:store',
|
||||||
|
'@/folly:folly',
|
||||||
|
'@/folly/experimental:test_util',
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
'gtest',
|
||||||
|
],
|
||||||
|
)
|
14
eden/fuse/TARGETS
Normal file
14
eden/fuse/TARGETS
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = "fusell",
|
||||||
|
srcs = glob(["*.cpp", "passthru/*.cpp"]),
|
||||||
|
headers = glob(["*.h", "passthru/*.h"]),
|
||||||
|
deps = [
|
||||||
|
"@/folly:folly",
|
||||||
|
"@/wangle:wangle",
|
||||||
|
"@/eden/fuse/privhelper:privhelper",
|
||||||
|
"@/eden/utils:utils",
|
||||||
|
],
|
||||||
|
external_deps = [
|
||||||
|
('fuse', None, 'fuse'),
|
||||||
|
],
|
||||||
|
)
|
9
eden/fuse/privhelper/TARGETS
Normal file
9
eden/fuse/privhelper/TARGETS
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = "privhelper",
|
||||||
|
srcs = glob(["*.cpp"]),
|
||||||
|
headers = glob(["*.h"]),
|
||||||
|
deps = [
|
||||||
|
"@/folly/io:iobuf",
|
||||||
|
"@/folly:folly",
|
||||||
|
],
|
||||||
|
)
|
11
eden/fuse/privhelper/test/TARGETS
Normal file
11
eden/fuse/privhelper/test/TARGETS
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
cpp_unittest(
|
||||||
|
name = "privhelper_test",
|
||||||
|
srcs = [
|
||||||
|
"PrivHelperTest.cpp",
|
||||||
|
"PrivHelperTestServer.cpp",
|
||||||
|
],
|
||||||
|
deps = [
|
||||||
|
"@/eden/fuse/privhelper:privhelper",
|
||||||
|
"@/folly/experimental:test_util",
|
||||||
|
],
|
||||||
|
)
|
19
eden/utils/TARGETS
Normal file
19
eden/utils/TARGETS
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
cpp_library(
|
||||||
|
name = "utils",
|
||||||
|
srcs = glob(['*.cpp'], excludes=['**/*Test.cpp']),
|
||||||
|
headers = glob(['*.h']),
|
||||||
|
deps = [
|
||||||
|
"@/folly:evicting_cache_map",
|
||||||
|
"@/folly:folly",
|
||||||
|
"@/folly/futures:futures",
|
||||||
|
"@/folly:subprocess",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_unittest(
|
||||||
|
name = "test_utils",
|
||||||
|
srcs = glob(['**/*Test.cpp']),
|
||||||
|
deps = [
|
||||||
|
':utils'
|
||||||
|
],
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user