From: Frans S. <fra...@gm...> - 2009-03-18 07:23:14
|
Hi Francesco, > > > I think it would be better; unfortunately sometimes there are infos in the > Piklab XML files which are wrong (at least they look wrong to me but I'm not > 100% sure) and if the user may just edit an XML file to fix upp_wx for his PIC > model, it would be indeed more happy than being forced to wait for a new > release/snapshot. > you are right about that, most people don't edit it in the source, but maybe they do in their copy of the xml files. > Also, distributing the XML files would encourage the user to complete them with > the missing info for their favourite PIC models (e.g. many names of pins in the > <package> tags are missing...). > > Btw before releasing an upp_wx version which uses Piklab XML files it would be > nice to inform Piklab developers of this (and we may periodically post them the > diffs between our XML files and theirs, so that both projects can converge to a > correct database of PICs info). > Of course, I'll contact Nicolas Hadacek about it. >> I know that loading the xml files at runtime has some advantages, eg >> that you can edit them without having to recompile the program, but I am >> sure that it will bring some problems especially when we are talking >> about cross platform development... >> > sorry, which problems could it bring? > I'm using XML files in various other (cross-platform, wx-based) projects and I > never had troubles... > Well, I was just thinking about the location, we really have to think where the files are being placed. Linux puts them in /usr/share/usbpicprog/... or usr/local/share/usbpicprog/... Windows would put them somewhere in program files and mac will put them in the .app bundle. It's not impossible but it takes some different scripts and a lot of testing. Cheers, Frans |