Revert "[PD] App: precompiled header fixes"
This commit is contained in:
@@ -63,7 +63,7 @@ extern PyObject* initModule();
|
||||
}
|
||||
|
||||
/* Python entry */
|
||||
PyMOD_INIT_FUNC(PartDesign)
|
||||
PyMOD_INIT_FUNC(_PartDesign)
|
||||
{
|
||||
// load dependent module
|
||||
try {
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace PartDesign {
|
||||
class Module : public Py::ExtensionModule<Module>
|
||||
{
|
||||
public:
|
||||
Module() : Py::ExtensionModule<Module>("PartDesign")
|
||||
Module() : Py::ExtensionModule<Module>("_PartDesign")
|
||||
{
|
||||
add_varargs_method("makeFilletArc",&Module::makeFilletArc,
|
||||
"makeFilletArc(...) -- Fillet arc."
|
||||
|
||||
@@ -144,16 +144,16 @@ SET(PartDesign_SRCS
|
||||
${Python_SRCS}
|
||||
)
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${PartDesign_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(PartDesign PreCompiled.h PreCompiled.cpp PCH_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(PartDesign SHARED ${PartDesign_SRCS})
|
||||
target_link_libraries(PartDesign ${PartDesign_LIBS})
|
||||
|
||||
SET_BIN_DIR(PartDesign PartDesign /Mod/PartDesign)
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PartDesign_CPP_SRCS ${PartDesign_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(PartDesign PreCompiled.h PreCompiled.cpp PartDesign_CPP_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
SET_BIN_DIR(PartDesign _PartDesign /Mod/PartDesign)
|
||||
SET_PYTHON_PREFIX_SUFFIX(PartDesign)
|
||||
|
||||
INSTALL(TARGETS PartDesign DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
@@ -20,4 +20,5 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import PartDesign
|
||||
makeFilletArc = PartDesign.makeFilletArc
|
||||
|
||||
import _PartDesign
|
||||
makeFilletArc = _PartDesign.makeFilletArc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user