blob: 8bc7fbf47bea838800166c3c205411434d5eafed [file] [log] [blame]
CONFIG_SRCS = [
'PythonBuckConfig.java',
]
java_library(
name = 'config',
srcs = CONFIG_SRCS,
deps = [
'//src/com/facebook/buck/cli:config',
'//src/com/facebook/buck/io:io',
'//src/com/facebook/buck/util:exceptions',
'//src/com/facebook/buck/util:io',
'//third-party/java/guava:guava',
':support',
],
visibility = ['PUBLIC'],
)
SUPPORT_SRCS = [
'PythonEnvironment.java',
'PythonVersion.java',
]
java_immutables_library(
name = 'support',
srcs = SUPPORT_SRCS,
deps = [
'//third-party/java/guava:guava',
],
visibility = ['PUBLIC'],
)
java_immutables_library(
name = 'rules',
srcs = glob(['*.java'], excludes=CONFIG_SRCS + SUPPORT_SRCS),
deps = [
':support',
'//src/com/facebook/buck/cxx:platform',
'//src/com/facebook/buck/graph:graph',
'//src/com/facebook/buck/io:io',
'//src/com/facebook/buck/model:model',
'//src/com/facebook/buck/parser:rule_pattern',
'//src/com/facebook/buck/rules:build_rule',
'//src/com/facebook/buck/rules:rules',
'//src/com/facebook/buck/shell:steps',
'//src/com/facebook/buck/step:step',
'//src/com/facebook/buck/step/fs:fs',
'//src/com/facebook/buck/util:constants',
'//src/com/facebook/buck/util:util',
'//src/com/facebook/buck/util:exceptions',
'//src/com/facebook/buck/test:test',
'//src/com/facebook/buck/test/selectors:selectors',
'//src/com/facebook/buck/zip:unzip',
'//third-party/java/guava:guava',
'//third-party/java/infer-annotations:infer-annotations',
'//third-party/java/jsr:jsr305',
'//third-party/java/jackson:jackson',
],
visibility = [
'//src/com/facebook/buck/rules:types',
'//src/com/facebook/buck/ocaml:rules',
'//src/com/facebook/buck/cxx:rules',
'//test/com/facebook/buck/python:',
'//test/com/facebook/buck/cxx:cpp',
'//src/com/facebook/buck/thrift:rules',
'//test/com/facebook/buck/thrift:thrift',
],
)
python_library(
name = 'pexlib',
resources = [
'//third-party/py/setuptools:pkg_resources.py',
],
)
python_binary(
name = 'pex',
main = 'pex.py',
deps = [
':pexlib',
'//third-party/py/twitter-commons/src/python:twitter-commons',
],
visibility = [
'PUBLIC',
],
)