Python setup: remove unnecessary libraries

This commit is contained in:
Shahram Najm 2016-07-18 14:58:38 +01:00
parent 30510802b3
commit 4f3fe1b785
1 changed files with 20 additions and 20 deletions

View File

@ -34,16 +34,16 @@ if with_jasper:
) )
add_attribute(libraries = 'jasper') add_attribute(libraries = 'jasper')
with_openjpeg = @HAVE_LIBOPENJPEG@ #with_openjpeg = @HAVE_LIBOPENJPEG@
if with_openjpeg: #if with_openjpeg:
openjpeg_dir = '@OPENJPEG_DIR@' # openjpeg_dir = '@OPENJPEG_DIR@'
if openjpeg_dir and openjpeg_dir != 'system': # if openjpeg_dir and openjpeg_dir != 'system':
add_attribute( # add_attribute(
include_dirs = os.path.join(openjpeg_dir,'include'), # include_dirs = os.path.join(openjpeg_dir,'include'),
library_dirs = os.path.join(openjpeg_dir,'lib'), # library_dirs = os.path.join(openjpeg_dir,'lib'),
extra_link_args = '-Wl,-rpath,' + os.path.join(openjpeg_dir,'lib') # extra_link_args = '-Wl,-rpath,' + os.path.join(openjpeg_dir,'lib')
) # )
add_attribute(libraries = 'openjpeg') # add_attribute(libraries = 'openjpeg')
# assumes png is supplied by system paths -- may not be true # assumes png is supplied by system paths -- may not be true
png = @HAVE_PNG@ png = @HAVE_PNG@
@ -51,16 +51,16 @@ if png:
add_attribute(libraries = 'png') add_attribute(libraries = 'png')
with_aec = @HAVE_AEC@ #with_aec = @HAVE_AEC@
if with_aec: #if with_aec:
aec_dir = '@AEC_DIR@' # aec_dir = '@AEC_DIR@'
if aec_dir and aec_dir != 'system': # if aec_dir and aec_dir != 'system':
add_attribute( # add_attribute(
include_dirs = os.path.join(aec_dir,'include'), # include_dirs = os.path.join(aec_dir,'include'),
library_dirs = os.path.join(aec_dir,'lib'), # library_dirs = os.path.join(aec_dir,'lib'),
extra_link_args = '-Wl,-rpath,' + os.path.join(aec_dir,'lib') # extra_link_args = '-Wl,-rpath,' + os.path.join(aec_dir,'lib')
) # )
add_attribute(libraries = 'aec') # add_attribute(libraries = 'aec')
data_handler = '@DATA_HANDLER@' data_handler = '@DATA_HANDLER@'