forked from FNA-XNA/FNA
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
359 lines (350 loc) · 12.9 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# Makefile for FNA
# Written by Ethan "flibitijibibo" Lee
# Source Lists
SRC = \
src/Audio/AudioCategory.cs \
src/Audio/AudioChannels.cs \
src/Audio/AudioEmitter.cs \
src/Audio/AudioEngine.cs \
src/Audio/AudioListener.cs \
src/Audio/AudioStopOptions.cs \
src/Audio/Cue.cs \
src/Audio/DynamicSoundEffectInstance.cs \
src/Audio/InstancePlayLimitException.cs \
src/Audio/Microphone.cs \
src/Audio/MicrophoneState.cs \
src/Audio/NoAudioHardwareException.cs \
src/Audio/NoMicrophoneConnectedException.cs \
src/Audio/RendererDetail.cs \
src/Audio/SoundBank.cs \
src/Audio/SoundEffect.cs \
src/Audio/SoundEffectInstance.cs \
src/Audio/SoundState.cs \
src/Audio/WaveBank.cs \
src/BoundingBox.cs \
src/BoundingFrustum.cs \
src/BoundingSphere.cs \
src/Color.cs \
src/ContainmentType.cs \
src/Content/ContentExtensions.cs \
src/Content/ContentLoadException.cs \
src/Content/ContentManager.cs \
src/Content/ContentReader.cs \
src/Content/ContentReaders/AlphaTestEffectReader.cs \
src/Content/ContentReaders/ArrayReader.cs \
src/Content/ContentReaders/BasicEffectReader.cs \
src/Content/ContentReaders/BooleanReader.cs \
src/Content/ContentReaders/BoundingBoxReader.cs \
src/Content/ContentReaders/BoundingFrustumReader.cs \
src/Content/ContentReaders/BoundingSphereReader.cs \
src/Content/ContentReaders/ByteReader.cs \
src/Content/ContentReaders/CharReader.cs \
src/Content/ContentReaders/ColorReader.cs \
src/Content/ContentReaders/CurveReader.cs \
src/Content/ContentReaders/DateTimeReader.cs \
src/Content/ContentReaders/DecimalReader.cs \
src/Content/ContentReaders/DictionaryReader.cs \
src/Content/ContentReaders/DoubleReader.cs \
src/Content/ContentReaders/DualTextureEffectReader.cs \
src/Content/ContentReaders/EffectMaterialReader.cs \
src/Content/ContentReaders/EffectReader.cs \
src/Content/ContentReaders/EnumReader.cs \
src/Content/ContentReaders/EnvironmentMapEffectReader.cs \
src/Content/ContentReaders/ExternalReferenceReader.cs \
src/Content/ContentReaders/IndexBufferReader.cs \
src/Content/ContentReaders/Int16Reader.cs \
src/Content/ContentReaders/Int32Reader.cs \
src/Content/ContentReaders/Int64Reader.cs \
src/Content/ContentReaders/ListReader.cs \
src/Content/ContentReaders/MatrixReader.cs \
src/Content/ContentReaders/ModelReader.cs \
src/Content/ContentReaders/NullableReader.cs \
src/Content/ContentReaders/PlaneReader.cs \
src/Content/ContentReaders/PointReader.cs \
src/Content/ContentReaders/QuaternionReader.cs \
src/Content/ContentReaders/RayReader.cs \
src/Content/ContentReaders/RectangleReader.cs \
src/Content/ContentReaders/ReflectiveReader.cs \
src/Content/ContentReaders/SByteReader.cs \
src/Content/ContentReaders/SingleReader.cs \
src/Content/ContentReaders/SkinnedEffectReader.cs \
src/Content/ContentReaders/SongReader.cs \
src/Content/ContentReaders/SoundEffectReader.cs \
src/Content/ContentReaders/SpriteFontReader.cs \
src/Content/ContentReaders/StringReader.cs \
src/Content/ContentReaders/Texture2DReader.cs \
src/Content/ContentReaders/Texture3DReader.cs \
src/Content/ContentReaders/TextureCubeReader.cs \
src/Content/ContentReaders/TextureReader.cs \
src/Content/ContentReaders/TimeSpanReader.cs \
src/Content/ContentReaders/UInt16Reader.cs \
src/Content/ContentReaders/UInt32Reader.cs \
src/Content/ContentReaders/UInt64Reader.cs \
src/Content/ContentReaders/Vector2Reader.cs \
src/Content/ContentReaders/Vector3Reader.cs \
src/Content/ContentReaders/Vector4Reader.cs \
src/Content/ContentReaders/VertexBufferReader.cs \
src/Content/ContentReaders/VertexDeclarationReader.cs \
src/Content/ContentReaders/VideoReader.cs \
src/Content/ContentSerializerAttribute.cs \
src/Content/ContentSerializerCollectionItemNameAttribute.cs \
src/Content/ContentSerializerIgnoreAttribute.cs \
src/Content/ContentSerializerRuntimeTypeAttribute.cs \
src/Content/ContentSerializerTypeVersionAttribute.cs \
src/Content/ContentTypeReader.cs \
src/Content/ContentTypeReaderManager.cs \
src/Content/LzxDecoder.cs \
src/Content/ResourceContentManager.cs \
src/Curve.cs \
src/CurveContinuity.cs \
src/CurveKey.cs \
src/CurveKeyCollection.cs \
src/CurveLoopType.cs \
src/CurveTangent.cs \
src/Design/BoundingBoxConverter.cs \
src/Design/BoundingSphereConverter.cs \
src/Design/ColorConverter.cs \
src/Design/MathTypeConverter.cs \
src/Design/MatrixConverter.cs \
src/Design/PlaneConverter.cs \
src/Design/PointConverter.cs \
src/Design/QuaternionConverter.cs \
src/Design/RayConverter.cs \
src/Design/RectangleConverter.cs \
src/Design/Vector2Converter.cs \
src/Design/Vector3Converter.cs \
src/Design/Vector4Converter.cs \
src/DisplayOrientation.cs \
src/DrawableGameComponent.cs \
src/FNALoggerEXT.cs \
src/FNAPlatform/FNAPlatform.cs \
src/FNAPlatform/FNAWindow.cs \
src/FNAPlatform/SDL2_FNAPlatform.cs \
src/FrameworkDispatcher.cs \
src/Game.cs \
src/GameComponent.cs \
src/GameComponentCollection.cs \
src/GameComponentCollectionEventArgs.cs \
src/GameServiceContainer.cs \
src/GameTime.cs \
src/GameWindow.cs \
src/Graphics/ClearOptions.cs \
src/Graphics/ColorWriteChannels.cs \
src/Graphics/CubeMapFace.cs \
src/Graphics/DepthFormat.cs \
src/Graphics/DeviceLostException.cs \
src/Graphics/DeviceNotResetException.cs \
src/Graphics/DirectionalLight.cs \
src/Graphics/DisplayMode.cs \
src/Graphics/DisplayModeCollection.cs \
src/Graphics/DxtUtil.cs \
src/Graphics/Effect/Effect.cs \
src/Graphics/Effect/EffectAnnotation.cs \
src/Graphics/Effect/EffectAnnotationCollection.cs \
src/Graphics/Effect/EffectMaterial.cs \
src/Graphics/Effect/EffectParameter.cs \
src/Graphics/Effect/EffectParameterClass.cs \
src/Graphics/Effect/EffectParameterCollection.cs \
src/Graphics/Effect/EffectParameterType.cs \
src/Graphics/Effect/EffectPass.cs \
src/Graphics/Effect/EffectPassCollection.cs \
src/Graphics/Effect/EffectTechnique.cs \
src/Graphics/Effect/EffectTechniqueCollection.cs \
src/Graphics/Effect/IEffectFog.cs \
src/Graphics/Effect/IEffectLights.cs \
src/Graphics/Effect/IEffectMatrices.cs \
src/Graphics/Effect/Resources.cs \
src/Graphics/Effect/StockEffects/AlphaTestEffect.cs \
src/Graphics/Effect/StockEffects/BasicEffect.cs \
src/Graphics/Effect/StockEffects/DualTextureEffect.cs \
src/Graphics/Effect/StockEffects/EffectHelpers.cs \
src/Graphics/Effect/StockEffects/EnvironmentMapEffect.cs \
src/Graphics/Effect/StockEffects/SkinnedEffect.cs \
src/Graphics/Effect/StockEffects/SpriteEffect.cs \
src/Graphics/FNA3D.cs \
src/Graphics/GraphicsAdapter.cs \
src/Graphics/GraphicsDevice.cs \
src/Graphics/GraphicsDeviceStatus.cs \
src/Graphics/GraphicsProfile.cs \
src/Graphics/GraphicsResource.cs \
src/Graphics/IGraphicsDeviceService.cs \
src/Graphics/IRenderTarget.cs \
src/Graphics/Model.cs \
src/Graphics/ModelBone.cs \
src/Graphics/ModelBoneCollection.cs \
src/Graphics/ModelEffectCollection.cs \
src/Graphics/ModelMesh.cs \
src/Graphics/ModelMeshCollection.cs \
src/Graphics/ModelMeshPart.cs \
src/Graphics/ModelMeshPartCollection.cs \
src/Graphics/NoSuitableGraphicsDeviceException.cs \
src/Graphics/OcclusionQuery.cs \
src/Graphics/PackedVector/Alpha8.cs \
src/Graphics/PackedVector/Bgr565.cs \
src/Graphics/PackedVector/Bgra4444.cs \
src/Graphics/PackedVector/Bgra5551.cs \
src/Graphics/PackedVector/Byte4.cs \
src/Graphics/PackedVector/HalfSingle.cs \
src/Graphics/PackedVector/HalfTypeHelper.cs \
src/Graphics/PackedVector/HalfVector2.cs \
src/Graphics/PackedVector/HalfVector4.cs \
src/Graphics/PackedVector/IPackedVector.cs \
src/Graphics/PackedVector/NormalizedByte2.cs \
src/Graphics/PackedVector/NormalizedByte4.cs \
src/Graphics/PackedVector/NormalizedShort2.cs \
src/Graphics/PackedVector/NormalizedShort4.cs \
src/Graphics/PackedVector/Rg32.cs \
src/Graphics/PackedVector/Rgba64.cs \
src/Graphics/PackedVector/Rgba1010102.cs \
src/Graphics/PackedVector/Short2.cs \
src/Graphics/PackedVector/Short4.cs \
src/Graphics/PipelineCache.cs \
src/Graphics/PresentationParameters.cs \
src/Graphics/PresentInterval.cs \
src/Graphics/PrimitiveType.cs \
src/Graphics/ProfileCapabilities.cs \
src/Graphics/RenderTarget2D.cs \
src/Graphics/RenderTargetBinding.cs \
src/Graphics/RenderTargetCube.cs \
src/Graphics/RenderTargetUsage.cs \
src/Graphics/ResourceCreatedEventArgs.cs \
src/Graphics/ResourceDestroyedEventArgs.cs \
src/Graphics/SamplerStateCollection.cs \
src/Graphics/SetDataOptions.cs \
src/Graphics/SpriteBatch.cs \
src/Graphics/SpriteEffects.cs \
src/Graphics/SpriteFont.cs \
src/Graphics/SpriteSortMode.cs \
src/Graphics/States/Blend.cs \
src/Graphics/States/BlendFunction.cs \
src/Graphics/States/BlendState.cs \
src/Graphics/States/CompareFunction.cs \
src/Graphics/States/CullMode.cs \
src/Graphics/States/DepthStencilState.cs \
src/Graphics/States/FillMode.cs \
src/Graphics/States/RasterizerState.cs \
src/Graphics/States/SamplerState.cs \
src/Graphics/States/StencilOperation.cs \
src/Graphics/States/TextureAddressMode.cs \
src/Graphics/States/TextureFilter.cs \
src/Graphics/SurfaceFormat.cs \
src/Graphics/Texture.cs \
src/Graphics/Texture2D.cs \
src/Graphics/Texture3D.cs \
src/Graphics/TextureCollection.cs \
src/Graphics/TextureCube.cs \
src/Graphics/Vertices/BufferUsage.cs \
src/Graphics/Vertices/DynamicIndexBuffer.cs \
src/Graphics/Vertices/DynamicVertexBuffer.cs \
src/Graphics/Vertices/IndexBuffer.cs \
src/Graphics/Vertices/IndexElementSize.cs \
src/Graphics/Vertices/IVertexType.cs \
src/Graphics/Vertices/VertexBuffer.cs \
src/Graphics/Vertices/VertexBufferBinding.cs \
src/Graphics/Vertices/VertexDeclaration.cs \
src/Graphics/Vertices/VertexDeclarationCache.cs \
src/Graphics/Vertices/VertexElement.cs \
src/Graphics/Vertices/VertexElementFormat.cs \
src/Graphics/Vertices/VertexElementUsage.cs \
src/Graphics/Vertices/VertexPositionColor.cs \
src/Graphics/Vertices/VertexPositionColorTexture.cs \
src/Graphics/Vertices/VertexPositionNormalTexture.cs \
src/Graphics/Vertices/VertexPositionTexture.cs \
src/Graphics/Viewport.cs \
src/Graphics/X360TexUtil.cs \
src/GraphicsDeviceInformation.cs \
src/GraphicsDeviceManager.cs \
src/IDrawable.cs \
src/IGameComponent.cs \
src/IGraphicsDeviceManager.cs \
src/Input/Buttons.cs \
src/Input/ButtonState.cs \
src/Input/GamePad.cs \
src/Input/GamePadButtons.cs \
src/Input/GamePadCapabilities.cs \
src/Input/GamePadDeadZone.cs \
src/Input/GamePadDPad.cs \
src/Input/GamePadState.cs \
src/Input/GamePadThumbSticks.cs \
src/Input/GamePadTriggers.cs \
src/Input/GamePadType.cs \
src/Input/Keyboard.cs \
src/Input/KeyboardState.cs \
src/Input/Keys.cs \
src/Input/KeyState.cs \
src/Input/Mouse.cs \
src/Input/MouseState.cs \
src/Input/TextInputEXT.cs \
src/Input/Touch/GestureDetector.cs \
src/Input/Touch/GestureSample.cs \
src/Input/Touch/GestureType.cs \
src/Input/Touch/TouchCollection.cs \
src/Input/Touch/TouchLocation.cs \
src/Input/Touch/TouchLocationState.cs \
src/Input/Touch/TouchPanel.cs \
src/Input/Touch/TouchPanelCapabilities.cs \
src/IUpdateable.cs \
src/LaunchParameters.cs \
src/MathHelper.cs \
src/Matrix.cs \
src/Media/MediaPlayer.cs \
src/Media/MediaQueue.cs \
src/Media/MediaState.cs \
src/Media/Song.cs \
src/Media/SongCollection.cs \
src/Media/VideoSoundtrackType.cs \
src/Media/VisualizationData.cs \
src/Media/Xiph/Video.cs \
src/Media/Xiph/VideoPlayer.cs \
src/NamespaceDocs.cs \
src/Plane.cs \
src/PlaneIntersectionType.cs \
src/PlayerIndex.cs \
src/Point.cs \
src/PreparingDeviceSettingsEventArgs.cs \
src/Properties/AssemblyInfo.cs \
src/Quaternion.cs \
src/Ray.cs \
src/Rectangle.cs \
src/Storage/StorageContainer.cs \
src/Storage/StorageDevice.cs \
src/Storage/StorageDeviceNotConnectedException.cs \
src/TitleContainer.cs \
src/TitleLocation.cs \
src/Utilities/AssemblyHelper.cs \
src/Utilities/FileHelpers.cs \
src/Utilities/FNAInternalExtensions.cs \
src/Utilities/MarshalHelper.cs \
src/Utilities/XamarinHelper.cs \
src/Vector2.cs \
src/Vector3.cs \
src/Vector4.cs \
lib/SDL2-CS/src/SDL2.cs \
lib/FAudio/csharp/FAudio.cs \
lib/Theorafile/csharp/Theorafile.cs
RESDIR = src/Graphics/Effect/StockEffects/FXB
RESNAME = Microsoft.Xna.Framework.Graphics.Effect.Resources
RES = \
-resource:$(RESDIR)/AlphaTestEffect.fxb,$(RESNAME).AlphaTestEffect.fxb \
-resource:$(RESDIR)/BasicEffect.fxb,$(RESNAME).BasicEffect.fxb \
-resource:$(RESDIR)/DualTextureEffect.fxb,$(RESNAME).DualTextureEffect.fxb \
-resource:$(RESDIR)/EnvironmentMapEffect.fxb,$(RESNAME).EnvironmentMapEffect.fxb \
-resource:$(RESDIR)/SkinnedEffect.fxb,$(RESNAME).SkinnedEffect.fxb \
-resource:$(RESDIR)/SpriteEffect.fxb,$(RESNAME).SpriteEffect.fxb \
-resource:src/Graphics/Effect/YUVToRGBA/YUVToRGBAEffect.fxb,$(RESNAME).YUVToRGBAEffect.fxb
# Targets
debug: clean-debug
mkdir -p bin/Debug
cp app.config bin/Debug/FNA.dll.config
mcs /unsafe -debug -define:DEBUG -out:bin/Debug/FNA.dll -target:library $(SRC) $(RES)
clean-debug:
rm -rf bin/Debug
release: clean-release
mkdir -p bin/Release
cp app.config bin/Release/FNA.dll.config
mcs /unsafe -optimize -out:bin/Release/FNA.dll -target:library $(SRC) $(RES)
clean-release:
rm -rf bin/Release
clean: clean-debug clean-release
rm -rf bin
all: debug release