Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a3c189bc authored by hhakim's avatar hhakim
Browse files

Add cmake option DISABLE_ALGO_PYX to speedup the python wrappers building if...

Add cmake option DISABLE_ALGO_PYX to speedup the python wrappers building if no need of algorithms (just Faust class).
parent 5884d087
Branches
Tags 2.3rc5
No related merge requests found
......@@ -243,6 +243,7 @@ option(USE_GPU_MOD "Faust cuda backend for the Faust-Matrix/Vector product." OFF
option(BUILD_COMPLEX_PYX "Building the python wrapper in order to support complex matrices or not." ON)
option(BUILD_FLOAT_PYX "Enabling the support of float matrices in the python wrapper." OFF)
option(BUILD_FLOAT_MEX "Enabling the support of float matrices in the matlab wrappers." OFF)
option(DISABLE_ALGO_PYX "If OFF the algorithms (pyfaust.fact, pyfaust.poly etc.) python wrappers are built otherwise they're not (useful to avoid large compilation time when updating only the Faust class)." OFF)
if (BUILD_USE_SINGLEPRECISION)
message(STATUS "**********SINGLEPRECISION ACTIF************")
......
......@@ -262,14 +262,14 @@ function (Generate_pyx TYPE_NAME TYPE REAL_TYPE_NAME REAL_TYPE PROC CORE_OBJ_SUF
set(CORE_OBJ core_faust_${CORE_OBJ_SUFFIX})
set(CORE_OBJ_REAL core_faust_${CORE_OBJ_REAL_SUFFIX})
set(PYX_LIST _FaustCoreGen)
if(NOT DISABLE_ALGO_PYX)
list(APPEND PYX_LIST _FaustAlgoGenProc)
#if(NOT ${TYPE} MATCHES float) # float not yet supported by algorithms
if(${PROC} MATCHES CPU)
list(APPEND PYX_LIST _FaustAlgoGen) # this pyx is only on CPU
endif()
#endif()
if(USE_GPU_MOD)
list(APPEND PYX_LIST _FaustCoreGenNonMemberFuncs)
if(USE_GPU_MOD)
list(APPEND PYX_LIST _FaustCoreGenNonMemberFuncs)
endif()
endif()
foreach(PYX_NAME IN LISTS PYX_LIST)
configure_file(${FAUST_PYTHON_SRC_SRC_DIR}/${PYX_NAME}.pyx.in ${FAUST_PYTHON_BIN_DIR}/${PYX_NAME}${TYPE_NAME}${PROC}.pyx @ONLY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment