|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 PROGRAM=/home/nokia/standalone/group/svgtbinencode.exe |
|
18 OBJS=/home/nokia/standalone/group |
|
19 PARENT_DIR=/home/nokia/standalone/group |
|
20 SOURCES_CPP=../Internal/Gfx2D/src/GfxFloatFixPt.cpp \ |
|
21 ../Internal/Gfx2D/src/Gfxtrignometric.cpp \ |
|
22 ../Internal/Gfx2D/src/GfxGc/GfxColor.cpp \ |
|
23 ../Internal/Gfx2D/src/GfxGc/GfxGradientPaint.cpp \ |
|
24 ../Internal/Gfx2D/src/GfxGeom/GfxAffineTransform.cpp \ |
|
25 ../Internal/Gfx2D/src/GfxGeom/GfxEllipse2D.cpp \ |
|
26 ../Internal/Gfx2D/src/GfxGeom/GfxEllipseIteratorP.cpp \ |
|
27 ../Internal/Gfx2D/src/GfxGeom/GfxFlatteningPathIterator.cpp \ |
|
28 ../Internal/Gfx2D/src/GfxGeom/GfxGeneralPath.cpp \ |
|
29 ../Internal/Gfx2D/src/GfxGeom/GfxGeneralPathIteratorP.cpp \ |
|
30 ../Internal/Gfx2D/src/GfxGeom/GfxLine2D.cpp \ |
|
31 ../Internal/Gfx2D/src/GfxGeom/GfxLineIteratorP.cpp \ |
|
32 ../Internal/Gfx2D/src/GfxGeom/GfxPoint2D.cpp \ |
|
33 ../Internal/Gfx2D/src/GfxGeom/GfxRectangle2D.cpp \ |
|
34 ../Internal/Gfx2D/src/GfxGeom/GfxRectangleIteratorP.cpp \ |
|
35 ../Internal/Gfx2D/src/GfxGeom/GfxRectangularShape.cpp \ |
|
36 ../Internal/Gfx2D/src/GfxGeom/GfxRoundRectangle2D.cpp \ |
|
37 ../Internal/Gfx2D/src/GfxGeom/GfxRoundRectangleIteratorP.cpp \ |
|
38 ../Internal/Nvg/src/NVGCircleElement.cpp \ |
|
39 ../Internal/Nvg/src/NvgCommandSection.cpp \ |
|
40 ../Internal/Nvg/src/NVGDefElement.cpp \ |
|
41 ../Internal/Nvg/src/NVGElement.cpp \ |
|
42 ../Internal/Nvg/src/NVGElementFactory.cpp \ |
|
43 ../Internal/Nvg/src/NVGEllipseElement.cpp \ |
|
44 ../Internal/Nvg/src/NVGEncoder.cpp \ |
|
45 ../Internal/Nvg/src/NVGGElement.cpp \ |
|
46 ../Internal/Nvg/src/NvgHeaderSection.cpp \ |
|
47 ../Internal/Nvg/src/NVGLinearGradientElement.cpp \ |
|
48 ../Internal/Nvg/src/NVGLineElement.cpp \ |
|
49 ../Internal/Nvg/src/NvgOffsetVector.cpp \ |
|
50 ../Internal/Nvg/src/NvgPaintSection.cpp \ |
|
51 ../Internal/Nvg/src/NVGPathElement.cpp \ |
|
52 ../Internal/Nvg/src/NvgPathSection.cpp \ |
|
53 ../Internal/Nvg/src/NVGPolygonElement.cpp \ |
|
54 ../Internal/Nvg/src/NVGRadialGradientElement.cpp \ |
|
55 ../Internal/Nvg/src/NVGRectElement.cpp \ |
|
56 ../Internal/Nvg/src/NVGStopElement.cpp \ |
|
57 ../Internal/Nvg/src/NVGSVGElement.cpp \ |
|
58 ../Internal/Sax2Print/SAX2PrintHandlers.cpp \ |
|
59 ../Internal/SVGEngine/src/SVGAttributeVerifier.cpp \ |
|
60 ../Internal/SVGEngine/src/SVGContentHandler.cpp \ |
|
61 ../Internal/SVGEngine/src/Svgencoder.cpp \ |
|
62 ../Internal/SVGEngine/src/SVGEncoderMain.cpp \ |
|
63 ../Internal/SVGEngine/src/SVGEngineImpl.cpp \ |
|
64 ../Internal/SVGEngine/src/SVGErrorImpl.cpp \ |
|
65 ../Internal/SVGEngine/src/SVGEvent.cpp \ |
|
66 ../Internal/SVGEngine/src/SVGTEncodeInterfaceImpl.cpp \ |
|
67 ../Internal/SVGImpl/src/SVGAElementImpl.cpp \ |
|
68 ../Internal/SVGImpl/src/SVGAnimateElementImpl.cpp \ |
|
69 ../Internal/SVGImpl/src/SVGAnimateMotionElementImpl.cpp \ |
|
70 ../Internal/SVGImpl/src/SVGAnimateTransformElementImpl.cpp \ |
|
71 ../Internal/SVGImpl/src/SVGAnimationBase.cpp \ |
|
72 ../Internal/SVGImpl/src/SVGAnimTimeController.cpp \ |
|
73 ../Internal/SVGImpl/src/SVGAnimTimingParser.cpp \ |
|
74 ../Internal/SVGImpl/src/SVGAudioElementImpl.cpp \ |
|
75 ../Internal/SVGImpl/src/SVGCircleElementImpl.cpp \ |
|
76 ../Internal/SVGImpl/src/SVGClrCssValueImpl.cpp \ |
|
77 ../Internal/SVGImpl/src/SVGColor.cpp \ |
|
78 ../Internal/SVGImpl/src/SVGDiscardElementImpl.cpp \ |
|
79 ../Internal/SVGImpl/src/SVGDocumentImpl.cpp \ |
|
80 ../Internal/SVGImpl/src/SVGDOMImplementationImpl.cpp \ |
|
81 ../Internal/SVGImpl/src/SVGElementImpl.cpp \ |
|
82 ../Internal/SVGImpl/src/SVGEllipseElementImpl.cpp \ |
|
83 ../Internal/SVGImpl/src/SVGFitToViewBoxImpl.cpp \ |
|
84 ../Internal/SVGImpl/src/SVGFloatCssValueImpl.cpp \ |
|
85 ../Internal/SVGImpl/src/SVGFontElementImpl.cpp \ |
|
86 ../Internal/SVGImpl/src/SVGFontFaceElementImpl.cpp \ |
|
87 ../Internal/SVGImpl/src/SVGFontMap.cpp \ |
|
88 ../Internal/SVGImpl/src/SVGGElementImpl.cpp \ |
|
89 ../Internal/SVGImpl/src/SVGGlyphElementImpl.cpp \ |
|
90 ../Internal/SVGImpl/src/SVGGradientElementImpl.cpp \ |
|
91 ../Internal/SVGImpl/src/SVGImageElementImpl.cpp \ |
|
92 ../Internal/SVGImpl/src/SVGIntCssValueImpl.cpp \ |
|
93 ../Internal/SVGImpl/src/SVGLangSpaceImpl.cpp \ |
|
94 ../Internal/SVGImpl/src/SVGLinearGradientElementImpl.cpp \ |
|
95 ../Internal/SVGImpl/src/SVGLineElementImpl.cpp \ |
|
96 ../Internal/SVGImpl/src/SVGMediaAnimationElementImpl.cpp \ |
|
97 ../Internal/SVGImpl/src/SVGMediaElementBase.cpp \ |
|
98 ../Internal/SVGImpl/src/SVGMissingGlyphElementImpl.cpp \ |
|
99 ../Internal/SVGImpl/src/SVGMpathElementImpl.cpp \ |
|
100 ../Internal/SVGImpl/src/SVGPaintCssValueImpl.cpp \ |
|
101 ../Internal/SVGImpl/src/SVGPathDataParser.cpp \ |
|
102 ../Internal/SVGImpl/src/SVGPathElementImpl.cpp \ |
|
103 ../Internal/SVGImpl/src/SVGPointLexer.cpp \ |
|
104 ../Internal/SVGImpl/src/SVGPolylineElementImpl.cpp \ |
|
105 ../Internal/SVGImpl/src/SVGPreserveAspectRatioImpl.cpp \ |
|
106 ../Internal/SVGImpl/src/SVGRadialGradientElementImpl.cpp \ |
|
107 ../Internal/SVGImpl/src/SVGRectElementImpl.cpp \ |
|
108 ../Internal/SVGImpl/src/SVGRelToAbsPath.cpp \ |
|
109 ../Internal/SVGImpl/src/SVGSchemaData.cpp \ |
|
110 ../Internal/SVGImpl/src/SVGSetElementImpl.cpp \ |
|
111 ../Internal/SVGImpl/src/SVGSolidColorElementImpl.cpp \ |
|
112 ../Internal/SVGImpl/src/SVGStopElementImpl.cpp \ |
|
113 ../Internal/SVGImpl/src/SVGStrCssValueImpl.cpp \ |
|
114 ../Internal/SVGImpl/src/SVGStringTokenizer.cpp \ |
|
115 ../Internal/SVGImpl/src/SVGStyleElementImpl.cpp \ |
|
116 ../Internal/SVGImpl/src/SVGTestsImpl.cpp \ |
|
117 ../Internal/SVGImpl/src/SVGTextElementImpl.cpp \ |
|
118 ../Internal/SVGImpl/src/SVGTransformListImpl.cpp \ |
|
119 ../Internal/SVGImpl/src/SVGTransformableImpl.cpp \ |
|
120 ../Internal/SVGImpl/src/SVGUriReferenceImpl.cpp \ |
|
121 ../Internal/SVGImpl/src/SVGUseElementImpl.cpp \ |
|
122 ../Internal/SVGImpl/src/SVGVectorCssValueImpl.cpp \ |
|
123 ../Internal/SVGImpl/src/SvgHkernelementimpl.cpp \ |
|
124 ../Internal/SVGImpl/src/Svgsvgelementimpl.cpp \ |
|
125 ../Internal/testingsymdefcppdll/Buf.cpp \ |
|
126 ../Internal/testingsymdefcppdll/Des16.cpp \ |
|
127 ../Internal/testingsymdefcppdll/Des8.cpp \ |
|
128 ../Internal/testingsymdefcppdll/Desc16.cpp \ |
|
129 ../Internal/testingsymdefcppdll/Desc8.cpp \ |
|
130 ../Internal/testingsymdefcppdll/Hbufc16.cpp \ |
|
131 ../Internal/testingsymdefcppdll/Hbufc8.cpp \ |
|
132 ../Internal/testingsymdefcppdll/Rfile.cpp \ |
|
133 ../Internal/testingsymdefcppdll/Rpointerarraybase.cpp \ |
|
134 ../Internal/testingsymdefcppdll/Tbufbase16.cpp \ |
|
135 ../Internal/testingsymdefcppdll/Tbufbase8.cpp \ |
|
136 ../Internal/testingsymdefcppdll/TBufC.cpp \ |
|
137 ../Internal/testingsymdefcppdll/Tbufcbase16.cpp \ |
|
138 ../Internal/testingsymdefcppdll/Tbufcbase8.cpp \ |
|
139 ../Internal/testingsymdefcppdll/Tchar.cpp \ |
|
140 ../Internal/testingsymdefcppdll/TInt64.cpp \ |
|
141 ../Internal/testingsymdefcppdll/Tkeydesc8array.cpp \ |
|
142 ../Internal/testingsymdefcppdll/Tlex.cpp \ |
|
143 ../Internal/testingsymdefcppdll/Tptr16.cpp \ |
|
144 ../Internal/testingsymdefcppdll/Tptr8.cpp \ |
|
145 ../Internal/testingsymdefcppdll/Tptrc16.cpp \ |
|
146 ../Internal/testingsymdefcppdll/Tptrc8.cpp \ |
|
147 ../Internal/testingsymdefcppdll/Trgb.cpp \ |
|
148 ../Internal/testingsymdefcppdll/utf.cpp \ |
|
149 ../Internal/Xmldomimpl/src/SVGXmlElementImpl.cpp \ |
|
150 ../Internal/xmlReader/src/MyRXMLReader.cpp |
|
151 |
|
152 SOURCES_C=../Internal/Gfx2D/VGRasterizer/src/svgapi.c \ |
|
153 ../Internal/Gfx2D/VGRasterizer/src/svgpath.c \ |
|
154 ../Internal/Gfx2D/VGRasterizer/src/svgmath.c \ |
|
155 ../Internal/Gfx2D/VGRasterizer/src/svgsubdivide.c |
|
156 |
|
157 |
|
158 OBJECTS_CPP_DEB=$(SOURCES_CPP:.cpp=.dbg.o) |
|
159 OBJECTS_C_DEB=$(SOURCES_C:.c=.dbg.o) |
|
160 OBJECTS_CPP_REL=$(SOURCES_CPP:.cpp=.o) |
|
161 OBJECTS_C_REL=$(SOURCES_C:.c=.o) |
|
162 |
|
163 STLPORT_INC=/usr/local/lib |
|
164 INCLUDES=-I "$(PARENT_DIR)" -I "$(PARENT_DIR)/inc" -I usr/include |
|
165 # /I"$(EPOCROOT)epoc32/include" / |
|
166 # /I"$(STLPORT_INC)" |
|
167 |
|
168 VPATH=$(PARENT_DIR) |
|
169 CC=g++ -g |
|
170 LINK=ld |
|
171 LINK32_FLAGS=/home/nokia/standalone/lib_linux/libxercesenc-c.so.28 |
|
172 DEFINES =-I "../Internal/SVGEngine/inc" \ |
|
173 -I "../Internal/Gfx2D/inc" \ |
|
174 -I "../Internal/Gfx2D/VGRasterizer/inc" \ |
|
175 -I "../Internal/Xmldomimpl/inc" \ |
|
176 -I "../Internal/SVGImpl/inc/SVGDOM" \ |
|
177 -I "../Internal/SVGImpl/inc" \ |
|
178 -I "../Internal/xmlReader/inc" \ |
|
179 -I "../Internal/Sax2Print" \ |
|
180 -I "../Internal/Nvg/inc" \ |
|
181 -I "../Internal/Path/inc" -D ARM -D NDEBUG -D _CONSOLE -D _MBCS |
|
182 #/YX /FD /c |
|
183 #CLFLAGS = /Od /nologo /GF -W4 /Fd -GX |
|
184 CLFLAGS =-ansi -umacro -fms-extensions -w -fshort-wchar -g3 |
|
185 #/nologo /MT /GX |
|
186 $(PROGRAM) : $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) |
|
187 # echo $(SOURCES_CPP) |
|
188 # echo $(SOURCES_C) |
|
189 g++ -g3 -lstdc++ -o $(PROGRAM) $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) $(LINK32_FLAGS) |
|
190 |
|
191 #DEB : $(OBJECTS_CPP_DEB) |
|
192 echo "DEB build Called" |
|
193 # echo $(SOURCES_CPP) |
|
194 # echo $(SOURCES_C) |
|
195 # $(LINK) /OUT:"$(PROGRAM).dbg" $(OBJECTS_CPP_DEB) $(LINK32_FLAGS) |
|
196 |
|
197 |
|
198 REL : $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) |
|
199 echo "REL build Called" |
|
200 # echo $(SOURCES_CPP) |
|
201 # echo $(SOURCES_C) |
|
202 $(LINK) /OUT:"$(PROGRAM).rel" $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) $(LINK32_FLAGS) |
|
203 |
|
204 %.o : %.cpp |
|
205 $(CC) $(DEFINES) $(CLFLAGS) $(INCLUDES) -o "$@" -c $< |
|
206 |
|
207 %.dbg.o : %.cpp |
|
208 $(CC) $(DEFINES) $(CLFLAGS) $(INCLUDES) -o "$@" -c $< |
|
209 |
|
210 %.o : %.c |
|
211 $(CC) $(DEFINES) $(CLFLAGS) $(INCLUDES) -o "$@" -c $< |
|
212 |
|
213 %.dbg.o : %.c |
|
214 $(CC) $(DEFINES) $(CLFLAGS) $(INCLUDES) -o "$@" -c $< |
|
215 |
|
216 #EB_install: $(PROGRAM).dbg |
|
217 # echo $(PARENT_DIR) |
|
218 # echo $(BUILD_DIR) |
|
219 # echo $(CURDIR) |
|
220 # copy /y "$(PARENT_DIR)/$(PROGRAM).dbg" "/epoc32/RELEASE/tools/deb/$(PROGRAM)" |
|
221 # copy /y "/S60/mw/graphics/SVGTopt/SVGTEncoder/standalone/lib/$(OBJS)" "/epoc32/RELEASE/tools/deb/$(OBJS)" |
|
222 #REL_install: $(PROGRAM).rel |
|
223 # echo $(PARENT_DIR) |
|
224 # echo $(BUILD_DIR) |
|
225 # echo $(CURDIR) |
|
226 # copy /y "$(PARENT_DIR)/$(PROGRAM).rel" "/epoc32/tools/$(PROGRAM)" |
|
227 # copy /y "/S60/mw/graphics/SVGTopt/SVGTEncoder/standalone/lib/$(OBJS)" "/epoc32/tools/$(OBJS)" |
|
228 #DEB_CLEAN: |
|
229 # echo $(CURDIR) |
|
230 # @chdir $(PARENT_DIR) && erase /f $(OBJECTS_CPP_DEB) 2>>nul |
|
231 # @chdir $(PARENT_DIR) && erase /f $(OBJECTS_C_DEB) 2>>nul |
|
232 # @chdir $(PARENT_DIR) && erase /f $(PROGRAM).dbg 2>>nul |
|
233 # @erase /f "/epoc32/RELEASE/tools/deb/$(PROGRAM)" 2>>nul |
|
234 # @erase /f "/epoc32/RELEASE/tools/deb/$(OBJS)" 2>>nul |
|
235 |
|
236 #REL_clean: |
|
237 # echo $(CURDIR) |
|
238 # @chdir $(PARENT_DIR) && erase /f $(OBJECTS_CPP_REL) 2>>nul |
|
239 # @chdir $(PARENT_DIR) && erase /f $(OBJECTS_C_REL) 2>>nul |
|
240 # @chdir $(PARENT_DIR) && erase /f $(PROGRAM).rel 2>>nul |
|
241 # @erase /f "/epoc32/tools/$(PROGRAM)" 2>>nul |
|
242 # @erase /f "/epoc32/tools/$(OBJS)" 2>>nul |
|
243 |
|
244 |
|
245 clean : FORCE |
|
246 cd ../; \ |
|
247 find -name *.o -type f -exec rm {} \; |
|
248 |
|
249 FORCE: |
|
250 |
|
251 |