]>
Commit | Line | Data |
---|---|---|
2224580a VZ |
1 | #!################################################################################ |
2 | #! File: gtk.t | |
3 | #! Purpose: tmake template file from which src/gtk/files.lst containing the | |
4 | #! list of files for wxGTK library is generated by tmake | |
5 | #! Author: Vadim Zeitlin | |
6 | #! Created: 28.01.00 | |
7 | #! Version: $Id$ | |
8 | #!################################################################################ | |
9 | #${ | |
10 | #! include the code which parses filelist.txt file and initializes | |
11 | #! %wxCommon, %wxGeneric, %wxHtml, %wxUNIX, %wxGTK, %wxMOTIF and | |
12 | #! %wxOS2PM hashes. | |
13 | IncludeTemplate("filelist.t"); | |
14 | ||
15 | #! find all our sources | |
16 | $project{"COMMONOBJS"} .= "parser.o "; | |
2224580a VZ |
17 | |
18 | foreach $file (sort keys %wxGeneric) { | |
19 | next if $wxGeneric{$file} =~ /\bR\b/; | |
20 | ||
21 | ($fileobj = $file) =~ s/cp?p?$/\o/; | |
2224580a VZ |
22 | |
23 | $project{"GTK_SOURCES"} .= "generic/" . $file . " "; | |
4eb1fe9d VZ |
24 | $project{"GUIOBJS"} .= $fileobj . " "; |
25 | ||
26 | #! also add it to the list of object files used by wxUniv if there | |
27 | #! is no file with the same name among wxUniv own objects | |
28 | my $filereal = $file; | |
29 | if ( $file =~ /^([^.]+)g.cpp$/ ) { | |
30 | $filereal = "$1.cpp"; | |
31 | } | |
32 | if ( !exists $wxUNIV{$filereal} ) { | |
33 | $project{"GUI_LOWLEVEL_OBJS"} .= $fileobj . " "; | |
34 | } | |
2224580a VZ |
35 | } |
36 | ||
37 | foreach $file (sort keys %wxCommon) { | |
38 | next if $wxCommon{$file} =~ /\bR\b/; | |
39 | ||
40 | ($fileobj = $file) =~ s/cp?p?$/\o/; | |
2224580a VZ |
41 | |
42 | $project{"GTK_SOURCES"} .= "common/" . $file . " "; | |
43 | $project{"COMMONOBJS"} .= $fileobj . " "; | |
2224580a VZ |
44 | } |
45 | ||
46 | foreach $file (sort keys %wxGTK) { | |
47 | ($fileobj = $file) =~ s/cp?p?$/\o/; | |
2224580a VZ |
48 | |
49 | $project{"GTK_SOURCES"} .= "gtk/" . $file . " "; | |
50 | $project{"GUIOBJS"} .= $fileobj . " "; | |
1e6feb95 VZ |
51 | |
52 | if ( $wxGTK{$file} =~ /\bL\b/ ) { | |
53 | $project{"GUI_LOWLEVEL_OBJS"} .= $fileobj . " "; | |
1e6feb95 | 54 | } |
2224580a VZ |
55 | } |
56 | ||
57 | foreach $file (sort keys %wxUNIX) { | |
58 | ($fileobj = $file) =~ s/cp?p?$/\o/; | |
2224580a VZ |
59 | |
60 | $project{"GTK_SOURCES"} .= "unix/" . $file . " "; | |
61 | $project{"UNIXOBJS"} .= $fileobj . " "; | |
2224580a VZ |
62 | } |
63 | ||
64 | foreach $file (sort keys %wxHTML) { | |
65 | ($fileobj = $file) =~ s/cp?p?$/\o/; | |
2224580a VZ |
66 | |
67 | $project{"GTK_SOURCES"} .= "html/" . $file . " "; | |
68 | $project{"HTMLOBJS"} .= $fileobj . " "; | |
2224580a | 69 | } |
1e6feb95 | 70 | |
2224580a VZ |
71 | #! find all our headers |
72 | foreach $file (sort keys %wxWXINCLUDE) { | |
7529690d VZ |
73 | next if $wxWXINCLUDE{$file} =~ /\bR\b/; |
74 | ||
2224580a VZ |
75 | $project{"GTK_HEADERS"} .= $file . " " |
76 | } | |
77 | ||
78 | foreach $file (sort keys %wxGTKINCLUDE) { | |
79 | $project{"GTK_HEADERS"} .= "gtk/" . $file . " " | |
80 | } | |
81 | ||
82 | foreach $file (sort keys %wxGENERICINCLUDE) { | |
83 | $project{"GTK_HEADERS"} .= "generic/" . $file . " " | |
84 | } | |
85 | ||
86 | foreach $file (sort keys %wxUNIXINCLUDE) { | |
87 | $project{"GTK_HEADERS"} .= "unix/" . $file . " " | |
88 | } | |
89 | ||
90 | foreach $file (sort keys %wxHTMLINCLUDE) { | |
91 | $project{"GTK_HEADERS"} .= "html/" . $file . " " | |
92 | } | |
93 | ||
94 | foreach $file (sort keys %wxPROTOCOLINCLUDE) { | |
95 | $project{"GTK_HEADERS"} .= "protocol/" . $file . " " | |
96 | } | |
97 | #$} | |
98 | # This file was automatically generated by tmake at #$ Now() | |
99 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GTK.T! | |
100 | ALL_SOURCES = \ | |
101 | #$ ExpandList("GTK_SOURCES"); | |
102 | ||
103 | ALL_HEADERS = \ | |
104 | #$ ExpandList("GTK_HEADERS"); | |
105 | ||
106 | COMMONOBJS = \ | |
107 | #$ ExpandList("COMMONOBJS"); | |
108 | ||
2224580a VZ |
109 | GUIOBJS = \ |
110 | #$ ExpandList("GUIOBJS"); | |
111 | ||
1e6feb95 VZ |
112 | GUI_LOWLEVEL_OBJS = \ |
113 | #$ ExpandList("GUI_LOWLEVEL_OBJS"); | |
114 | ||
2224580a VZ |
115 | UNIXOBJS = \ |
116 | #$ ExpandList("UNIXOBJS"); | |
117 | ||
2224580a VZ |
118 | HTMLOBJS = \ |
119 | #$ ExpandList("HTMLOBJS"); | |
120 |