pytorch/scripts
Yangqing Jia 91d76f5dbd Reapply Windows fix
Summary:
Last fix was uncommitted due to a bug in internal build (CAFFE2_API causing error). This one re-applies it as well as a few more, especially enabling gtest.

Earlier commit message: Basically, this should make windows {static_lib, shared_lib} * {static_runtime, shared_runtime} * {cpu, gpu} work other than gpu shared_lib, which willyd kindly pointed out a symbol limit problem. A few highlights:
(1) Updated newest protobuf.
(2) use protoc dllexport command to ensure proper symbol export for windows.
(3) various code updates to make sure that C2 symbols are properly shown
(4) cmake file changes to make build proper
(5) option to choose static runtime and shared runtime similar to protobuf
(6) revert to visual studio 2015 as current cuda and msvc 2017 do not play well together.
(7) enabled gtest and fixed testing bugs.

Earlier PR is #1793

Closes https://github.com/caffe2/caffe2/pull/1827

Differential Revision: D6832086

Pulled By: Yangqing

fbshipit-source-id: 85f86e9a992ee5c53c70b484b761c9d6aed721df
2018-01-29 10:03:28 -08:00
..
appveyor bugfix for Windows, esp. VS 2017 2017-03-21 05:17:59 -07:00
add_apache_header.sh Re-license to Apache 2017-09-28 16:22:00 -07:00
apache_header.txt Re-license to Apache 2017-09-28 16:22:00 -07:00
build_anaconda.sh Assorted small change to conda scripts 2018-01-26 09:32:36 -08:00
build_android.sh remove "-s" compilation flag from clang when build for Android 2018-01-29 00:03:02 -08:00
build_host_protoc.bat Reapply Windows fix 2018-01-29 10:03:28 -08:00
build_host_protoc.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_ios.sh Modernizing the gflags dependency in cmake. 2018-01-27 19:31:14 -08:00
build_local.sh Adding conda specific script to macos builds 2018-01-03 17:14:27 -08:00
build_raspbian.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_tegra_x1.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_tizen.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_windows.bat Reapply Windows fix 2018-01-29 10:03:28 -08:00
diagnose_protobuf.py Re-apply #266 2017-04-25 21:17:04 -07:00
get_python_cmake_flags.py Officially support Python 3 in Conda build. 2017-09-23 16:16:49 -07:00
start_ipython_notebook.sh Ipython notebook directory name is changed, Change from ipython to jupyter, Also pass arguments instead of fixing --ip 2017-12-11 13:05:40 -08:00
temp.sh Re-license to Apache 2017-09-28 16:22:00 -07:00