|
11 | 11 | <Option object_output="obj/Debug/" />
|
12 | 12 | <Option type="1" />
|
13 | 13 | <Option compiler="gcc" />
|
14 |
| - <Option parameters="test_objects/knoxS.obj" /> |
| 14 | + <Option host_application="gksudo" /> |
| 15 | + <Option run_host_application_in_terminal="0" /> |
15 | 16 | <Compiler>
|
16 | 17 | <Add option="-g" />
|
| 18 | + <Add option="`sdl2-config --cflags` `pkg-config libavcodec libavformat libavutil libswscale MagickWand --cflags`" /> |
17 | 19 | </Compiler>
|
| 20 | + <Linker> |
| 21 | + <Add option="`pkg-config libavcodec libavformat libavutil libswscale MagickWand --libs` `sdl2-config --libs`" /> |
| 22 | + <Add library="aa" /> |
| 23 | + <Add library="caca" /> |
| 24 | + <Add library="vga" /> |
| 25 | + <Add library="vgagl" /> |
| 26 | + </Linker> |
18 | 27 | </Target>
|
19 | 28 | <Target title="Release">
|
20 | 29 | <Option output="bin/Release/lib3d" prefix_auto="1" extension_auto="1" />
|
21 | 30 | <Option object_output="obj/Release/" />
|
22 | 31 | <Option type="1" />
|
23 | 32 | <Option compiler="gcc" />
|
| 33 | + <Compiler> |
| 34 | + <Add option="-O3" /> |
| 35 | + <Add option="`sdl2-config --cflags` `pkg-config libavcodec libavformat libavutil libswscale MagickWand --cflags`" /> |
| 36 | + </Compiler> |
| 37 | + <Linker> |
| 38 | + <Add option="-s" /> |
| 39 | + <Add option="`pkg-config libavcodec libavformat libavutil libswscale MagickWand --libs` `sdl2-config --libs`" /> |
| 40 | + <Add library="aa" /> |
| 41 | + <Add library="caca" /> |
| 42 | + <Add library="vga" /> |
| 43 | + <Add library="vgagl" /> |
| 44 | + </Linker> |
| 45 | + </Target> |
| 46 | + <Target title="Release Library"> |
| 47 | + <Option output="3d" imp_lib="lib3d.a" def_file="lib3d.def" prefix_auto="1" extension_auto="1" /> |
| 48 | + <Option object_output="obj/Release-Library" /> |
| 49 | + <Option type="3" /> |
| 50 | + <Option compiler="gcc" /> |
| 51 | + <Option createDefFile="1" /> |
| 52 | + <Option createStaticLib="1" /> |
| 53 | + <Compiler> |
| 54 | + <Add option="-O3" /> |
| 55 | + <Add option="`sdl2-config --cflags` `pkg-config libavcodec libavformat libavutil libswscale MagickWand --cflags`" /> |
| 56 | + </Compiler> |
| 57 | + <Linker> |
| 58 | + <Add option="`pkg-config libavcodec libavformat libavutil libswscale MagickWand --libs` `sdl2-config --libs`" /> |
| 59 | + <Add library="aa" /> |
| 60 | + <Add library="caca" /> |
| 61 | + <Add library="vga" /> |
| 62 | + <Add library="vgagl" /> |
| 63 | + </Linker> |
| 64 | + </Target> |
| 65 | + <Target title="Library Test"> |
| 66 | + <Option output="bin/Library-Test/lib3d" prefix_auto="1" extension_auto="1" /> |
| 67 | + <Option object_output="obj/Library-Test/" /> |
| 68 | + <Option external_deps="lib3d.so;" /> |
| 69 | + <Option type="1" /> |
| 70 | + <Option compiler="gcc" /> |
24 | 71 | <Compiler>
|
25 | 72 | <Add option="-O3" />
|
26 | 73 | </Compiler>
|
27 | 74 | <Linker>
|
28 | 75 | <Add option="-s" />
|
| 76 | + <Add library="./lib3d.so" /> |
29 | 77 | </Linker>
|
30 | 78 | </Target>
|
31 | 79 | </Build>
|
32 | 80 | <Compiler>
|
33 | 81 | <Add option="-std=c++11" />
|
34 | 82 | <Add option="-Wall" />
|
35 |
| - <Add option="-march=nocona -fexceptions -mfpmath=sse -funsafe-math-optimizations `sdl2-config --cflags`" /> |
36 |
| - <Add option="`pkg-config libavcodec libavformat libavutil libswscale MagickWand --cflags`" /> |
| 83 | + <Add option="-march=nocona -fexceptions -mfpmath=sse -funsafe-math-optimizations" /> |
37 | 84 | </Compiler>
|
38 |
| - <Linker> |
39 |
| - <Add option="`pkg-config libavcodec libavformat libavutil libswscale MagickWand --libs`" /> |
40 |
| - <Add option="`sdl2-config --libs`" /> |
41 |
| - <Add library="aa" /> |
42 |
| - <Add library="caca" /> |
43 |
| - </Linker> |
44 |
| - <Unit filename="cacarenderer.cpp" /> |
45 |
| - <Unit filename="cacarenderer.h" /> |
46 |
| - <Unit filename="ffmpeg_renderer.cpp" /> |
| 85 | + <Unit filename="cacarenderer.cpp"> |
| 86 | + <Option target="Debug" /> |
| 87 | + <Option target="Release" /> |
| 88 | + <Option target="Release Library" /> |
| 89 | + </Unit> |
| 90 | + <Unit filename="cacarenderer.h"> |
| 91 | + <Option target="Debug" /> |
| 92 | + <Option target="Release" /> |
| 93 | + <Option target="Release Library" /> |
| 94 | + </Unit> |
| 95 | + <Unit filename="ffmpeg_renderer.cpp"> |
| 96 | + <Option target="Debug" /> |
| 97 | + <Option target="Release" /> |
| 98 | + <Option target="Release Library" /> |
| 99 | + </Unit> |
47 | 100 | <Unit filename="ffmpeg_renderer.h" />
|
48 | 101 | <Unit filename="generate.h" />
|
49 |
| - <Unit filename="image.cpp" /> |
| 102 | + <Unit filename="image.cpp"> |
| 103 | + <Option target="Debug" /> |
| 104 | + <Option target="Release" /> |
| 105 | + <Option target="Release Library" /> |
| 106 | + </Unit> |
50 | 107 | <Unit filename="image.h" />
|
51 |
| - <Unit filename="image_load_internal.cpp" /> |
52 |
| - <Unit filename="image_load_internal.h" /> |
53 |
| - <Unit filename="libaarenderer.cpp" /> |
54 |
| - <Unit filename="libaarenderer.h" /> |
55 |
| - <Unit filename="main.cpp" /> |
| 108 | + <Unit filename="image_load_internal.cpp"> |
| 109 | + <Option target="Debug" /> |
| 110 | + <Option target="Release" /> |
| 111 | + <Option target="Release Library" /> |
| 112 | + </Unit> |
| 113 | + <Unit filename="image_load_internal.h"> |
| 114 | + <Option target="Debug" /> |
| 115 | + <Option target="Release" /> |
| 116 | + <Option target="Release Library" /> |
| 117 | + </Unit> |
| 118 | + <Unit filename="libaarenderer.cpp"> |
| 119 | + <Option target="Debug" /> |
| 120 | + <Option target="Release" /> |
| 121 | + <Option target="Release Library" /> |
| 122 | + </Unit> |
| 123 | + <Unit filename="libaarenderer.h"> |
| 124 | + <Option target="Debug" /> |
| 125 | + <Option target="Release" /> |
| 126 | + <Option target="Release Library" /> |
| 127 | + </Unit> |
| 128 | + <Unit filename="main.cpp"> |
| 129 | + <Option target="Debug" /> |
| 130 | + <Option target="Release" /> |
| 131 | + <Option target="Library Test" /> |
| 132 | + </Unit> |
56 | 133 | <Unit filename="material.h" />
|
57 | 134 | <Unit filename="matrix.h" />
|
58 | 135 | <Unit filename="mesh.h" />
|
59 |
| - <Unit filename="model.cpp" /> |
| 136 | + <Unit filename="model.cpp"> |
| 137 | + <Option target="Debug" /> |
| 138 | + <Option target="Release" /> |
| 139 | + <Option target="Release Library" /> |
| 140 | + </Unit> |
60 | 141 | <Unit filename="model.h" />
|
61 |
| - <Unit filename="rawrenderer.cpp" /> |
| 142 | + <Unit filename="rawrenderer.cpp"> |
| 143 | + <Option target="Debug" /> |
| 144 | + <Option target="Release" /> |
| 145 | + <Option target="Release Library" /> |
| 146 | + </Unit> |
62 | 147 | <Unit filename="rawrenderer.h" />
|
63 |
| - <Unit filename="render.cpp" /> |
| 148 | + <Unit filename="render.cpp"> |
| 149 | + <Option target="Debug" /> |
| 150 | + <Option target="Release" /> |
| 151 | + <Option target="Release Library" /> |
| 152 | + </Unit> |
64 | 153 | <Unit filename="renderer.h" />
|
65 |
| - <Unit filename="softrender.cpp" /> |
| 154 | + <Unit filename="softrender.cpp"> |
| 155 | + <Option target="Debug" /> |
| 156 | + <Option target="Release" /> |
| 157 | + <Option target="Release Library" /> |
| 158 | + </Unit> |
66 | 159 | <Unit filename="softrender.h" />
|
| 160 | + <Unit filename="svgarenderer.cpp"> |
| 161 | + <Option target="Debug" /> |
| 162 | + <Option target="Release" /> |
| 163 | + <Option target="Release Library" /> |
| 164 | + </Unit> |
| 165 | + <Unit filename="svgarenderer.h"> |
| 166 | + <Option target="Debug" /> |
| 167 | + <Option target="Release" /> |
| 168 | + <Option target="Release Library" /> |
| 169 | + </Unit> |
67 | 170 | <Unit filename="triangle.h" />
|
68 | 171 | <Unit filename="vector.h" />
|
69 | 172 | <Extensions>
|
|
0 commit comments