* Enable compile and link flags to build info also on Windows and in SCons.
* Added build_system SCons or CMake * Write the new build info also to system-info.txt
This commit is contained in:
@@ -42,6 +42,7 @@ extern char build_type[];
|
||||
extern char build_cflags[];
|
||||
extern char build_cxxflags[];
|
||||
extern char build_linkflags[];
|
||||
extern char build_system[];
|
||||
#endif
|
||||
|
||||
static PyTypeObject BlenderAppType;
|
||||
@@ -61,6 +62,7 @@ static PyStructSequence_Field app_info_fields[] = {
|
||||
{"build_cflags", ""},
|
||||
{"build_cxxflags", ""},
|
||||
{"build_linkflags", ""},
|
||||
{"build_system", ""},
|
||||
{0}
|
||||
};
|
||||
|
||||
@@ -105,6 +107,7 @@ static PyObject *make_app_info(void)
|
||||
SetStrItem(build_cflags);
|
||||
SetStrItem(build_cxxflags);
|
||||
SetStrItem(build_linkflags);
|
||||
SetStrItem(build_system);
|
||||
#else
|
||||
SetStrItem("Unknown");
|
||||
SetStrItem("Unknown");
|
||||
@@ -114,6 +117,7 @@ static PyObject *make_app_info(void)
|
||||
SetStrItem("Unknown");
|
||||
SetStrItem("Unknown");
|
||||
SetStrItem("Unknown");
|
||||
SetStrItem("Unknown");
|
||||
#endif
|
||||
|
||||
#undef SetIntItem
|
||||
|
Reference in New Issue
Block a user