Build System Resource.dll from source code instead of shipping the binary.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5756 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b039775cb3
commit
08c28ddbc9
5 changed files with 21 additions and 0 deletions
Binary file not shown.
BIN
Contrib/System/Resource/Icon.ico
Normal file
BIN
Contrib/System/Resource/Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
1
Contrib/System/Resource/Resource.h
Executable file
1
Contrib/System/Resource/Resource.h
Executable file
|
@ -0,0 +1 @@
|
||||||
|
#define IDI_ICON 103
|
3
Contrib/System/Resource/Resource.rc
Executable file
3
Contrib/System/Resource/Resource.rc
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#include "Resource.h"
|
||||||
|
|
||||||
|
IDI_ICON ICON "Icon.ico"
|
|
@ -36,3 +36,20 @@ BuildPlugin(
|
||||||
nodeflib = False,
|
nodeflib = False,
|
||||||
defines = ['SYSTEM_EXPORTS']
|
defines = ['SYSTEM_EXPORTS']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Import('env')
|
||||||
|
|
||||||
|
res = 'Resource/Resource.rc'
|
||||||
|
|
||||||
|
res_obj = 'Resource/Resource-rc.o'
|
||||||
|
|
||||||
|
res_target = env.RES(res_obj, res)
|
||||||
|
|
||||||
|
resources = Split("""
|
||||||
|
Resource/Icon.ico
|
||||||
|
Resource/Resource.h
|
||||||
|
""")
|
||||||
|
|
||||||
|
env.Depends(res_target, resources)
|
||||||
|
|
||||||
|
env.SharedLibrary('Resource', res_target)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue