~svn/ubuntu/oneiric/subversion/ppa

« back to all changes in this revision

Viewing changes to build/generator/gen_vcnet_vcproj.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-12-13 17:57:16 UTC
  • mfrom: (1.1.6 upstream) (0.1.3 etch)
  • Revision ID: james.westby@ubuntu.com-20061213175716-2ysv6z4w5dpa2r2f
Tags: 1.4.2dfsg1-2ubuntu1
* Merge with Debian unstable; remaining changes:
  - Create pot file on build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
      raise gen_base.GenError("Cannot create project for %s" % target.name)
43
43
 
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)
47
48
 
96
97
  def write(self):
97
98
    "Write a Solution (.sln)"
98
99
 
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')
116
107
 
117
108
    install_targets = self.get_install_targets()
118
109
 
163
154
                            depends=deplist,
164
155
                            ))
165
156
 
 
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, '"')
 
162
 
166
163
    targets.sort(lambda x, y: cmp(x.name, y.name))
167
164
 
168
165
    configs = [ ]
182
179
      'guids' : guidvals,
183
180
      }
184
181
 
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)
 
184
    else:
 
185
      self.write_with_template('subversion_vcnet.sln', 'vcnet_sln.ezt', data)
186
186
 
187
187
 
188
188
# compatibility with older Pythons: