Debian Codegraph @

debian/README.Debian

raw
1 The menu thing isn't included because it requires wxWidgets 2.8 to build.
2
3 To build nsis plugins you have to install the nsis-pluginapi package
4 and follow the given below instructions.
5
6 If your package manager did not install the recommended package(s) of
7 nsis-pluginapi then you would need to manually install a cross compiler
8 targeting the win32 platform.
9
10 Ideally you should install the recommended package(s) which you could
11 query with the following command:
12 dpkg-query -W -f'${Recommends}\n' nsis-pluginapi
13
14 Nevertheless you are free to take your favorite cross compiler targeting
15 the win32 platform as long as it can handle the application binary
16 interface (ABI) used by the nsis plugin api library. In that case you
17 need to explicitly specify the include and library path as mentioned
18 below. The plugin api library is available in the following three variants:
19 x86-ansi, x86-unicode and amd64-unicode. The plugin api library has to match
20 with the corresponding target architecture and character set of your plugin.
21
22 You should include the header like so:
23
24 #include <nsis/pluginapi.h>
25
26 By default the include and library files of the nsis plugin api are
27 installed in the standard search paths of the recommended win32 cross
28 compiler package. An excerpt of a Makefile would look like the
29 following for this case:
30
31 # --- cut ---
32 ARCH = x86
33 CHARSET = unicode
34
35 CC=i686-w64-mingw32-gcc
36
37 LDFLAGS += -L$(abspath $(shell $(CC) -print-file-name=nsis))
38 LDFLAGS += -lpluginapi-$(ARCH)-$(CHARSET)
39 # --- cut ---
40
41 If that is not the case then the include and library path need to be
42 explicitly specified for example in a Makefile such as:
43
44 # --- cut ---
45 ARCH = x86
46 CHARSET = unicode
47
48 ifneq (,$(filter amd64,$(ARCH)))
49 ARCH_PREFIX = x86_64
50 else
51 ARCH_PREFIX = i686
52 endif
53
54 CPPFLAGS += -I $(shell dpkg-query -L nsis-pluginapi \
55 | sed -n '/.*$(ARCH_PREFIX).\+\/include$$/p')
56
57 LDFLAGS += -L $(shell dpkg-query -L nsis-pluginapi \
58 | sed -n '/.*$(ARCH_PREFIX).\+\/lib\/nsis$$/p')
59 LDFLAGS += -lpluginapi-$(ARCH)-$(CHARSET)
60 # --- cut ---