From a5eaeaa9ff39a5568d9425ec57fd1af5dfe79c90 Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Thu, 2 Feb 2006 00:22:26 +0000 Subject: Ignore windows sources in lib/win32 on non-windows platforms. --- infrastructure/makebuildenv.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'infrastructure/makebuildenv.pl') diff --git a/infrastructure/makebuildenv.pl b/infrastructure/makebuildenv.pl index ee0e6506..2cecc00d 100755 --- a/infrastructure/makebuildenv.pl +++ b/infrastructure/makebuildenv.pl @@ -38,6 +38,13 @@ unless(-d 'local') # flags about the environment my %env_flags; +my $windows_include_path = "-I../../lib/win32 "; +if ($target_os ne "mingw32" && $target_os ne "winnt") +{ + $windows_include_path = ""; + $env_flags{'IGNORE_lib/win32'} = 1; +} + # print "Flag: $_\n" for(keys %env_flags); # seed autogen code @@ -447,7 +454,7 @@ __E # make include path - my $include_paths = "-I../../lib/win32 " . + my $include_paths = $windows_include_path . join(' ',map {'-I../../'.$_} @all_deps_for_module); # is target a library? -- cgit v1.2.3