42
42
raise gen_base.GenError("Cannot create project for %s" % target.name)
44
44
target.output_name = self.get_output_name(target)
45
target.output_pdb = self.get_output_pdb(target)
45
46
target.output_dir = self.get_output_dir(target)
46
47
target.intermediate_dir = self.get_intermediate_dir(target)
97
98
"Write a Solution (.sln)"
99
# apr doesn't supply vcproj files, so move our pre-defined ones
100
# over if they don't match
101
self.move_proj_file(self.apr_path, 'libapr.vcproj')
102
self.move_proj_file(self.apr_iconv_path, 'libapriconv.vcproj')
103
self.move_proj_file(os.path.join(self.apr_iconv_path,'ccs'),
104
'libapriconv_ccs_modules.vcproj')
105
self.move_proj_file(os.path.join(self.apr_iconv_path,'ces'),
106
'libapriconv_ces_modules.vcproj')
107
self.move_proj_file(self.apr_util_path, 'libaprutil.vcproj')
108
self.move_proj_file(os.path.join(self.apr_util_path,'uri'),
109
'gen_uri_delims.vcproj')
110
self.move_proj_file(os.path.join(self.apr_util_path,'xml', 'expat',
111
'lib'), 'xml.vcproj')
100
# apr doesn't supply vcproj files, the user must convert them
101
# manually before loading the generated solution
112
102
self.move_proj_file(os.path.join('build', 'win32'), 'svn_config.vcproj')
113
103
self.move_proj_file(os.path.join('build', 'win32'), 'svn_locale.vcproj')
114
104
self.write_zlib_project_file('zlib.vcproj')
115
105
self.write_neon_project_file('neon.vcproj')
106
self.write_serf_project_file('serf.vcproj')
117
108
install_targets = self.get_install_targets()
157
# the path name in the .sln template is already enclosed with ""
158
# therefore, remove them from the path itself
159
for target in targets:
160
target.path = string.rstrip(target.path, '"')
161
target.path = string.lstrip(target.path, '"')
166
163
targets.sort(lambda x, y: cmp(x.name, y.name))
182
179
'guids' : guidvals,
185
self.write_with_template('subversion_vcnet.sln', 'vcnet_sln.ezt', data)
182
if self.vsnet_version == '9.00':
183
self.write_with_template('subversion_vcnet.sln', 'vc2005_sln.ezt', data)
185
self.write_with_template('subversion_vcnet.sln', 'vcnet_sln.ezt', data)
188
188
# compatibility with older Pythons: