Unicode port: Unicode version of NSIS can now generate both ANSI & Unicode installers (using new instruction UnicodeInstaller on/off).
Stubs & Plugins differentiation is done automatically using a 'W' suffix. SConscripts need to be reviewed to generate both variants of Plugins & pluginapi.lib under Unicode compilation. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6100 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
fbc7cb8fd0
commit
57f7ff8a1c
24 changed files with 376 additions and 112 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
class writer_sink {
|
||||
public:
|
||||
writer_sink() {}
|
||||
writer_sink() : m_build_unicode(false) {}
|
||||
virtual ~writer_sink() {}
|
||||
|
||||
virtual void write_byte(const unsigned char b);
|
||||
|
@ -38,7 +38,8 @@ public:
|
|||
virtual void write_growbuf(const IGrowBuf *b);
|
||||
|
||||
virtual void write_data(const void *data, const size_t size) = 0;
|
||||
|
||||
protected:
|
||||
bool m_build_unicode;
|
||||
};
|
||||
|
||||
class writer {
|
||||
|
@ -53,7 +54,7 @@ protected:
|
|||
|
||||
class growbuf_writer_sink : public writer_sink {
|
||||
public:
|
||||
growbuf_writer_sink(IGrowBuf *buf) : m_buf(buf) {}
|
||||
growbuf_writer_sink(IGrowBuf *buf, bool build_unicode) : m_buf(buf) { m_build_unicode=build_unicode; }
|
||||
|
||||
virtual void write_data(const void *data, const size_t size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue