1*da0073e9SAndroid Build Coastguard Worker# ---[ Declare variables that we are going to use across the Caffe2 build. 2*da0073e9SAndroid Build Coastguard Worker# This file defines common, Caffe2-wide variables that we use to collect 3*da0073e9SAndroid Build Coastguard Worker# source files and other things. Each variable is annotated with their 4*da0073e9SAndroid Build Coastguard Worker# intended uses. 5*da0073e9SAndroid Build Coastguard Worker# Note that adding and / or deleting these variables usually involves 6*da0073e9SAndroid Build Coastguard Worker# changing the whole build system, so make sure you send a PR early if you 7*da0073e9SAndroid Build Coastguard Worker# want to change them. 8*da0073e9SAndroid Build Coastguard Worker 9*da0073e9SAndroid Build Coastguard Worker# Caffe2_{CPU,GPU}_SRCS is the list that will have all the related source 10*da0073e9SAndroid Build Coastguard Worker# files for CPU and GPU respectively. They will be filled with the 11*da0073e9SAndroid Build Coastguard Worker# CMakeLists.txt files under each folder respectively. 12*da0073e9SAndroid Build Coastguard Workerset(Caffe2_CPU_SRCS) 13*da0073e9SAndroid Build Coastguard Workerset(Caffe2_GPU_SRCS) 14*da0073e9SAndroid Build Coastguard Worker 15*da0073e9SAndroid Build Coastguard Worker# Caffe2_{CPU,GPU}_TEST_SRCS is the list that will have all the related source 16*da0073e9SAndroid Build Coastguard Worker# files for CPU and GPU tests respectively. 17*da0073e9SAndroid Build Coastguard Workerset(Caffe2_CPU_TEST_SRCS) 18*da0073e9SAndroid Build Coastguard Workerset(Caffe2_GPU_TEST_SRCS) 19*da0073e9SAndroid Build Coastguard Worker 20*da0073e9SAndroid Build Coastguard Worker# Caffe2_{CPU,GPU}_INCLUDE is the list that will have all the include 21*da0073e9SAndroid Build Coastguard Worker# directories for CPU and GPU respectively. 22*da0073e9SAndroid Build Coastguard Workerset(Caffe2_CPU_INCLUDE) 23*da0073e9SAndroid Build Coastguard Workerset(Caffe2_GPU_INCLUDE) 24*da0073e9SAndroid Build Coastguard Worker 25*da0073e9SAndroid Build Coastguard Worker# Lists for Caffe2 dependency libraries, for CPU and CUDA respectively. 26*da0073e9SAndroid Build Coastguard Workerset(Caffe2_DEPENDENCY_LIBS "") 27*da0073e9SAndroid Build Coastguard Workerset(Caffe2_CUDA_DEPENDENCY_LIBS "") 28*da0073e9SAndroid Build Coastguard Worker# This variable contains dependency libraries of Caffe2 which requires whole 29*da0073e9SAndroid Build Coastguard Worker# symbol linkage. One example is the onnx lib where we need all its schema 30*da0073e9SAndroid Build Coastguard Worker# symbols. However, if the lib is whole linked in caffe2 lib, we don't want 31*da0073e9SAndroid Build Coastguard Worker# it to be linked in binaries that will link caffe2 lib. Because if caffe2 lib 32*da0073e9SAndroid Build Coastguard Worker# is built as dynamic library, it will result in two copied of symbols of 33*da0073e9SAndroid Build Coastguard Worker# Caffe2_DEPENDENCY_WHOLE_LINK_LIBS existing in caffe2.so and the binary, which 34*da0073e9SAndroid Build Coastguard Worker# will cause issues. Therefore Caffe2_DEPENDENCY_WHOLE_LINK_LIBS will only 35*da0073e9SAndroid Build Coastguard Worker# be linked by caffe2 lib. 36*da0073e9SAndroid Build Coastguard Workerset(Caffe2_DEPENDENCY_WHOLE_LINK_LIBS "") 37*da0073e9SAndroid Build Coastguard Worker 38*da0073e9SAndroid Build Coastguard Worker# Lists for Caffe2 public dependency libraries. These libraries will be 39*da0073e9SAndroid Build Coastguard Worker# transitive to any libraries that depends on Caffe2. 40*da0073e9SAndroid Build Coastguard Workerset(Caffe2_PUBLIC_DEPENDENCY_LIBS "") 41*da0073e9SAndroid Build Coastguard Workerset(Caffe2_PUBLIC_CUDA_DEPENDENCY_LIBS "") 42*da0073e9SAndroid Build Coastguard Worker 43*da0073e9SAndroid Build Coastguard Worker# List of modules that is built as part of the main Caffe2 build. For all 44*da0073e9SAndroid Build Coastguard Worker# binary targets, such as Python and native binaries, they will be linked 45*da0073e9SAndroid Build Coastguard Worker# automatically with these modules. 46*da0073e9SAndroid Build Coastguard Workerset(Caffe2_MODULES "") 47