summaryrefslogtreecommitdiffstats
path: root/build/win32/nsis-scons.patch
blob: d372ea99ea7b7805bd353b9794816beddb5cc3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Patch from https://sourceforge.net/p/nsis/code/7291/

diff -ruN nsis-3.07-src/Contrib/ExDLL/SConscript nsis-3.08-src/Contrib/ExDLL/SConscript
--- nsis-3.07-src/Contrib/ExDLL/SConscript	2015-06-22 01:13:45.000000000 +0900
+++ nsis-3.08-src/Contrib/ExDLL/SConscript	2021-08-05 05:15:13.000000000 +0900
@@ -47,7 +47,7 @@
 	env.DistributeExamples(api_files, path='Plugin/nsis')
 	env.DistributeExamples(example, path='Plugin')
 	if env['PLATFORM'] != 'win32':
-		if env.has_key('PREFIX_PLUGINAPI_INC'):
+		if 'PREFIX_PLUGINAPI_INC' in env:
 			env.Distribute(api_files, None, 'pluginapi_inc', '', 'nsis', 'pluginapi', 'pluginapi')
 
 
@@ -56,7 +56,7 @@
 else:
 	example += lib_files
 
-	if env.has_key('PREFIX_PLUGINAPI_LIB'):
+	if 'PREFIX_PLUGINAPI_LIB' in env:
 		env.Distribute(lib, None, 'pluginapi_lib', '', 'nsis', 'pluginapi', 'pluginapi')