83 |
# |
# |
84 |
|
|
85 |
# Directories where Proj4 is installed |
# Directories where Proj4 is installed |
86 |
proj4_prefix = r"D:\cygwin\home\user\proj-4.4.3\src" |
proj4_prefix = r"D:\cygwin\home\user\proj-4.4.7\src" |
87 |
proj4_incdir = proj4_prefix |
proj4_incdir = proj4_prefix |
88 |
proj4_libdir = proj4_prefix |
proj4_libdir = proj4_prefix |
89 |
proj4_lib = "proj_i" |
proj4_lib = "proj_i" |
90 |
|
|
91 |
# Define include and lib directories for wxWindows |
# Define include and lib directories for wxWindows and |
92 |
wx_prefix = r"D:\wx240" |
#wx_prefix = r"D:\cygwin\home\user\project\greater\wxPython-2.4.0.4" |
93 |
wx_inc = [os.path.join(wx_prefix, 'lib', 'mswdllh'), |
wx_prefix = r"D:\wx-sources\wxPythonSrc-2.4.0.7" |
94 |
|
wx_inc = [os.path.join(wx_prefix, 'lib', 'mswdll'), |
95 |
os.path.join(wx_prefix, "include")] |
os.path.join(wx_prefix, "include")] |
96 |
wx_lib = [os.path.join(wx_prefix, "lib")] |
wx_lib = [os.path.join(wx_prefix, "lib")] |
97 |
|
|
101 |
os.path.join(gdal_prefix, 'ogr'), |
os.path.join(gdal_prefix, 'ogr'), |
102 |
os.path.join(gdal_prefix, 'port'), |
os.path.join(gdal_prefix, 'port'), |
103 |
os.path.join(gdal_prefix, 'core')] |
os.path.join(gdal_prefix, 'core')] |
104 |
gdal_lib = gdal_prefix |
gdal_lib = [gdal_prefix] |
105 |
|
|
106 |
# |
# |
107 |
# Unless you use a wxPython version other than 2.4.0, you probably |
# Unless you use a wxPython version other than 2.4.0, you probably |
151 |
|
|
152 |
wx_cs_params[CS_INCDIRS] = wx_inc |
wx_cs_params[CS_INCDIRS] = wx_inc |
153 |
wx_cs_params[CS_LIBDIRS] = wx_lib |
wx_cs_params[CS_LIBDIRS] = wx_lib |
154 |
wx_cs_params[CS_LIBS] = ["wxmsw24h"] \ |
wx_cs_params[CS_LIBS] = ["wxmsw24"] \ |
155 |
+ ['kernel32', 'user32', 'gdi32', 'comdlg32', |
+ ['kernel32', 'user32', 'gdi32', 'comdlg32', |
156 |
'winspool', 'winmm', 'shell32', 'oldnames', |
'winspool', 'winmm', 'shell32', 'oldnames', |
157 |
'comctl32', 'ctl3d32', 'odbc32', 'ole32', 'oleaut32', |
'comctl32', 'ctl3d32', 'odbc32', 'ole32', 'oleaut32', |
1079 |
[ext_dir + "/thuban/gdalwarp.cpp", |
[ext_dir + "/thuban/gdalwarp.cpp", |
1080 |
ext_dir + "/thuban/cpl_mfile.cpp", |
ext_dir + "/thuban/cpl_mfile.cpp", |
1081 |
ext_dir + "/thuban/bmpdataset.cpp"], |
ext_dir + "/thuban/bmpdataset.cpp"], |
1082 |
include_dirs = ([gdal_cs_params[CS_INCDIRS], |
include_dirs = gdal_cs_params[CS_INCDIRS] + |
1083 |
ext_dir + "/thuban/"]), |
[ext_dir + "/thuban/"], |
1084 |
define_macros = gdal_cs_params[CS_DEFS], |
define_macros = gdal_cs_params[CS_DEFS], |
1085 |
library_dirs = gdal_cs_params[CS_LIBDIRS], |
library_dirs = gdal_cs_params[CS_LIBDIRS], |
1086 |
libraries = [proj4_lib] + |
libraries = gdal_cs_params[CS_LIBS])) |
|
gdal_cs_params[CS_LIBS])) |
|
1087 |
|
|
1088 |
def run(self, install_options = None): |
def run(self, install_options = None): |
1089 |
build_ext.run(self) |
build_ext.run(self) |