Finishing VAPython distutils configuration

parent 447a3d66
......@@ -35,14 +35,24 @@ set_property( TARGET VAPython PROPERTY FOLDER "VA/Bindings" )
# install
if( WIN32 )
# This is hacky, but Pythons distutils needs the dependend libraries below root folder to create a distributable package.
install( FILES "${VABASE_LIBRARY_DIRS}/VABase.dll" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/bin" )
install( FILES "${VANET_LIBRARY_DIRS}/VANet.dll" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/bin" )
foreach( VISTACORELIBS_LIBRARY_DIR ${VISTACORELIBS_LIBRARY_DIRS} )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/VistaBase.dll" )
#message( "${VISTACORELIBS_LIBRARY_DIR}")
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/VistaBase.dll" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/bin" )
endif( )
# @todo more
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/VistaAspects.dll" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/VistaAspects.dll" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/bin" )
endif( )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/VistaInterProcComm.dll" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/VistaInterProcComm.dll" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/bin" )
endif( )
endforeach( )
else( )
message( WARN "VAPython distribution preparation not implemented yet. Please provide required VA and ViSTA libraries on runtime." )
# Please adapt for other OS or install VABase, VANet and VistaCoreLibs into your system (so VAPython can find the shared libraries)
endif( )
include README.md LICENSE.md
include bin *
include bin/*.dll
include src/*.hpp
recursive-include tests *
\ No newline at end of file
......@@ -5,7 +5,7 @@ module1 = Extension('va',
include_dirs = ['../VABase/include','../VANet/include'],
libraries = ['VABase', 'VANet', 'VistaBase', 'VistaAspects', 'VistaInterProcComm'],
library_dirs = ['../build_win32-x64.vc14/lib','../../ViSTA/build_win32-x64.vc14/lib'],
sources = ['src/vasingleton.cpp','src/vasingletonmethods.hpp','src/vasingletondoc.hpp'])
sources = ['src/vasingleton.cpp'] )
setup (name = 'va',
version = '2017.c',
......@@ -16,4 +16,5 @@ setup (name = 'va',
long_description = '''
Virtual Acoustics is a real-time auralization framework for Virtual Reality. This module is an interface to interact with a VA server.
''',
license = "Apache License Version 2.0",
ext_modules = [module1])
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment