Alexandre Julliard : make_makefiles: Add support for Objective-C sources.

Alexandre Julliard julliard at winehq.org
Wed Jan 9 13:30:38 CST 2013


Module: wine
Branch: master
Commit: ad16c4c0dfc45837934b319399377b98387f88d2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ad16c4c0dfc45837934b319399377b98387f88d2

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jan  9 13:07:19 2013 +0100

make_makefiles: Add support for Objective-C sources.

---

 tools/make_makefiles |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/make_makefiles b/tools/make_makefiles
index be106c9..f408545 100755
--- a/tools/make_makefiles
+++ b/tools/make_makefiles
@@ -318,7 +318,7 @@ sub parse_makefile($)
             push @{$make{"=flags"}}, "manpage" if $var eq "MANPAGE";
             next;
         }
-        if (/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPRS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|MC_SRCS|RC_SRCS|PO_SRCS|SVG_SRCS|PROGRAMS)\s*=\s*(.*)/)
+        if (/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPRS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|OBJC_SRCS|MC_SRCS|RC_SRCS|PO_SRCS|SVG_SRCS|PROGRAMS)\s*=\s*(.*)/)
         {
             my $var = $1;
             my @list = split(/\s+/, $2);
@@ -389,6 +389,7 @@ sub assign_sources_to_makefiles(@)
         else
         {
             if ($name =~ /\.c$/) { push @{${$make}{"=C_SRCS"}}, $name; }
+            elsif ($name =~ /\.m$/) { push @{${$make}{"=OBJC_SRCS"}}, $name; }
             elsif ($name =~ /\.l$/) { push @{${$make}{"=LEX_SRCS"}}, $name; }
             elsif ($name =~ /\.y$/) { push @{${$make}{"=BISON_SRCS"}}, $name; }
             elsif ($name =~ /\.rc$/) { push @{${$make}{"=RC_SRCS"}}, $name; }
@@ -501,6 +502,7 @@ sub update_makefiles(@)
         replace_makefile_variable( $file, "MC_SRCS" );
         replace_makefile_variable( $file, "SVG_SRCS" );
         replace_makefile_variable( $file, "C_SRCS" );
+        replace_makefile_variable( $file, "OBJC_SRCS" );
         replace_makefile_variable( $file, "RC_SRCS" );
         replace_makefile_variable( $file, "PRIVATE_IDL_H_SRCS" );
         replace_makefile_variable( $file, "PUBLIC_IDL_H_SRCS" );




More information about the wine-cvs mailing list