Updated xs/Build.PL to support Visual Studio compiler suite.

Updated xs/Build.PL to understand BOOST_LIBRARY_PATH and
BOOST_INCLUDE_PATH environment variables. This way one may easily
switch between various boost builds.

Some minor tweeks were done to make Slic3r compile with
Visual Studio 2013.
This commit is contained in:
bubnikv 2016-08-21 21:46:17 +02:00
parent bd23fe9c44
commit ab357c75a5
4 changed files with 112 additions and 38 deletions

View file

@ -25,14 +25,17 @@ typedef double coordf_t;
namespace Slic3r {
// TODO: make sure X = 0
enum Axis { X, Y, Z };
enum Axis { X=0, Y, Z };
}
using namespace Slic3r;
/* Implementation of CONFESS("foo"): */
#define CONFESS(...) confess_at(__FILE__, __LINE__, __func__, __VA_ARGS__)
#ifdef _MSC_VER
#define CONFESS(...) confess_at(__FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)
#else
#define CONFESS(...) confess_at(__FILE__, __LINE__, __func__, __VA_ARGS__)
#endif
void confess_at(const char *file, int line, const char *func, const char *pat, ...);
/* End implementation of CONFESS("foo"): */