Move Eclipse related stuff into tools/eclipse

Try to reduce the size of the top-level BUCK file by moving
anything that has to do with Eclipse project generation and
classpath management into tools/eclipse.

Change-Id: Id779eaff4fe732908b28a8e3441004e364b59e21
This commit is contained in:
Shawn Pearce
2013-05-10 12:38:49 -07:00
parent 6796c3f36b
commit 82e66ee4e5
21 changed files with 100 additions and 89 deletions

73
tools/eclipse/BUCK Normal file
View File

@@ -0,0 +1,73 @@
include_defs('//tools/build.defs')
genrule(
name = 'eclipse',
cmd = '',
srcs = [],
deps = [
':_classpath',
':_project',
],
out = '__fake.eclipse__',
)
genrule(
name = 'eclipse_project',
cmd = '',
srcs = [],
deps = [
':_classpath_nocompile',
':_project',
],
out = '__fake.eclipse__',
)
java_library(
name = 'classpath',
deps = LIBS + PGMLIBS + [
'//gerrit-acceptance-tests:acceptance_tests',
'//gerrit-gwtdebug:gwtdebug',
'//gerrit-gwtui:ui_module',
'//gerrit-httpd:httpd_tests',
'//gerrit-main:main_lib',
'//gerrit-server:server__compile',
'//lib/prolog:compiler_lib',
] + scan_plugins(),
)
genrule(
name = '_project',
cmd = '${:gen_project} $OUT',
srcs = [],
deps = [':gen_project'],
out = 'project',
)
genrule(
name = '_classpath',
cmd = '${:gen_classpath} $OUT $DEPS',
srcs = [],
deps = [
':classpath',
':gen_classpath',
],
out = 'classpath',
)
genrule(
name = '_classpath_nocompile',
cmd = '${:gen_classpath}',
srcs = [],
deps = [':gen_classpath'],
out = '__fake.eclipse__',
)
python_binary(
name = 'gen_classpath',
main = 'gen_classpath.py',
)
python_binary(
name = 'gen_project',
main = 'gen_project.py',
)