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:
pabs3 2008-10-28 10:42:06 +00:00
parent b039775cb3
commit 08c28ddbc9
5 changed files with 21 additions and 0 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View file

@ -0,0 +1 @@
#define IDI_ICON 103

View file

@ -0,0 +1,3 @@
#include "Resource.h"
IDI_ICON ICON "Icon.ico"

View file

@ -36,3 +36,20 @@ BuildPlugin(
nodeflib = False,
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)