-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeapplication.py
43 lines (35 loc) · 1.79 KB
/
makeapplication.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
### makeapplication.py
from bundlebuilder import buildapp
import glob, os
package_root = '/Users/emonson/Programming/Python/VTK/MultiScaleSVD'
qt_root = '/usr/local/Trolltech/Qt-4.7.4/lib'
lib_list = []
lib_list.append(os.path.join(qt_root,'QtCore.framework'))
lib_list.append(os.path.join(qt_root,'QtGui.framework'))
resource_list = []
resource_list.append(os.path.join(package_root,'BlankImage.png'))
# NOTE: Don't need to copy all of these libraries here, because it'll be taken
# care of during dependency checks in MSSVD_OSX_MakeStandAloneBundle.cmake
# libpath = '/usr/local/lib/vtk-5.7/'
# for libfile in glob.glob( os.path.join(libpath, 'libvtk*.dylib') ):
# liblist.append(libfile)
#
# libpath = '/Users/emonson/Programming/VTK_git/vtkVTG/build/bin'
# for libfile in glob.glob( os.path.join(libpath, 'libvtk*.dylib') ):
# lib_list.append(libfile)
# liblist.append('/Users/emonson/Programming/VTK_git/vtkVTG/build/bin/libvtkvtgCharts.dylib')
# liblist.append('/Users/emonson/Programming/VTK_git/vtkVTG/build/bin/libvtkvtgChartsPython.so')
# liblist.append('/Users/emonson/Programming/VTK_git/vtkVTG/build/bin/libvtkvtgChartsPythonD.dylib')
buildapp(
name='MS_SVD_vis_20121107.app', # what to build
mainprogram='main.py', # your app's main()
# argv_emulation=1, # drag&dropped filenames show up in sys.argv
# iconfile='myapp.icns', # file containing your app's icons
standalone=1, # make this app self contained.
# encodings.utf_8 is necessary for loading cell arrays of strings
includeModules=['sip'], # list of additional Modules to force in
includePackages=['vtk','vtkvtg','PyQt4','encodings'], # list of additional Packages to force in
resources=resource_list,
libs=lib_list, # list of shared libs or Frameworks to include
)
### end of makeapplication.py