summaryrefslogtreecommitdiff
path: root/devel/wxformbuilder/files/patch-sdk_premake_scripts_wxpresets.lua
blob: dccc2b41d895195d4e3d08b47a2e88e6821c62b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- sdk/premake/scripts/wxpresets.lua.orig	2015-08-29 07:11:48 UTC
+++ sdk/premake/scripts/wxpresets.lua
@@ -197,12 +197,12 @@ function ConfigureWxWidgets( package, al
 		table.insert( package.excludes, matchrecursive( "*.rc" ) )
 		
 		-- Set wxWidgets build options.
-		table.insert( package.config["Debug"].buildoptions, "`wx-config "..debug_option.." --cflags`" )
-		table.insert( package.config["Release"].buildoptions, "`wx-config --debug=no --cflags`" )
+		table.insert( package.config["Debug"].buildoptions, "`%%WX_CONFIG%% "..debug_option.." --cflags`" )
+		table.insert( package.config["Release"].buildoptions, "`%%WX_CONFIG%% --debug=no --cflags`" )
 		
 		-- Set the wxWidgets link options.
-		table.insert( package.config["Debug"].linkoptions, "`wx-config "..debug_option.." --libs`" )
-		table.insert( package.config["Release"].linkoptions, "`wx-config --libs`" )
+		table.insert( package.config["Debug"].linkoptions, "`%%WX_CONFIG%% "..debug_option.." --libs`" )
+		table.insert( package.config["Release"].linkoptions, "`%%WX_CONFIG%% --libs`" )
 		
 		-- Set the Linux defines.
 		table.insert( package.defines, "__WXGTK__" )
@@ -212,8 +212,8 @@ function ConfigureWxWidgets( package, al
 			package.config["Release"].target = targetName
 			package.config["Debug"].target = targetName.."d"
 		else
-			package.config["Debug"].target = "`wx-config "..debug_option.." --basename`_"..targetName.."-`wx-config --release`"
-			package.config["Release"].target = "`wx-config --basename`_"..targetName.."-`wx-config --release`"
+			package.config["Debug"].target = "`%%WX_CONFIG%% "..debug_option.." --basename`_"..targetName.."-`%%WX_CONFIG%% --release`"
+			package.config["Release"].target = "`%%WX_CONFIG%% --basename`_"..targetName.."-`%%WX_CONFIG%% --release`"
 		end
 	end
 end