move a bunch of things

This commit is contained in:
Yangqing Jia 2016-03-08 15:15:19 -08:00
parent 9e5c795c11
commit 0747a4a7fd
18 changed files with 39 additions and 6399 deletions

View File

@ -13,9 +13,9 @@ test:
@python build.py test
lint:
@find caffe2 -type f -exec python cpplint.py {} \;
@find caffe2 -type f -exec python brewtool/cpplint.py {} \;
linecount:
@cloc --read-lang-def=caffe.cloc caffe2 pycaffe2 || \
@cloc --read-lang-def=brewtool/caffe.cloc caffe2 pycaffe2 || \
echo "Cloc is not available on the machine. You can install cloc with " && \
echo " sudo apt-get install cloc"

View File

@ -1,53 +0,0 @@
Bourne Shell
filter remove_matches ^\s*#
filter remove_inline #.*$
extension sh
script_exe sh
C
filter remove_matches ^\s*//
filter call_regexp_common C
filter remove_inline //.*$
extension c
extension ec
extension pgc
C++
filter remove_matches ^\s*//
filter remove_inline //.*$
filter call_regexp_common C
extension C
extension cc
extension cpp
extension cxx
extension pcc
C/C++ Header
filter remove_matches ^\s*//
filter call_regexp_common C
filter remove_inline //.*$
extension H
extension h
extension hh
extension hpp
CUDA
filter remove_matches ^\s*//
filter remove_inline //.*$
filter call_regexp_common C
extension cu
Python
filter remove_matches ^\s*#
filter docstring_to_C
filter call_regexp_common C
filter remove_inline #.*$
extension py
make
filter remove_matches ^\s*#
filter remove_inline #.*$
extension Gnumakefile
extension Makefile
extension am
extension gnumakefile
extension makefile
filename Gnumakefile
filename Makefile
filename gnumakefile
filename makefile
script_exe make

View File

@ -75,8 +75,8 @@ cc_test(
],
deps = [
":core",
"//gtest:gtest",
"//gtest:caffe2_gtest_main",
"//third_party:gtest",
"//caffe2/test:caffe2_gtest_main",
],
)
@ -87,8 +87,8 @@ cc_test(
],
deps = [
":core_gpu",
"//gtest:gtest",
"//gtest:caffe2_gtest_main",
"//third_party:gtest",
"//caffe2/test:caffe2_gtest_main",
],
)
@ -101,7 +101,7 @@ cc_test(
],
deps = [
":core_gpu",
"//gtest:gtest",
"//gtest:caffe2_gtest_main",
"//third_party:gtest",
"//caffe2/test:caffe2_gtest_main",
],
)

View File

@ -11,6 +11,6 @@ cc_test(
"//caffe2/utils:proto_utils",
"//caffe2/data/toy:toy_models",
"//caffe2/data/mnist:mnist_models",
"//gtest:caffe2_gtest_main",
"//caffe2/test:caffe2_gtest_main",
],
)

View File

@ -52,7 +52,7 @@ mpi_test(
deps = [
":mpi_ops",
"//caffe2:all_available_ops",
"//gtest:gtest",
"//third_party:gtest",
]
)
@ -64,6 +64,6 @@ mpi_test(
deps = [
":mpi_ops",
"//caffe2:all_available_ops",
"//gtest:gtest",
"//third_party:gtest",
]
)

View File

@ -118,6 +118,6 @@ cc_test(
":core_ops",
":core_ops_gpu",
"//caffe2/data/mnist:mnist_minidb",
"//gtest:caffe2_gtest_main",
"//caffe2/test:caffe2_gtest_main",
]
)

14
caffe2/test/BREW Normal file
View File

@ -0,0 +1,14 @@
cc_library(
name = "caffe2_gtest_main",
srcs = ["caffe2_gtest_main.cc"],
deps = [
"//third_party:gtest",
"//caffe2/core:core",
],
)
cc_test(
name = "caffe2_gtest_main_binary",
srcs = [],
deps = [":caffe2_gtest_main"],
)

View File

@ -45,7 +45,7 @@ cc_test(
deps = [
":math",
"//caffe2/proto:caffe2_proto",
"//gtest:caffe2_gtest_main",
"//caffe2/test:caffe2_gtest_main",
"//caffe2/core:core",
],
)
@ -64,7 +64,7 @@ cc_test(
],
deps = [
":simple_queue",
"//gtest:caffe2_gtest_main",
"//caffe2/test:caffe2_gtest_main",
],
)

6309
cpplint.py vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +0,0 @@
cc_library(
name = "gtest",
srcs = ["gtest-all.cpp"],
hdrs = ["gtest.h"],
)
cc_library(
name = "caffe2_gtest_main",
srcs = ["caffe2_gtest_main.cc"],
deps = [
":gtest",
"//caffe2/core:core",
],
)
cc_test(
name = "caffe2_gtest_main_binary",
srcs = ["caffe2_gtest_main.cc"],
deps = [
":gtest",
"//caffe2/core:core",
],
)

6
third_party/BREW vendored
View File

@ -108,6 +108,12 @@ cc_thirdparty_target(
cc_obj_files = ["-lglog"] if Brewery.Env.Config.USE_GLOG else [],
)
cc_thirdparty_target(
name = "gtest",
deps = ["//third_party/gtest:gtest"],
cc_obj_files = [],
)
cc_thirdparty_target(
name = "leveldb",
deps = [":snappy"],

5
third_party/gtest/BREW vendored Normal file
View File

@ -0,0 +1,5 @@
cc_library(
name = "gtest",
srcs = ["gtest-all.cpp"],
hdrs = ["gtest.h"],
)