Mentions légales du service

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

Strip and set optimization -O2 for py2,3 shared libs.

It reduces extremly the size of libs: 23 to 1Mb.
parent 466037ae
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ elseif(WIN32 AND ${CMAKE_GENERATOR} MATCHES "MinGW Makefiles")
COMMAND type
ARGS "FaustCorePy.cpp2" ">" "FaustCorePy.cpp" 2>NUL
COMMAND ${CMAKE_CXX_COMPILER}
ARGS "-std=c++11" "-shared" "-DMS_WIN64" "-o" "${PY_DYNLIB}" "${FAUST_PYTHON_BIN_DIR}/FaustCorePy.cpp" ${FAUST_PY_CFLAGS} ${PY_STATIC_LIBS}
ARGS "-std=c++11" "-shared" "-DMS_WIN64" "-s" "-O2" "-o" "${PY_DYNLIB}" "${FAUST_PYTHON_BIN_DIR}/FaustCorePy.cpp" ${FAUST_PY_CFLAGS} ${PY_STATIC_LIBS}
COMMENT "Creating pyfaust${PY_VER}")
endif()
endforeach()
......
......@@ -56,7 +56,8 @@ else: # linux and mac
include_dirs=[@FAUST_PYTHON_INCLUDE_DIR@, numpy.get_include()],
library_dirs=[@FAUST_PYTHON_LIB_DIR@],
libraries=['faust'@FAUST_PYTHON_LIBS@],
extra_compile_args = [ "-std=c++11"],
extra_compile_args = [ "-std=c++11", "-O2"],
extra_link_args = [ "-s" ],
extra_objects = @PYTHON_EXT_EXTRA_OBJECTS@
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment