virtualbuildenvļ
Warning
This is a deprecated feature. Please refer to the Migration Guidelines to find the feature that replaced this one.
This is the reference page for virtualbuildenv generator.
Go to Mastering/Virtual Environments if you want to learn
how to use Conan virtual environments.
Created filesļ
activate_build.{sh|bat}
deactivate_build.{sh|bat}
Usageļ
Linux/macOS:
$ source activate_build.sh
Windows:
$ activate_build.bat
Variables declaredļ
ENVIRONMENT VAR  | 
DESCRIPTION  | 
|---|---|
LIBS  | 
Library names to link  | 
LDFLAGS  | 
Link flags, (-L, -m64, -m32)  | 
CFLAGS  | 
Options for the C compiler (-g, -s, -m64, -m32, -fPIC)  | 
CXXFLAGS  | 
Options for the C++ compiler (-g, -s, -stdlib, -m64, -m32, -fPIC)  | 
CPPFLAGS  | 
Preprocessor definitions (-D, -I)  | 
LIB  | 
Library paths separated with ā;ā (Visual Studio)  | 
CL  | 
ā/Iā flags with include directories (Visual Studio)  | 
In the case of using this generator to compile with Visual Studio, it also sets the environment
variables needed via tools.vcvars() to build your project. Some of these variables are:
VSINSTALLDIR=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/
WINDIR=C:/WINDOWS
WindowsLibPath=C:/Program Files (x86)/Windows Kits/10/UnionMetadata/10.0.16299.0;
WindowsSdkBinPath=C:/Program Files (x86)/Windows Kits/10/bin/
WindowsSdkDir=C:/Program Files (x86)/Windows Kits/10/
WindowsSDKLibVersion=10.0.16299.0/
WindowsSdkVerBinPath=C:/Program Files (x86)/Windows Kits/10/bin/10.0.16299.0/