Compare commits
932 Commits
android-x8
...
mesa-7.3-r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88083e9bab | ||
|
|
47e54545ed | ||
|
|
54885ff0ad | ||
|
|
502fbe7cb3 | ||
|
|
08fdb497fb | ||
|
|
2a6711c0e5 | ||
|
|
382a8f6e29 | ||
|
|
a713ba4399 | ||
|
|
5359febc9b | ||
|
|
85d882983f | ||
|
|
5387880f18 | ||
|
|
a7a9398411 | ||
|
|
7593023f0b | ||
|
|
92d9a71f60 | ||
|
|
661890211e | ||
|
|
0206e20240 | ||
|
|
83a4719056 | ||
|
|
6cfe871c75 | ||
|
|
84bb8fc695 | ||
|
|
872cb1a0dd | ||
|
|
ee80a3a623 | ||
|
|
e700c5ad99 | ||
|
|
08c0ec7a89 | ||
|
|
35fe0e56e6 | ||
|
|
69e5311ad3 | ||
|
|
e884c4db2b | ||
|
|
e681bee04e | ||
|
|
07c1fcc604 | ||
|
|
7959b95efa | ||
|
|
3dd48d903f | ||
|
|
e0ea4337fc | ||
|
|
6290d7fd29 | ||
|
|
84ad182ab8 | ||
|
|
a155ead515 | ||
|
|
5b0f652456 | ||
|
|
1be50e1638 | ||
|
|
4fefa29d8c | ||
|
|
ef479d9f2a | ||
|
|
fc04604856 | ||
|
|
ef2bd7860f | ||
|
|
dca8b4c964 | ||
|
|
419353dc2f | ||
|
|
38d3b2262b | ||
|
|
4db2a7f36c | ||
|
|
1145042fd2 | ||
|
|
772131280a | ||
|
|
ee913c0fcc | ||
|
|
cd1804c43a | ||
|
|
253784d45e | ||
|
|
463d19d477 | ||
|
|
6e4fd90ca5 | ||
|
|
06188c0c5c | ||
|
|
dec9097647 | ||
|
|
e234339dba | ||
|
|
bb09d23e92 | ||
|
|
1ffbcddb6f | ||
|
|
5cd892a4e4 | ||
|
|
33cf8f5c06 | ||
|
|
7b8d878bed | ||
|
|
86ae34fbb4 | ||
|
|
16f3461fd6 | ||
|
|
0ac8886b51 | ||
|
|
1729d37223 | ||
|
|
81edef6f9f | ||
|
|
e040e18c7b | ||
|
|
14d186644b | ||
|
|
e4535e4d5e | ||
|
|
a008813890 | ||
|
|
da50dc7bb3 | ||
|
|
7f628d9cbc | ||
|
|
f9affb3059 | ||
|
|
fd7cc514d2 | ||
|
|
f6a927b45f | ||
|
|
8772e02b68 | ||
|
|
b2ffd0be03 | ||
|
|
912b16c689 | ||
|
|
6d9b25e522 | ||
|
|
31bad23f0f | ||
|
|
29b9b25e72 | ||
|
|
e794f496c6 | ||
|
|
68067c66d3 | ||
|
|
ad5474e995 | ||
|
|
ac8771ee99 | ||
|
|
16358bb3cc | ||
|
|
ef160330e5 | ||
|
|
332dcfb60b | ||
|
|
a8dde163dc | ||
|
|
868d0accef | ||
|
|
64e57ed257 | ||
|
|
e325b76444 | ||
|
|
34eedc6a98 | ||
|
|
8c21c2e07e | ||
|
|
27425708f5 | ||
|
|
fc07b6cda0 | ||
|
|
562ed27eb5 | ||
|
|
0a0e09078d | ||
|
|
50bc5a75a7 | ||
|
|
6661f53eb3 | ||
|
|
b8782affc8 | ||
|
|
9a9e839b9b | ||
|
|
b04ccc9a03 | ||
|
|
aa522e14ee | ||
|
|
dabd09f5a9 | ||
|
|
46ffb3c0b1 | ||
|
|
4b9b01f0a5 | ||
|
|
0261355a03 | ||
|
|
beb8547c71 | ||
|
|
4aa518a2d7 | ||
|
|
08af66d57e | ||
|
|
38eb154b39 | ||
|
|
2954e4c3d7 | ||
|
|
213803b4d4 | ||
|
|
2380f8bd93 | ||
|
|
e846ebc1a1 | ||
|
|
6dedd60350 | ||
|
|
063a487fe1 | ||
|
|
99a35fd4e1 | ||
|
|
cbaac82c2c | ||
|
|
2c9e332bce | ||
|
|
e89deed74d | ||
|
|
5cb6f5515f | ||
|
|
c5024d4a5c | ||
|
|
9d72de1fb2 | ||
|
|
62626467b4 | ||
|
|
c55a72ef48 | ||
|
|
8a353c4020 | ||
|
|
8261c40bb9 | ||
|
|
053bf7f5db | ||
|
|
e6a5e6512f | ||
|
|
bc32cd7fc8 | ||
|
|
24fde3cf34 | ||
|
|
7ceaa0916a | ||
|
|
4c958fbfb4 | ||
|
|
9795ef4348 | ||
|
|
768d8e0563 | ||
|
|
374be37dd9 | ||
|
|
9fa552eb0f | ||
|
|
5f8ad807be | ||
|
|
b6e165d661 | ||
|
|
afbb645906 | ||
|
|
2b831e73f5 | ||
|
|
6ec170290c | ||
|
|
7c8ea0899a | ||
|
|
f81070dbd5 | ||
|
|
955c2ef48f | ||
|
|
2ac4919d24 | ||
|
|
3ed89025f3 | ||
|
|
5b42bbce70 | ||
|
|
d2e0a11aab | ||
|
|
5033e5b36d | ||
|
|
6a6a9c1c5a | ||
|
|
3d6aa2e06f | ||
|
|
03970183fc | ||
|
|
47d046c93f | ||
|
|
718724deeb | ||
|
|
85c325c36c | ||
|
|
7e6d99f5ec | ||
|
|
6ce6dc961b | ||
|
|
186883611e | ||
|
|
48b3c59cb9 | ||
|
|
04b9d5bc23 | ||
|
|
91707e9020 | ||
|
|
82a0e82232 | ||
|
|
fe4264bf45 | ||
|
|
2fa795a213 | ||
|
|
e32aaf5da8 | ||
|
|
03447de338 | ||
|
|
ee5f4a4caf | ||
|
|
c04f3933ab | ||
|
|
8f328c45e5 | ||
|
|
9676f0cffc | ||
|
|
2d0ca23319 | ||
|
|
6f4c8b5b50 | ||
|
|
f8bd9cc30f | ||
|
|
d9f9b1cd0b | ||
|
|
eca283976b | ||
|
|
2176259ca6 | ||
|
|
8fe6fcb900 | ||
|
|
76d6edcc38 | ||
|
|
98d6c671f5 | ||
|
|
f652811df4 | ||
|
|
e279f4601d | ||
|
|
87a30337a1 | ||
|
|
9c2047b275 | ||
|
|
1dcb0433a3 | ||
|
|
5ff27e02b3 | ||
|
|
4beee58e57 | ||
|
|
1f9de20719 | ||
|
|
d05a8d9750 | ||
|
|
db5f206c00 | ||
|
|
9dface8347 | ||
|
|
32f4940883 | ||
|
|
a7969a9b93 | ||
|
|
ad88130df5 | ||
|
|
d1e71bc08b | ||
|
|
fa58fe247c | ||
|
|
4b71478326 | ||
|
|
0989471fdb | ||
|
|
696140bd1d | ||
|
|
380d15b7fe | ||
|
|
41261d64b2 | ||
|
|
ce7a9efb09 | ||
|
|
8a38ebe328 | ||
|
|
dcc6671b85 | ||
|
|
b53b7581e4 | ||
|
|
64a4a03c2a | ||
|
|
b878c3f518 | ||
|
|
6164163ca8 | ||
|
|
e92a53cd92 | ||
|
|
2467af98b1 | ||
|
|
6f851d8875 | ||
|
|
9b99bf89c4 | ||
|
|
7346fca083 | ||
|
|
7facbb69c6 | ||
|
|
f59267d650 | ||
|
|
71cb014195 | ||
|
|
6c0f8db9c2 | ||
|
|
49f1e2fc4c | ||
|
|
2d26e19535 | ||
|
|
5b0c6cd49a | ||
|
|
c3ee8e46cc | ||
|
|
46aac24261 | ||
|
|
e1032ce718 | ||
|
|
ce636f36f2 | ||
|
|
93f2eec6b3 | ||
|
|
46ef09d787 | ||
|
|
7487ec0ff0 | ||
|
|
a25549866f | ||
|
|
558cc6e38f | ||
|
|
feb1fa1e83 | ||
|
|
f32462343d | ||
|
|
08ef1b379a | ||
|
|
1e79831b56 | ||
|
|
7a29164f70 | ||
|
|
f2533e787e | ||
|
|
b2ccd5c1ae | ||
|
|
6f63543dd7 | ||
|
|
c966f1629b | ||
|
|
709f24adbb | ||
|
|
52fe7ea3d1 | ||
|
|
44f6a6f9c4 | ||
|
|
ac88b3dd16 | ||
|
|
27b6fa5615 | ||
|
|
68eb76dfb7 | ||
|
|
392760ee0c | ||
|
|
063b60a51f | ||
|
|
7b676192e9 | ||
|
|
138e0010eb | ||
|
|
36bad2b478 | ||
|
|
f6d6fc603e | ||
|
|
5545b46571 | ||
|
|
06b0a7acce | ||
|
|
534f30064d | ||
|
|
6c9e1b2337 | ||
|
|
62c67576e0 | ||
|
|
91d59e4cb9 | ||
|
|
8de268bb3c | ||
|
|
4fd7f6047c | ||
|
|
ff3033e190 | ||
|
|
18404076e3 | ||
|
|
59c9c40c01 | ||
|
|
666e0635da | ||
|
|
f9968a0346 | ||
|
|
39dca05d1d | ||
|
|
f51b76b670 | ||
|
|
40ee989db5 | ||
|
|
ef76dfc7a0 | ||
|
|
02ddc08353 | ||
|
|
4b24d5261a | ||
|
|
4b96a39c48 | ||
|
|
48616e71d2 | ||
|
|
70d227ac62 | ||
|
|
7f2c4f96f5 | ||
|
|
667f0f60fc | ||
|
|
7592b8cc10 | ||
|
|
f55b831859 | ||
|
|
217f7f7e5d | ||
|
|
2e5a63f365 | ||
|
|
7c614b4666 | ||
|
|
b23d908829 | ||
|
|
5379b84e63 | ||
|
|
32c913308e | ||
|
|
1e83d70b6d | ||
|
|
767dfa5b9c | ||
|
|
7ff5b38126 | ||
|
|
e209f5300d | ||
|
|
3c4b50c352 | ||
|
|
4e7c2fcf18 | ||
|
|
22534f94f5 | ||
|
|
1a6928fdbe | ||
|
|
325dbbac47 | ||
|
|
39ac6b0481 | ||
|
|
46cc4854e9 | ||
|
|
f93882512e | ||
|
|
0dee2a4f6f | ||
|
|
3cebc35669 | ||
|
|
e75a204fb9 | ||
|
|
ac06a5c16a | ||
|
|
ed758fee0c | ||
|
|
a21c61ee8b | ||
|
|
24697da20e | ||
|
|
7120c0089d | ||
|
|
88a436a8f7 | ||
|
|
2fdb5a245d | ||
|
|
8441b53538 | ||
|
|
d336df8b73 | ||
|
|
8aaf805b8a | ||
|
|
8161fd2785 | ||
|
|
2f23025dfe | ||
|
|
1867eac230 | ||
|
|
096e35d05f | ||
|
|
8998f52b97 | ||
|
|
0fd38dcc83 | ||
|
|
d89cf0649e | ||
|
|
31e9d9d4f8 | ||
|
|
ea9c6d3d9e | ||
|
|
ff63cf8068 | ||
|
|
eaac94c35a | ||
|
|
9291506af0 | ||
|
|
4716670de9 | ||
|
|
33c5b38034 | ||
|
|
5737d6c565 | ||
|
|
08a7f56c6a | ||
|
|
7916f2b4aa | ||
|
|
193d303ac7 | ||
|
|
e70609b7b8 | ||
|
|
da476ff02d | ||
|
|
77e3b5d28b | ||
|
|
bf97ca448c | ||
|
|
c5f8ff8b32 | ||
|
|
50465766d1 | ||
|
|
7d8df58a63 | ||
|
|
762c074012 | ||
|
|
51f2ee3bfb | ||
|
|
b5cd34aa21 | ||
|
|
ae5c6dcd42 | ||
|
|
97196d0c8c | ||
|
|
f6de56b88a | ||
|
|
d64ea43b76 | ||
|
|
2deaf93d24 | ||
|
|
a107ec8300 | ||
|
|
120a1f9508 | ||
|
|
bb84007a57 | ||
|
|
86234e55a6 | ||
|
|
61972077cd | ||
|
|
5a7feb8ea2 | ||
|
|
4b4c131cd0 | ||
|
|
67617c8f89 | ||
|
|
0fd23f01c6 | ||
|
|
557b0d9df7 | ||
|
|
888f4380cf | ||
|
|
3266c5e95a | ||
|
|
834decdaae | ||
|
|
18b2d83173 | ||
|
|
30c65c3c62 | ||
|
|
04fcc4cf1e | ||
|
|
09504dde1f | ||
|
|
c04885f072 | ||
|
|
48ae5cf09d | ||
|
|
45cdb6eb45 | ||
|
|
b9f3f732aa | ||
|
|
17006ddd6b | ||
|
|
b77a354df3 | ||
|
|
71d46beebf | ||
|
|
454e296eb1 | ||
|
|
f9b696be2b | ||
|
|
c923edbc71 | ||
|
|
e20c1d987f | ||
|
|
cd354eb10f | ||
|
|
e9ac27ee23 | ||
|
|
3f9dc9f5b6 | ||
|
|
ba709875ae | ||
|
|
80f8397b35 | ||
|
|
b45fa27fa1 | ||
|
|
b59480645d | ||
|
|
148cb36979 | ||
|
|
c1eb78f7ff | ||
|
|
8aa0fd6b20 | ||
|
|
a1b3a908f5 | ||
|
|
f9e70d951a | ||
|
|
41ed6be1da | ||
|
|
27de28fc3e | ||
|
|
dd2f01c229 | ||
|
|
deb5c56c77 | ||
|
|
9fd22f0e3f | ||
|
|
942372dcdf | ||
|
|
b7f901088b | ||
|
|
c02990525c | ||
|
|
0107acded0 | ||
|
|
2ac5e08d1d | ||
|
|
1837b8c214 | ||
|
|
03d2bc1774 | ||
|
|
385bddbde0 | ||
|
|
c135426267 | ||
|
|
4be0c98120 | ||
|
|
e760aebd5a | ||
|
|
1f6e7d9c29 | ||
|
|
c6d421af05 | ||
|
|
952df5e493 | ||
|
|
45acb8b058 | ||
|
|
e8997c0183 | ||
|
|
169e62f563 | ||
|
|
1b43babfb1 | ||
|
|
43e902f774 | ||
|
|
b0a800e249 | ||
|
|
73d5f232ad | ||
|
|
f7209541e4 | ||
|
|
397a32dca7 | ||
|
|
e0719d7122 | ||
|
|
3f18c0a9f2 | ||
|
|
b14be61938 | ||
|
|
440d620308 | ||
|
|
8dd9df0f3e | ||
|
|
6b9534eaf5 | ||
|
|
c91d374ad7 | ||
|
|
1cab4160bc | ||
|
|
718d2dfbbd | ||
|
|
0967e1270d | ||
|
|
a08c02f1a8 | ||
|
|
bdfd9afead | ||
|
|
1c91a590d6 | ||
|
|
65bd7968bf | ||
|
|
6ccd23b87b | ||
|
|
823409b7d0 | ||
|
|
c85d31f4a0 | ||
|
|
24af5c44da | ||
|
|
75efacf8eb | ||
|
|
825e810247 | ||
|
|
e20723cfc1 | ||
|
|
9f39a67c1d | ||
|
|
2044f3f791 | ||
|
|
30d4e8c422 | ||
|
|
92d552f6a2 | ||
|
|
5adfcbbc4f | ||
|
|
69969b3819 | ||
|
|
edfee04fcb | ||
|
|
ae0bf74db9 | ||
|
|
1bf7ce97c0 | ||
|
|
4971a009e0 | ||
|
|
e1613ab80d | ||
|
|
28c9930888 | ||
|
|
e3a35a123e | ||
|
|
412168f2e8 | ||
|
|
fc0fa0d636 | ||
|
|
caf283329b | ||
|
|
5cedd4a43e | ||
|
|
0595d32d8a | ||
|
|
e339b4e8da | ||
|
|
11c827c588 | ||
|
|
8a40b670c3 | ||
|
|
d9fa5cbfc9 | ||
|
|
1c21564292 | ||
|
|
6cc96bf156 | ||
|
|
29afd4bbc4 | ||
|
|
4e3db063ec | ||
|
|
6560744c38 | ||
|
|
572ad87881 | ||
|
|
2ab75d6cfa | ||
|
|
041a8eb5ec | ||
|
|
c1c13bdcfa | ||
|
|
403edd34dd | ||
|
|
f279e48416 | ||
|
|
bf854d8d27 | ||
|
|
f334121679 | ||
|
|
b88e2be609 | ||
|
|
08229c8bb8 | ||
|
|
c984017f71 | ||
|
|
00e7dd8a13 | ||
|
|
d11b375b16 | ||
|
|
d1afa8146f | ||
|
|
31d4ba8a93 | ||
|
|
1a7640958c | ||
|
|
2e2a5a450b | ||
|
|
574fd63ff0 | ||
|
|
1063d47526 | ||
|
|
b59a892d3e | ||
|
|
6e5d5d77df | ||
|
|
a6319d18cf | ||
|
|
5103e883fd | ||
|
|
98c4ea4b24 | ||
|
|
29b8cac7d7 | ||
|
|
cdb02d43fe | ||
|
|
50cecddc4a | ||
|
|
177f6398e5 | ||
|
|
887bd6a46f | ||
|
|
9af5153410 | ||
|
|
0e2103689e | ||
|
|
2c496d8e46 | ||
|
|
8f0ba02e44 | ||
|
|
524c56e417 | ||
|
|
773f3a266c | ||
|
|
882ada0d22 | ||
|
|
6229005f93 | ||
|
|
6c63b35ef7 | ||
|
|
fb85e50e09 | ||
|
|
5e5f908d0c | ||
|
|
c09e2143c7 | ||
|
|
74ced1e67f | ||
|
|
dd02c1609e | ||
|
|
cdf4880a79 | ||
|
|
2ec8e8547d | ||
|
|
b7c36d1d33 | ||
|
|
8913402b74 | ||
|
|
c00dfefd6f | ||
|
|
c3de7b5ade | ||
|
|
76556f8264 | ||
|
|
970d18a708 | ||
|
|
9456e7f0ff | ||
|
|
a5db24adc2 | ||
|
|
17664e2620 | ||
|
|
43a0eb0253 | ||
|
|
bcdaed2c0a | ||
|
|
78c6637db5 | ||
|
|
44214a98fd | ||
|
|
9cc6d2310c | ||
|
|
1a045954be | ||
|
|
b3fc9a1585 | ||
|
|
2a86a449ca | ||
|
|
44f032db61 | ||
|
|
5a520729ee | ||
|
|
36fbe78c60 | ||
|
|
029bb17770 | ||
|
|
7958bee6be | ||
|
|
0b9bb21ce4 | ||
|
|
cfcc5b794e | ||
|
|
925ff408a6 | ||
|
|
f40ca444f5 | ||
|
|
638a5e0382 | ||
|
|
6d777bf055 | ||
|
|
ae6d4e8bc0 | ||
|
|
f2728724d3 | ||
|
|
bc95b34cce | ||
|
|
9eb89616af | ||
|
|
f7713a6d81 | ||
|
|
1cec9b727a | ||
|
|
18a4730f5b | ||
|
|
1342aefcdd | ||
|
|
1fd4b1e702 | ||
|
|
32dff44c28 | ||
|
|
e7c2ae476a | ||
|
|
a66301f83d | ||
|
|
a5f7d56221 | ||
|
|
140080c1ec | ||
|
|
ef43af6d43 | ||
|
|
949d0532f0 | ||
|
|
96efc76d74 | ||
|
|
6ca0d63692 | ||
|
|
95fc2485e2 | ||
|
|
d6ce1e4834 | ||
|
|
2cc2b12fc7 | ||
|
|
2259f81cf7 | ||
|
|
791f12880f | ||
|
|
7aa7373a64 | ||
|
|
2f186a190f | ||
|
|
357893a873 | ||
|
|
a17881da5f | ||
|
|
4872ee83a9 | ||
|
|
5ec222a832 | ||
|
|
40438b3440 | ||
|
|
e0b80660c8 | ||
|
|
a2016301f5 | ||
|
|
7ec6729fb6 | ||
|
|
837a2cf72e | ||
|
|
0adca14536 | ||
|
|
57b0f66c6d | ||
|
|
e47e7a9571 | ||
|
|
68ca01560f | ||
|
|
64f1c91fcb | ||
|
|
7d33f94198 | ||
|
|
369cda3752 | ||
|
|
846078d06f | ||
|
|
b18500d56e | ||
|
|
7d92c50490 | ||
|
|
d69a596193 | ||
|
|
8aa4ae638e | ||
|
|
3069f34841 | ||
|
|
b3788a0e4f | ||
|
|
582bc029ab | ||
|
|
e9e3099433 | ||
|
|
4fc561cc7b | ||
|
|
ad3e3a0b99 | ||
|
|
bfb8c849cb | ||
|
|
09dd25b5d1 | ||
|
|
c48efb1dbe | ||
|
|
5408acb6b7 | ||
|
|
15481160f9 | ||
|
|
00ccff03a5 | ||
|
|
21594921b1 | ||
|
|
42c91eebc9 | ||
|
|
88273e08b4 | ||
|
|
08f7fb45ef | ||
|
|
75ebda3ce6 | ||
|
|
53ff15fcbf | ||
|
|
72adb70ee2 | ||
|
|
960d41fcfe | ||
|
|
0c4e35b070 | ||
|
|
c53f1cb813 | ||
|
|
f6696cc15e | ||
|
|
fef9a41fe4 | ||
|
|
e279a0a076 | ||
|
|
88c8aaed96 | ||
|
|
34beaefe1c | ||
|
|
10b828f193 | ||
|
|
43e6260ed0 | ||
|
|
62cbbd7226 | ||
|
|
f7cbe7fcee | ||
|
|
d8e4ff9079 | ||
|
|
510ff27eda | ||
|
|
5abf055100 | ||
|
|
4bb5721f6b | ||
|
|
c41ab70d3a | ||
|
|
a05e403bf2 | ||
|
|
2f57e0f71d | ||
|
|
95a2eb9767 | ||
|
|
55175daed7 | ||
|
|
ae16a51e95 | ||
|
|
4398d67546 | ||
|
|
c93738687c | ||
|
|
799492e606 | ||
|
|
f33ff071bb | ||
|
|
99e854743c | ||
|
|
6f79062d91 | ||
|
|
2f682c3995 | ||
|
|
067370e68f | ||
|
|
2aa439a6a4 | ||
|
|
b477182dc3 | ||
|
|
a8964ca89e | ||
|
|
4f0e92d07c | ||
|
|
577f4e8a5f | ||
|
|
0586d9fe56 | ||
|
|
1f0d9bf05e | ||
|
|
8bcae2a527 | ||
|
|
35ca9aae91 | ||
|
|
6cdd2bf8d7 | ||
|
|
ce7d175adb | ||
|
|
1904fd095f | ||
|
|
897d0ac5cc | ||
|
|
e262d0182f | ||
|
|
aa5b748c10 | ||
|
|
c6728df4a3 | ||
|
|
3c182c5bc8 | ||
|
|
1b5677847b | ||
|
|
1be59a9dbe | ||
|
|
55c2178ad4 | ||
|
|
3e3d392e1c | ||
|
|
593de57fa2 | ||
|
|
04b0e43ea6 | ||
|
|
04eee290c8 | ||
|
|
756a7a4e4b | ||
|
|
121b4ac220 | ||
|
|
cdbd5db3af | ||
|
|
b2240f6ad4 | ||
|
|
33814a55f8 | ||
|
|
a57c5a417b | ||
|
|
ff1a28de17 | ||
|
|
772f57f99b | ||
|
|
dacee32b8b | ||
|
|
fa1a3eb06d | ||
|
|
bd4817ca54 | ||
|
|
d3a160e217 | ||
|
|
c5837f2791 | ||
|
|
490bd43f18 | ||
|
|
005eea249c | ||
|
|
9747de8ec6 | ||
|
|
849a9799d0 | ||
|
|
e32ae4fe33 | ||
|
|
4595389c4c | ||
|
|
e8ccc7cc49 | ||
|
|
673d21047a | ||
|
|
6186261589 | ||
|
|
45310e219c | ||
|
|
250f6b2c88 | ||
|
|
fdefc2bbda | ||
|
|
2079df8527 | ||
|
|
b53659452c | ||
|
|
46f1d6653e | ||
|
|
c1938a60f7 | ||
|
|
d65110f352 | ||
|
|
9fa3bbcb5a | ||
|
|
19e51ecbe6 | ||
|
|
99d62f2922 | ||
|
|
284743cafe | ||
|
|
08d7307b2a | ||
|
|
ef6a64abe6 | ||
|
|
18bfa52ef7 | ||
|
|
d62be2652c | ||
|
|
31f3433635 | ||
|
|
639eaceee7 | ||
|
|
ea53ff80af | ||
|
|
feeca1bcbc | ||
|
|
12e7278c08 | ||
|
|
45b5c44eb9 | ||
|
|
e3456c1028 | ||
|
|
327fb38573 | ||
|
|
1d25d9e15f | ||
|
|
cc7cee3f48 | ||
|
|
d7062710cd | ||
|
|
3e21f52796 | ||
|
|
9bfba734d8 | ||
|
|
0511d9a9d2 | ||
|
|
aaebf2f47e | ||
|
|
23f8d77b38 | ||
|
|
498b4dbba4 | ||
|
|
ecc42e79ae | ||
|
|
0bf8ed523d | ||
|
|
87d22ee0fe | ||
|
|
52e25f63d4 | ||
|
|
f3fb67972b | ||
|
|
6400756364 | ||
|
|
d71d04bf6f | ||
|
|
af90259e09 | ||
|
|
7c9762f698 | ||
|
|
b2e67fdb7c | ||
|
|
d59f0314bd | ||
|
|
131baefac3 | ||
|
|
a450078b67 | ||
|
|
f6b041bf6c | ||
|
|
4f340d181a | ||
|
|
74a11701f3 | ||
|
|
b58e38e936 | ||
|
|
8713cb48a8 | ||
|
|
277c5e57ed | ||
|
|
b3d62d5af5 | ||
|
|
9c0f0c8d81 | ||
|
|
18a0a2a7ac | ||
|
|
8b99d9e33c | ||
|
|
01e7e153e3 | ||
|
|
0ad4ca24d2 | ||
|
|
724a155552 | ||
|
|
e1b0715dd6 | ||
|
|
a5c6598966 | ||
|
|
d38b74a316 | ||
|
|
54cab4b47b | ||
|
|
c093666bc5 | ||
|
|
04972f6761 | ||
|
|
67f8234622 | ||
|
|
201d6dbd9c | ||
|
|
1865ef6fd4 | ||
|
|
fbcac5aa83 | ||
|
|
2b72ab8f8f | ||
|
|
0ea97b9408 | ||
|
|
28683ac7c0 | ||
|
|
c72e3e210f | ||
|
|
a8c856d43c | ||
|
|
1953cfc954 | ||
|
|
8e7bac950e | ||
|
|
03cdacfb6a | ||
|
|
30f3c3dfad | ||
|
|
dee1b0d5bb | ||
|
|
6f2b0fe463 | ||
|
|
0c69176498 | ||
|
|
4e7a0385b5 | ||
|
|
4adbd94b10 | ||
|
|
4a2905b645 | ||
|
|
0638c6b530 | ||
|
|
7dd35ce013 | ||
|
|
c8629c3178 | ||
|
|
77ccf51cb3 | ||
|
|
01197f0c77 | ||
|
|
69c86ff4fd | ||
|
|
9a42ffad81 | ||
|
|
0d8633bf8c | ||
|
|
d79e80a3d0 | ||
|
|
d890ebdd25 | ||
|
|
5ee9b3ce72 | ||
|
|
031b539a09 | ||
|
|
47c3c706e8 | ||
|
|
0d830a616c | ||
|
|
e219bf8338 | ||
|
|
6c0fba2480 | ||
|
|
f4cc159f53 | ||
|
|
04c002abc2 | ||
|
|
78fd17907e | ||
|
|
47edc83080 | ||
|
|
33e34f5bf4 | ||
|
|
3832ecadae | ||
|
|
285ed128ab | ||
|
|
048144074b | ||
|
|
856ae782c7 | ||
|
|
12e3f97541 | ||
|
|
30f6fe0710 | ||
|
|
0aa8f1df3c | ||
|
|
d39147a8a1 | ||
|
|
7991f7e936 | ||
|
|
10011efcd7 | ||
|
|
0058815c8f | ||
|
|
02048984b7 | ||
|
|
544601e9f4 | ||
|
|
2634f06c20 | ||
|
|
7549426a16 | ||
|
|
6dcb9a3434 | ||
|
|
e5a31c00ec | ||
|
|
00295242fd | ||
|
|
21b6ed7c29 | ||
|
|
01894cbf10 | ||
|
|
28cad2b9d9 | ||
|
|
71d7b7dbe7 | ||
|
|
4563723db1 | ||
|
|
0bce6a1899 | ||
|
|
e71d6dbd9c | ||
|
|
132ecd19f3 | ||
|
|
a404143f4c | ||
|
|
44467ca45e | ||
|
|
f70ea0747d | ||
|
|
c619abf18a | ||
|
|
6da1323437 | ||
|
|
1dd29785cf | ||
|
|
5681987ee4 | ||
|
|
6eeb18fc68 | ||
|
|
01c90575b4 | ||
|
|
32e9cb0275 | ||
|
|
017bade93c | ||
|
|
c9c79e7cae | ||
|
|
777d41dd07 | ||
|
|
6238c30913 | ||
|
|
db164ab514 | ||
|
|
c72ef17731 | ||
|
|
8dbee7867f | ||
|
|
f403108f5f | ||
|
|
223a97f92a | ||
|
|
bb44a8ae1f | ||
|
|
b5a5062176 | ||
|
|
50faa32ce3 | ||
|
|
b6caed527c | ||
|
|
d5ef77353b | ||
|
|
336beba81b | ||
|
|
5d23a7905c | ||
|
|
143dfcc904 | ||
|
|
e076cd42f0 | ||
|
|
5bed38974e | ||
|
|
35bc4b82ff | ||
|
|
4e5d870f72 | ||
|
|
83def94db5 | ||
|
|
9d74c1ef2a | ||
|
|
6023d4bdb5 | ||
|
|
5e38f566f2 | ||
|
|
b57341a78b | ||
|
|
910c32c0e9 | ||
|
|
e49456d8d8 | ||
|
|
c46becc9b3 | ||
|
|
b6e637106f | ||
|
|
787cffe3d0 | ||
|
|
9d914e6809 | ||
|
|
4e183c66e9 | ||
|
|
b1630fcbe8 | ||
|
|
cd44f730cc | ||
|
|
ce5a39559e | ||
|
|
ccffaef603 | ||
|
|
ae41f3a3ee | ||
|
|
c7e576d6bf | ||
|
|
f069b2812e | ||
|
|
f20ff6213e | ||
|
|
24ff74bdcb | ||
|
|
230e79916f | ||
|
|
9f14b4db35 | ||
|
|
ec916398e7 | ||
|
|
6befad112e | ||
|
|
55ce23b8db | ||
|
|
1292ec1ecf | ||
|
|
65a324062f | ||
|
|
c9db617e0b | ||
|
|
b43137d0cc | ||
|
|
eeca642778 | ||
|
|
5cef6ca36a | ||
|
|
be2b518f7b | ||
|
|
1b0d29afbc | ||
|
|
55cf480c0b | ||
|
|
84db6912f0 | ||
|
|
7495cc28a0 | ||
|
|
87744f786b | ||
|
|
5bcfa4c859 | ||
|
|
8ef731bcd1 | ||
|
|
8d02f3c68a | ||
|
|
b1f8b49e8b | ||
|
|
75733e4237 | ||
|
|
6e318e2cd1 | ||
|
|
01e6b84b14 | ||
|
|
69705d22be | ||
|
|
b16d1dcff5 | ||
|
|
10c5b5d5ba | ||
|
|
d9c5c170f6 | ||
|
|
32c7138d86 | ||
|
|
d29244d872 | ||
|
|
0fca6eda1e | ||
|
|
1ddf606332 | ||
|
|
bc8084da74 | ||
|
|
5eed400862 | ||
|
|
a37a0959ac | ||
|
|
53845c52e5 | ||
|
|
d429f0b14f | ||
|
|
02339187ad | ||
|
|
827f778525 | ||
|
|
d3fc85eea9 | ||
|
|
9a62963129 | ||
|
|
a0b2543ba1 | ||
|
|
387acaac69 | ||
|
|
952b775dbe | ||
|
|
eadb76b3f8 | ||
|
|
b3f7313ae4 | ||
|
|
0c97d48027 | ||
|
|
c4a678de9e | ||
|
|
2c834f4d29 | ||
|
|
b93d290c9f | ||
|
|
32266bb21a | ||
|
|
cab39103b7 | ||
|
|
5c56a80ac9 | ||
|
|
d0bac31721 | ||
|
|
9258e54cfa | ||
|
|
ccb68495e0 | ||
|
|
db4236fe0b | ||
|
|
a4e43427f8 | ||
|
|
829190abdd | ||
|
|
99688cd051 | ||
|
|
1ba0a92702 | ||
|
|
065d5a8d17 | ||
|
|
3b53c0ac19 | ||
|
|
ed56fe4e82 | ||
|
|
1fbbe807ed | ||
|
|
c3dccfa05b | ||
|
|
7703d9293f | ||
|
|
bcf560e4b8 | ||
|
|
9d944b501a | ||
|
|
cf013a5384 | ||
|
|
2f367491c4 | ||
|
|
e7d93b62ec | ||
|
|
a5b309c0c9 | ||
|
|
df46b96ab0 | ||
|
|
bda1e332ce | ||
|
|
53b2ad5fd0 | ||
|
|
b44d9c657d | ||
|
|
92ef7527d1 | ||
|
|
c37d6b4ca8 |
@@ -1,10 +0,0 @@
|
|||||||
;; -*- emacs-lisp -*-
|
|
||||||
;;
|
|
||||||
;; This file is processed by the dirvars emacs package. Each variable
|
|
||||||
;; setting below is performed when this dirvars file is loaded.
|
|
||||||
;;
|
|
||||||
indent-tabs-mode: nil
|
|
||||||
tab-width: 8
|
|
||||||
c-basic-offset: 3
|
|
||||||
kde-emacs-after-parent-string: ""
|
|
||||||
evaluate: (c-set-offset 'inline-open '0)
|
|
||||||
12
.gitignore
vendored
12
.gitignore
vendored
@@ -1,15 +1,8 @@
|
|||||||
*.a
|
*.a
|
||||||
*.dll
|
|
||||||
*.exe
|
|
||||||
*.ilk
|
|
||||||
*.o
|
*.o
|
||||||
*.obj
|
|
||||||
*.pc
|
|
||||||
*.pdb
|
|
||||||
*.pyc
|
|
||||||
*.pyo
|
|
||||||
*.so
|
*.so
|
||||||
*.sw[a-z]
|
*.sw[a-z]
|
||||||
|
*.pc
|
||||||
*~
|
*~
|
||||||
depend
|
depend
|
||||||
depend.bak
|
depend.bak
|
||||||
@@ -21,6 +14,3 @@ aclocal.m4
|
|||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
cscope*
|
cscope*
|
||||||
.scon*
|
|
||||||
config.py
|
|
||||||
build
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
include $(call all-subdir-makefiles)
|
|
||||||
130
Makefile
130
Makefile
@@ -12,8 +12,6 @@ default: $(TOP)/configs/current
|
|||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
all: default
|
|
||||||
|
|
||||||
|
|
||||||
doxygen:
|
doxygen:
|
||||||
cd doxygen && $(MAKE)
|
cd doxygen && $(MAKE)
|
||||||
@@ -37,8 +35,6 @@ realclean: clean
|
|||||||
-name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
|
-name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
|
||||||
|
|
||||||
|
|
||||||
distclean: realclean
|
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@for dir in $(SUBDIRS) ; do \
|
@for dir in $(SUBDIRS) ; do \
|
||||||
@@ -48,7 +44,11 @@ install:
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
.PHONY: default doxygen clean realclean distclean install linux-directfb-install
|
# DirectFBGL module installation
|
||||||
|
linux-directfb-install:
|
||||||
|
cd src/mesa/drivers/directfb && $(MAKE) install
|
||||||
|
|
||||||
|
.PHONY: default doxygen clean realclean install linux-directfb-install
|
||||||
|
|
||||||
# If there's no current configuration file
|
# If there's no current configuration file
|
||||||
$(TOP)/configs/current:
|
$(TOP)/configs/current:
|
||||||
@@ -105,12 +105,8 @@ irix6-n32-static \
|
|||||||
irix6-o32 \
|
irix6-o32 \
|
||||||
irix6-o32-static \
|
irix6-o32-static \
|
||||||
linux \
|
linux \
|
||||||
mine \
|
|
||||||
mine-dri \
|
|
||||||
linux-alpha \
|
linux-alpha \
|
||||||
linux-alpha-static \
|
linux-alpha-static \
|
||||||
linux-cell \
|
|
||||||
linux-cell-debug \
|
|
||||||
linux-debug \
|
linux-debug \
|
||||||
linux-directfb \
|
linux-directfb \
|
||||||
linux-dri \
|
linux-dri \
|
||||||
@@ -119,7 +115,6 @@ linux-dri-x86 \
|
|||||||
linux-dri-x86-64 \
|
linux-dri-x86-64 \
|
||||||
linux-dri-ppc \
|
linux-dri-ppc \
|
||||||
linux-dri-xcb \
|
linux-dri-xcb \
|
||||||
linux-egl \
|
|
||||||
linux-indirect \
|
linux-indirect \
|
||||||
linux-fbdev \
|
linux-fbdev \
|
||||||
linux-glide \
|
linux-glide \
|
||||||
@@ -127,15 +122,12 @@ linux-ia64-icc \
|
|||||||
linux-ia64-icc-static \
|
linux-ia64-icc-static \
|
||||||
linux-icc \
|
linux-icc \
|
||||||
linux-icc-static \
|
linux-icc-static \
|
||||||
linux-llvm \
|
|
||||||
linux-osmesa \
|
linux-osmesa \
|
||||||
linux-osmesa-static \
|
|
||||||
linux-osmesa16 \
|
linux-osmesa16 \
|
||||||
linux-osmesa16-static \
|
linux-osmesa16-static \
|
||||||
linux-osmesa32 \
|
linux-osmesa32 \
|
||||||
linux-ppc \
|
linux-ppc \
|
||||||
linux-ppc-static \
|
linux-ppc-static \
|
||||||
linux-profile \
|
|
||||||
linux-solo \
|
linux-solo \
|
||||||
linux-solo-x86 \
|
linux-solo-x86 \
|
||||||
linux-solo-ia64 \
|
linux-solo-ia64 \
|
||||||
@@ -149,10 +141,8 @@ linux-x86-debug \
|
|||||||
linux-x86-32 \
|
linux-x86-32 \
|
||||||
linux-x86-64 \
|
linux-x86-64 \
|
||||||
linux-x86-64-debug \
|
linux-x86-64-debug \
|
||||||
linux-x86-64-profile \
|
|
||||||
linux-x86-64-static \
|
linux-x86-64-static \
|
||||||
linux-x86-glide \
|
linux-x86-glide \
|
||||||
linux-x86-profile \
|
|
||||||
linux-x86-static \
|
linux-x86-static \
|
||||||
netbsd \
|
netbsd \
|
||||||
openbsd \
|
openbsd \
|
||||||
@@ -184,11 +174,10 @@ ultrix-gcc:
|
|||||||
|
|
||||||
# Rules for making release tarballs
|
# Rules for making release tarballs
|
||||||
|
|
||||||
VERSION=7.7-devel
|
DIRECTORY = Mesa-7.3-rc1
|
||||||
DIRECTORY = Mesa-$(VERSION)
|
LIB_NAME = MesaLib-7.3-rc1
|
||||||
LIB_NAME = MesaLib-$(VERSION)
|
DEMO_NAME = MesaDemos-7.3-rc1
|
||||||
DEMO_NAME = MesaDemos-$(VERSION)
|
GLUT_NAME = MesaGLUT-7.3-rc1
|
||||||
GLUT_NAME = MesaGLUT-$(VERSION)
|
|
||||||
|
|
||||||
MAIN_FILES = \
|
MAIN_FILES = \
|
||||||
$(DIRECTORY)/Makefile* \
|
$(DIRECTORY)/Makefile* \
|
||||||
@@ -196,6 +185,8 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/configure.ac \
|
$(DIRECTORY)/configure.ac \
|
||||||
$(DIRECTORY)/acinclude.m4 \
|
$(DIRECTORY)/acinclude.m4 \
|
||||||
$(DIRECTORY)/aclocal.m4 \
|
$(DIRECTORY)/aclocal.m4 \
|
||||||
|
$(DIRECTORY)/descrip.mms \
|
||||||
|
$(DIRECTORY)/mms-config. \
|
||||||
$(DIRECTORY)/bin/config.guess \
|
$(DIRECTORY)/bin/config.guess \
|
||||||
$(DIRECTORY)/bin/config.sub \
|
$(DIRECTORY)/bin/config.sub \
|
||||||
$(DIRECTORY)/bin/install-sh \
|
$(DIRECTORY)/bin/install-sh \
|
||||||
@@ -225,24 +216,24 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/include/GL/osmesa.h \
|
$(DIRECTORY)/include/GL/osmesa.h \
|
||||||
$(DIRECTORY)/include/GL/svgamesa.h \
|
$(DIRECTORY)/include/GL/svgamesa.h \
|
||||||
$(DIRECTORY)/include/GL/vms_x_fix.h \
|
$(DIRECTORY)/include/GL/vms_x_fix.h \
|
||||||
$(DIRECTORY)/include/GL/wglext.h \
|
|
||||||
$(DIRECTORY)/include/GL/wmesa.h \
|
$(DIRECTORY)/include/GL/wmesa.h \
|
||||||
$(DIRECTORY)/src/Makefile \
|
$(DIRECTORY)/src/Makefile \
|
||||||
|
$(DIRECTORY)/src/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/Makefile* \
|
$(DIRECTORY)/src/mesa/Makefile* \
|
||||||
$(DIRECTORY)/src/mesa/sources.mak \
|
$(DIRECTORY)/src/mesa/sources \
|
||||||
$(DIRECTORY)/src/mesa/descrip.mms \
|
$(DIRECTORY)/src/mesa/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/gl.pc.in \
|
$(DIRECTORY)/src/mesa/gl.pc.in \
|
||||||
$(DIRECTORY)/src/mesa/osmesa.pc.in \
|
|
||||||
$(DIRECTORY)/src/mesa/depend \
|
$(DIRECTORY)/src/mesa/depend \
|
||||||
$(DIRECTORY)/src/mesa/main/*.[chS] \
|
$(DIRECTORY)/src/mesa/main/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/main/descrip.mms \
|
$(DIRECTORY)/src/mesa/main/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/glapi/*.[chS] \
|
$(DIRECTORY)/src/mesa/glapi/*.[chS] \
|
||||||
|
$(DIRECTORY)/src/mesa/glapi/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/math/*.[ch] \
|
$(DIRECTORY)/src/mesa/math/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/math/descrip.mms \
|
$(DIRECTORY)/src/mesa/math/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/shader/*.[chly] \
|
$(DIRECTORY)/src/mesa/shader/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/shader/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/shader/descrip.mms \
|
$(DIRECTORY)/src/mesa/shader/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
|
$(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
|
||||||
|
$(DIRECTORY)/src/mesa/shader/grammar/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
|
$(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
|
$(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
|
$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
|
||||||
@@ -303,52 +294,17 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/progs/util/README \
|
$(DIRECTORY)/progs/util/README \
|
||||||
$(DIRECTORY)/progs/util/*.[ch] \
|
$(DIRECTORY)/progs/util/*.[ch] \
|
||||||
$(DIRECTORY)/progs/util/sampleMakefile \
|
$(DIRECTORY)/progs/util/sampleMakefile \
|
||||||
$(DIRECTORY)/windows/VC8/
|
$(DIRECTORY)/vms/analyze_map.com \
|
||||||
|
$(DIRECTORY)/vms/xlib.opt \
|
||||||
ES_FILES = \
|
$(DIRECTORY)/vms/xlib_share.opt \
|
||||||
$(DIRECTORY)/include/GLES/*.h \
|
$(DIRECTORY)/windows/VC8/mesa/mesa.sln \
|
||||||
$(DIRECTORY)/include/GLES2/*.h \
|
$(DIRECTORY)/windows/VC8/mesa/gdi/gdi.vcproj \
|
||||||
$(DIRECTORY)/src/mesa/glapi/*.xml \
|
$(DIRECTORY)/windows/VC8/mesa/glu/glu.vcproj \
|
||||||
$(DIRECTORY)/src/mesa/glapi/*.py \
|
$(DIRECTORY)/windows/VC8/mesa/mesa/mesa.vcproj \
|
||||||
$(DIRECTORY)/src/mesa/glapi/*.dtd \
|
$(DIRECTORY)/windows/VC8/mesa/osmesa/osmesa.vcproj \
|
||||||
$(DIRECTORY)/src/mesa/es/glapi/Makefile \
|
$(DIRECTORY)/windows/VC8/progs/progs.sln \
|
||||||
$(DIRECTORY)/src/mesa/es/glapi/*.xml \
|
$(DIRECTORY)/windows/VC8/progs/demos/gears.vcproj \
|
||||||
$(DIRECTORY)/src/mesa/es/glapi/*.py \
|
$(DIRECTORY)/windows/VC8/progs/glut/glut.vcproj
|
||||||
$(DIRECTORY)/src/mesa/es/state_tracker/*.[ch] \
|
|
||||||
$(DIRECTORY)/src/mesa/es/main/*.[ch] \
|
|
||||||
$(DIRECTORY)/src/mesa/es/main/*.py \
|
|
||||||
$(DIRECTORY)/src/mesa/es/main/*.txt \
|
|
||||||
$(DIRECTORY)/src/mesa/es/main/es*_special \
|
|
||||||
$(DIRECTORY)/src/mesa/es/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/es/sources.mak \
|
|
||||||
|
|
||||||
EGL_FILES = \
|
|
||||||
$(DIRECTORY)/include/EGL/*.h \
|
|
||||||
$(DIRECTORY)/src/egl/Makefile \
|
|
||||||
$(DIRECTORY)/src/egl/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/egl/*/*.[ch] \
|
|
||||||
$(DIRECTORY)/src/egl/*/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/egl/*/*/*.[ch] \
|
|
||||||
|
|
||||||
GALLIUM_FILES = \
|
|
||||||
$(DIRECTORY)/src/mesa/state_tracker/*[ch] \
|
|
||||||
$(DIRECTORY)/src/gallium/Makefile \
|
|
||||||
$(DIRECTORY)/src/gallium/Makefile.template \
|
|
||||||
$(DIRECTORY)/src/gallium/SConscript \
|
|
||||||
$(DIRECTORY)/src/gallium/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/gallium/*/SConscript \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/Makefile.template \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/SConscript \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*.[ch] \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*.py \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*.csv \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*/SConscript \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*/*.[ch] \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*/*.py \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/gallium/*/*/*/*/*.[ch] \
|
|
||||||
|
|
||||||
|
|
||||||
DRI_FILES = \
|
DRI_FILES = \
|
||||||
@@ -364,20 +320,21 @@ DRI_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
|
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
|
$(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/*/*.[chS] \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
|
$(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/*/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
|
$(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
|
$(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
|
||||||
|
|
||||||
SGI_GLU_FILES = \
|
SGI_GLU_FILES = \
|
||||||
$(DIRECTORY)/src/glu/Makefile \
|
$(DIRECTORY)/src/glu/Makefile \
|
||||||
|
$(DIRECTORY)/src/glu/descrip.mms \
|
||||||
$(DIRECTORY)/src/glu/glu.pc.in \
|
$(DIRECTORY)/src/glu/glu.pc.in \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile \
|
$(DIRECTORY)/src/glu/sgi/Makefile \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.mgw \
|
$(DIRECTORY)/src/glu/sgi/Makefile.mgw \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.win \
|
$(DIRECTORY)/src/glu/sgi/Makefile.win \
|
||||||
|
$(DIRECTORY)/src/glu/sgi/Makefile.DJ \
|
||||||
$(DIRECTORY)/src/glu/sgi/glu.def \
|
$(DIRECTORY)/src/glu/sgi/glu.def \
|
||||||
$(DIRECTORY)/src/glu/sgi/dummy.cc \
|
$(DIRECTORY)/src/glu/sgi/dummy.cc \
|
||||||
|
$(DIRECTORY)/src/glu/sgi/descrip.mms \
|
||||||
$(DIRECTORY)/src/glu/sgi/glu.exports \
|
$(DIRECTORY)/src/glu/sgi/glu.exports \
|
||||||
$(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
|
$(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
|
||||||
$(DIRECTORY)/src/glu/sgi/mesaglu.opt \
|
$(DIRECTORY)/src/glu/sgi/mesaglu.opt \
|
||||||
@@ -409,17 +366,7 @@ GLW_FILES = \
|
|||||||
$(DIRECTORY)/src/glw/glw.pc.in \
|
$(DIRECTORY)/src/glw/glw.pc.in \
|
||||||
$(DIRECTORY)/src/glw/depend
|
$(DIRECTORY)/src/glw/depend
|
||||||
|
|
||||||
GLEW_FILES = \
|
|
||||||
$(DIRECTORY)/include/GL/glew.h \
|
|
||||||
$(DIRECTORY)/include/GL/glxew.h \
|
|
||||||
$(DIRECTORY)/include/GL/wglew.h \
|
|
||||||
$(DIRECTORY)/src/glew/*.c \
|
|
||||||
$(DIRECTORY)/src/glew/Makefile \
|
|
||||||
$(DIRECTORY)/src/glew/SConscript \
|
|
||||||
$(DIRECTORY)/src/glew/LICENSE.txt
|
|
||||||
|
|
||||||
DEMO_FILES = \
|
DEMO_FILES = \
|
||||||
$(GLEW_FILES) \
|
|
||||||
$(DIRECTORY)/progs/beos/*.cpp \
|
$(DIRECTORY)/progs/beos/*.cpp \
|
||||||
$(DIRECTORY)/progs/beos/Makefile \
|
$(DIRECTORY)/progs/beos/Makefile \
|
||||||
$(DIRECTORY)/progs/images/*.rgb \
|
$(DIRECTORY)/progs/images/*.rgb \
|
||||||
@@ -435,6 +382,7 @@ DEMO_FILES = \
|
|||||||
$(DIRECTORY)/progs/osdemos/Makefile \
|
$(DIRECTORY)/progs/osdemos/Makefile \
|
||||||
$(DIRECTORY)/progs/osdemos/*.c \
|
$(DIRECTORY)/progs/osdemos/*.c \
|
||||||
$(DIRECTORY)/progs/xdemos/Makefile* \
|
$(DIRECTORY)/progs/xdemos/Makefile* \
|
||||||
|
$(DIRECTORY)/progs/xdemos/descrip.mms \
|
||||||
$(DIRECTORY)/progs/xdemos/*.[chf] \
|
$(DIRECTORY)/progs/xdemos/*.[chf] \
|
||||||
$(DIRECTORY)/progs/redbook/Makefile* \
|
$(DIRECTORY)/progs/redbook/Makefile* \
|
||||||
$(DIRECTORY)/progs/redbook/README \
|
$(DIRECTORY)/progs/redbook/README \
|
||||||
@@ -446,11 +394,13 @@ DEMO_FILES = \
|
|||||||
$(DIRECTORY)/progs/glsl/*.c \
|
$(DIRECTORY)/progs/glsl/*.c \
|
||||||
$(DIRECTORY)/progs/glsl/*.frag \
|
$(DIRECTORY)/progs/glsl/*.frag \
|
||||||
$(DIRECTORY)/progs/glsl/*.vert \
|
$(DIRECTORY)/progs/glsl/*.vert \
|
||||||
$(DIRECTORY)/progs/glsl/*.shtest \
|
|
||||||
$(DIRECTORY)/progs/windml/Makefile.ugl \
|
$(DIRECTORY)/progs/windml/Makefile.ugl \
|
||||||
$(DIRECTORY)/progs/windml/*.c \
|
$(DIRECTORY)/progs/windml/*.c \
|
||||||
$(DIRECTORY)/progs/windml/*.bmp \
|
$(DIRECTORY)/progs/windml/*.bmp \
|
||||||
$(DIRECTORY)/progs/ggi/*.c \
|
$(DIRECTORY)/progs/ggi/*.c \
|
||||||
|
$(DIRECTORY)/windows/VC6/progs/demos/*.dsp \
|
||||||
|
$(DIRECTORY)/windows/VC6/progs/progs.dsw \
|
||||||
|
$(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \
|
||||||
$(DIRECTORY)/windows/VC7/progs/progs.sln
|
$(DIRECTORY)/windows/VC7/progs/progs.sln
|
||||||
|
|
||||||
GLUT_FILES = \
|
GLUT_FILES = \
|
||||||
@@ -460,11 +410,14 @@ GLUT_FILES = \
|
|||||||
$(DIRECTORY)/src/glut/glx/depend \
|
$(DIRECTORY)/src/glut/glx/depend \
|
||||||
$(DIRECTORY)/src/glut/glx/glut.pc.in \
|
$(DIRECTORY)/src/glut/glx/glut.pc.in \
|
||||||
$(DIRECTORY)/src/glut/glx/*def \
|
$(DIRECTORY)/src/glut/glx/*def \
|
||||||
|
$(DIRECTORY)/src/glut/glx/descrip.mms \
|
||||||
|
$(DIRECTORY)/src/glut/glx/mms_depend \
|
||||||
$(DIRECTORY)/src/glut/glx/*.[ch] \
|
$(DIRECTORY)/src/glut/glx/*.[ch] \
|
||||||
$(DIRECTORY)/src/glut/beos/*.[ch] \
|
$(DIRECTORY)/src/glut/beos/*.[ch] \
|
||||||
$(DIRECTORY)/src/glut/beos/*.cpp \
|
$(DIRECTORY)/src/glut/beos/*.cpp \
|
||||||
$(DIRECTORY)/src/glut/beos/Makefile \
|
$(DIRECTORY)/src/glut/beos/Makefile \
|
||||||
$(DIRECTORY)/src/glut/dos/*.[ch] \
|
$(DIRECTORY)/src/glut/dos/*.[ch] \
|
||||||
|
$(DIRECTORY)/src/glut/dos/Makefile.DJ \
|
||||||
$(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
|
$(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
|
||||||
$(DIRECTORY)/src/glut/ggi/*.[ch] \
|
$(DIRECTORY)/src/glut/ggi/*.[ch] \
|
||||||
$(DIRECTORY)/src/glut/ggi/Makefile \
|
$(DIRECTORY)/src/glut/ggi/Makefile \
|
||||||
@@ -486,14 +439,7 @@ DEPEND_FILES = \
|
|||||||
$(TOP)/src/glu/sgi/depend
|
$(TOP)/src/glu/sgi/depend
|
||||||
|
|
||||||
|
|
||||||
LIB_FILES = \
|
LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
|
||||||
$(MAIN_FILES) \
|
|
||||||
$(ES_FILES) \
|
|
||||||
$(EGL_FILES) \
|
|
||||||
$(GALLIUM_FILES) \
|
|
||||||
$(DRI_FILES) \
|
|
||||||
$(SGI_GLU_FILES) \
|
|
||||||
$(GLW_FILES)
|
|
||||||
|
|
||||||
|
|
||||||
# Everything for new a Mesa release:
|
# Everything for new a Mesa release:
|
||||||
|
|||||||
88
Makefile.DJ
Normal file
88
Makefile.DJ
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
# Mesa 3-D graphics library
|
||||||
|
# Version: 4.0
|
||||||
|
#
|
||||||
|
# Copyright (C) 1999 Brian Paul All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
|
# to deal in the Software without restriction, including without limitation
|
||||||
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included
|
||||||
|
# in all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
# DOS/DJGPP makefile for Mesa
|
||||||
|
#
|
||||||
|
# Author: Daniel Borca
|
||||||
|
# Email : dborca@users.sourceforge.net
|
||||||
|
# Web : http://www.geocities.com/dborca
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Available options:
|
||||||
|
#
|
||||||
|
# Environment variables:
|
||||||
|
# GLIDE path to Glide3 SDK; used with FX.
|
||||||
|
# default = $(TOP)/glide3
|
||||||
|
# FX=1 build for 3dfx Glide3. Note that this disables
|
||||||
|
# compilation of most DMesa code and requires fxMesa.
|
||||||
|
# As a consequence, you'll need the DJGPP Glide3
|
||||||
|
# library to build any application.
|
||||||
|
# default = no
|
||||||
|
# X86=1 optimize for x86 (if possible, use MMX, SSE, 3DNow).
|
||||||
|
# default = no
|
||||||
|
#
|
||||||
|
# Targets:
|
||||||
|
# all: build everything
|
||||||
|
# libgl: build GL
|
||||||
|
# libglu: build GLU
|
||||||
|
# libglut: build GLUT
|
||||||
|
# clean: remove object files
|
||||||
|
# realclean: remove all generated files
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY : all libgl libglu libglut clean realclean
|
||||||
|
|
||||||
|
CFLAGS = -Wall -W -pedantic
|
||||||
|
CFLAGS += -O2 -ffast-math
|
||||||
|
|
||||||
|
export CFLAGS
|
||||||
|
|
||||||
|
ifeq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),)
|
||||||
|
UNLINK = del $(subst /,\,$(1))
|
||||||
|
else
|
||||||
|
UNLINK = $(RM) $(1)
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: libgl libglu libglut
|
||||||
|
|
||||||
|
libgl: lib
|
||||||
|
$(MAKE) -f Makefile.DJ -C src/mesa
|
||||||
|
libglu: lib
|
||||||
|
$(MAKE) -f Makefile.DJ -C src/glu/sgi
|
||||||
|
libglut: lib
|
||||||
|
$(MAKE) -f Makefile.DJ -C src/glut/dos
|
||||||
|
|
||||||
|
lib:
|
||||||
|
mkdir lib
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) -f Makefile.DJ clean -C src/mesa
|
||||||
|
$(MAKE) -f Makefile.DJ clean -C src/glu/mesa
|
||||||
|
$(MAKE) -f Makefile.DJ clean -C src/glu/sgi
|
||||||
|
$(MAKE) -f Makefile.DJ clean -C src/glut/dos
|
||||||
|
|
||||||
|
realclean: clean
|
||||||
|
-$(call UNLINK,lib/*.a)
|
||||||
|
-$(call UNLINK,lib/*.dxe)
|
||||||
110
Makefile.mgw
Normal file
110
Makefile.mgw
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
# Mesa 3-D graphics library
|
||||||
|
# Version: 4.0
|
||||||
|
#
|
||||||
|
# Copyright (C) 1999 Brian Paul All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
|
# to deal in the Software without restriction, including without limitation
|
||||||
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included
|
||||||
|
# in all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
# MinGW makefile v1.2 for Mesa
|
||||||
|
#
|
||||||
|
# Copyright (C) 2002 - Daniel Borca
|
||||||
|
# Email : dborca@users.sourceforge.net
|
||||||
|
# Web : http://www.geocities.com/dborca
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Available options:
|
||||||
|
#
|
||||||
|
# Environment variables:
|
||||||
|
# GLIDE path to Glide3 SDK; used with FX.
|
||||||
|
# default = $(TOP)/glide3
|
||||||
|
# FX=1 build for 3dfx Glide3. Note that this disables
|
||||||
|
# compilation of most WMesa code and requires fxMesa.
|
||||||
|
# As a consequence, you'll need the Win32 Glide3
|
||||||
|
# library to build any application.
|
||||||
|
# default = no
|
||||||
|
# ICD=1 build the installable client driver interface
|
||||||
|
# (windows opengl driver interface)
|
||||||
|
# default = no
|
||||||
|
# X86=1 optimize for x86 (if possible, use MMX, SSE, 3DNow).
|
||||||
|
# default = no
|
||||||
|
#
|
||||||
|
# Targets:
|
||||||
|
# all: build everything
|
||||||
|
# libgl: build GL
|
||||||
|
# clean: remove object files
|
||||||
|
# realclean: remove all generated files
|
||||||
|
#
|
||||||
|
|
||||||
|
# MinGW core makefile updated for Mesa 7.0
|
||||||
|
#
|
||||||
|
# Updated : by Heromyth, on 2007-7-21
|
||||||
|
# Email : zxpmyth@yahoo.com.cn
|
||||||
|
# Bugs : 1) All the default settings work fine. But the setting X86=1 can't work.
|
||||||
|
# The others havn't been tested yet.
|
||||||
|
# 2) The generated DLLs are *not* compatible with the ones built
|
||||||
|
# with the other compilers like VC8, especially for GLUT.
|
||||||
|
# 3) MAlthough more tests are needed, it can be used individually!
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY : all libgl clean realclean
|
||||||
|
|
||||||
|
ifeq ($(ICD),1)
|
||||||
|
# when -std=c99 mingw will not define WIN32
|
||||||
|
CFLAGS = -Wall -Werror
|
||||||
|
else
|
||||||
|
# I love c89
|
||||||
|
CFLAGS = -Wall -pedantic
|
||||||
|
endif
|
||||||
|
CFLAGS += -O2 -ffast-math
|
||||||
|
|
||||||
|
export CFLAGS
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),)
|
||||||
|
UNLINK = del $(subst /,\,$(1))
|
||||||
|
else
|
||||||
|
UNLINK = $(RM) $(1)
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: libgl libglu libglut example
|
||||||
|
|
||||||
|
libgl: lib
|
||||||
|
$(MAKE) -f Makefile.mgw -C src/mesa
|
||||||
|
|
||||||
|
libglu: libgl
|
||||||
|
$(MAKE) -f Makefile.mgw -C src/glu/sgi
|
||||||
|
|
||||||
|
libglut: libglu
|
||||||
|
$(MAKE) -f Makefile.mgw -C src/glut/glx
|
||||||
|
|
||||||
|
example: libglut
|
||||||
|
$(MAKE) -f Makefile.mgw star -C progs/samples
|
||||||
|
copy progs\samples\star.exe lib
|
||||||
|
|
||||||
|
lib:
|
||||||
|
mkdir lib
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) -f Makefile.mgw clean -C src/mesa
|
||||||
|
$(MAKE) -f Makefile.mgw clean -C src/glu/sgi
|
||||||
|
$(MAKE) -f Makefile.mgw clean -C src/glut/glx
|
||||||
|
|
||||||
|
realclean: clean
|
||||||
|
-$(call UNLINK,lib/*.a)
|
||||||
|
-$(call UNLINK,lib/*.dll)
|
||||||
167
SConstruct
167
SConstruct
@@ -1,167 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
# Top-level SConstruct
|
|
||||||
#
|
|
||||||
# For example, invoke scons as
|
|
||||||
#
|
|
||||||
# scons debug=1 dri=0 machine=x86
|
|
||||||
#
|
|
||||||
# to set configuration variables. Or you can write those options to a file
|
|
||||||
# named config.py:
|
|
||||||
#
|
|
||||||
# # config.py
|
|
||||||
# debug=1
|
|
||||||
# dri=0
|
|
||||||
# machine='x86'
|
|
||||||
#
|
|
||||||
# Invoke
|
|
||||||
#
|
|
||||||
# scons -h
|
|
||||||
#
|
|
||||||
# to get the full list of options. See scons manpage for more info.
|
|
||||||
#
|
|
||||||
|
|
||||||
import os
|
|
||||||
import os.path
|
|
||||||
import sys
|
|
||||||
|
|
||||||
import common
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# Configuration options
|
|
||||||
|
|
||||||
default_statetrackers = 'mesa'
|
|
||||||
|
|
||||||
if common.default_platform in ('linux', 'freebsd', 'darwin'):
|
|
||||||
default_drivers = 'softpipe,failover,i915simple,trace,identity,llvmpipe'
|
|
||||||
default_winsys = 'xlib'
|
|
||||||
elif common.default_platform in ('winddk',):
|
|
||||||
default_drivers = 'softpipe,i915simple,trace,identity'
|
|
||||||
default_winsys = 'all'
|
|
||||||
else:
|
|
||||||
default_drivers = 'all'
|
|
||||||
default_winsys = 'all'
|
|
||||||
|
|
||||||
opts = Variables('config.py')
|
|
||||||
common.AddOptions(opts)
|
|
||||||
opts.Add(ListVariable('statetrackers', 'state trackers to build', default_statetrackers,
|
|
||||||
['mesa', 'python', 'xorg']))
|
|
||||||
opts.Add(ListVariable('drivers', 'pipe drivers to build', default_drivers,
|
|
||||||
['softpipe', 'failover', 'i915simple', 'i965simple', 'cell', 'trace', 'r300', 'identity', 'llvmpipe']))
|
|
||||||
opts.Add(ListVariable('winsys', 'winsys drivers to build', default_winsys,
|
|
||||||
['xlib', 'intel', 'gdi', 'radeon']))
|
|
||||||
|
|
||||||
opts.Add(EnumVariable('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0')))
|
|
||||||
|
|
||||||
env = Environment(
|
|
||||||
options = opts,
|
|
||||||
tools = ['gallium'],
|
|
||||||
toolpath = ['#scons'],
|
|
||||||
ENV = os.environ,
|
|
||||||
)
|
|
||||||
|
|
||||||
Help(opts.GenerateHelpText(env))
|
|
||||||
|
|
||||||
# replicate options values in local variables
|
|
||||||
debug = env['debug']
|
|
||||||
dri = env['dri']
|
|
||||||
llvm = env['llvm']
|
|
||||||
machine = env['machine']
|
|
||||||
platform = env['platform']
|
|
||||||
|
|
||||||
# derived options
|
|
||||||
x86 = machine == 'x86'
|
|
||||||
ppc = machine == 'ppc'
|
|
||||||
gcc = platform in ('linux', 'freebsd', 'darwin')
|
|
||||||
msvc = platform in ('windows', 'winddk')
|
|
||||||
|
|
||||||
Export([
|
|
||||||
'debug',
|
|
||||||
'x86',
|
|
||||||
'ppc',
|
|
||||||
'dri',
|
|
||||||
'llvm',
|
|
||||||
'platform',
|
|
||||||
'gcc',
|
|
||||||
'msvc',
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# Environment setup
|
|
||||||
|
|
||||||
# Includes
|
|
||||||
env.Append(CPPPATH = [
|
|
||||||
'#/include',
|
|
||||||
'#/src/gallium/include',
|
|
||||||
'#/src/gallium/auxiliary',
|
|
||||||
'#/src/gallium/drivers',
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# Posix
|
|
||||||
if platform in ('posix', 'linux', 'freebsd', 'darwin'):
|
|
||||||
env.Append(CPPDEFINES = [
|
|
||||||
'_POSIX_SOURCE',
|
|
||||||
('_POSIX_C_SOURCE', '199309L'),
|
|
||||||
'_SVID_SOURCE',
|
|
||||||
'_BSD_SOURCE',
|
|
||||||
'_GNU_SOURCE',
|
|
||||||
|
|
||||||
'PTHREADS',
|
|
||||||
'HAVE_POSIX_MEMALIGN',
|
|
||||||
])
|
|
||||||
env.Append(CPPPATH = ['/usr/X11R6/include'])
|
|
||||||
env.Append(LIBPATH = ['/usr/X11R6/lib'])
|
|
||||||
env.Append(LIBS = [
|
|
||||||
'm',
|
|
||||||
'pthread',
|
|
||||||
'expat',
|
|
||||||
'dl',
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# DRI
|
|
||||||
if dri:
|
|
||||||
env.ParseConfig('pkg-config --cflags --libs libdrm')
|
|
||||||
env.Append(CPPDEFINES = [
|
|
||||||
('USE_EXTERNAL_DXTN_LIB', '1'),
|
|
||||||
'IN_DRI_DRIVER',
|
|
||||||
'GLX_DIRECT_RENDERING',
|
|
||||||
'GLX_INDIRECT_RENDERING',
|
|
||||||
])
|
|
||||||
|
|
||||||
# LLVM
|
|
||||||
if llvm:
|
|
||||||
# See also http://www.scons.org/wiki/UsingPkgConfig
|
|
||||||
env.ParseConfig('llvm-config --cflags --ldflags --libs backend bitreader engine instrumentation interpreter ipo')
|
|
||||||
env.Append(CPPDEFINES = ['MESA_LLVM'])
|
|
||||||
# Force C++ linkage
|
|
||||||
env['LINK'] = env['CXX']
|
|
||||||
|
|
||||||
# libGL
|
|
||||||
if platform in ('linux', 'freebsd', 'darwin'):
|
|
||||||
env.Append(LIBS = [
|
|
||||||
'X11',
|
|
||||||
'Xext',
|
|
||||||
'Xxf86vm',
|
|
||||||
'Xdamage',
|
|
||||||
'Xfixes',
|
|
||||||
])
|
|
||||||
|
|
||||||
# for debugging
|
|
||||||
#print env.Dump()
|
|
||||||
|
|
||||||
Export('env')
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# Invoke SConscripts
|
|
||||||
|
|
||||||
# TODO: Build several variants at the same time?
|
|
||||||
# http://www.scons.org/wiki/SimultaneousVariantBuilds
|
|
||||||
|
|
||||||
SConscript(
|
|
||||||
'src/SConscript',
|
|
||||||
variant_dir = env['build'],
|
|
||||||
duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
|
|
||||||
)
|
|
||||||
@@ -11,8 +11,6 @@ if test "x$SRCDIR" != "x$ORIGDIR"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MAKEFLAGS=""
|
|
||||||
|
|
||||||
autoreconf -v --install || exit 1
|
autoreconf -v --install || exit 1
|
||||||
|
|
||||||
"$srcdir"/configure "$@"
|
"$srcdir"/configure "$@"
|
||||||
|
|||||||
69
bin/config.guess
vendored
69
bin/config.guess
vendored
@@ -1,10 +1,10 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
||||||
# Free Software Foundation, Inc.
|
# Inc.
|
||||||
|
|
||||||
timestamp='2009-02-03'
|
timestamp='2007-07-22'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
@@ -56,8 +56,8 @@ version="\
|
|||||||
GNU config.guess ($timestamp)
|
GNU config.guess ($timestamp)
|
||||||
|
|
||||||
Originally written by Per Bothner.
|
Originally written by Per Bothner.
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
@@ -331,20 +331,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|||||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
exit ;;
|
exit ;;
|
||||||
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
||||||
eval $set_cc_for_build
|
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
SUN_ARCH="i386"
|
|
||||||
# If there is a compiler, see if it is configured for 64-bit objects.
|
|
||||||
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
|
||||||
# This test works for both compilers.
|
|
||||||
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
||||||
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
||||||
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
||||||
grep IS_64BIT_ARCH >/dev/null
|
|
||||||
then
|
|
||||||
SUN_ARCH="x86_64"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
||||||
exit ;;
|
exit ;;
|
||||||
sun4*:SunOS:6*:*)
|
sun4*:SunOS:6*:*)
|
||||||
# According to config.sub, this is the proper way to canonicalize
|
# According to config.sub, this is the proper way to canonicalize
|
||||||
@@ -545,7 +532,7 @@ EOF
|
|||||||
echo rs6000-ibm-aix3.2
|
echo rs6000-ibm-aix3.2
|
||||||
fi
|
fi
|
||||||
exit ;;
|
exit ;;
|
||||||
*:AIX:*:[456])
|
*:AIX:*:[45])
|
||||||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
||||||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
||||||
IBM_ARCH=rs6000
|
IBM_ARCH=rs6000
|
||||||
@@ -809,12 +796,9 @@ EOF
|
|||||||
x86)
|
x86)
|
||||||
echo i586-pc-interix${UNAME_RELEASE}
|
echo i586-pc-interix${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
EM64T | authenticamd | genuineintel)
|
EM64T | authenticamd)
|
||||||
echo x86_64-unknown-interix${UNAME_RELEASE}
|
echo x86_64-unknown-interix${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
IA64)
|
|
||||||
echo ia64-unknown-interix${UNAME_RELEASE}
|
|
||||||
exit ;;
|
|
||||||
esac ;;
|
esac ;;
|
||||||
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
||||||
echo i${UNAME_MACHINE}-pc-mks
|
echo i${UNAME_MACHINE}-pc-mks
|
||||||
@@ -849,14 +833,7 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-pc-minix
|
echo ${UNAME_MACHINE}-pc-minix
|
||||||
exit ;;
|
exit ;;
|
||||||
arm*:Linux:*:*)
|
arm*:Linux:*:*)
|
||||||
eval $set_cc_for_build
|
|
||||||
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
||||||
| grep -q __ARM_EABI__
|
|
||||||
then
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
else
|
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
|
||||||
fi
|
|
||||||
exit ;;
|
exit ;;
|
||||||
avr32*:Linux:*:*)
|
avr32*:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
@@ -948,9 +925,6 @@ EOF
|
|||||||
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
||||||
exit ;;
|
exit ;;
|
||||||
padre:Linux:*:*)
|
|
||||||
echo sparc-unknown-linux-gnu
|
|
||||||
exit ;;
|
|
||||||
parisc:Linux:*:* | hppa:Linux:*:*)
|
parisc:Linux:*:* | hppa:Linux:*:*)
|
||||||
# Look for CPU level
|
# Look for CPU level
|
||||||
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
||||||
@@ -980,8 +954,8 @@ EOF
|
|||||||
x86_64:Linux:*:*)
|
x86_64:Linux:*:*)
|
||||||
echo x86_64-unknown-linux-gnu
|
echo x86_64-unknown-linux-gnu
|
||||||
exit ;;
|
exit ;;
|
||||||
xtensa*:Linux:*:*)
|
xtensa:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo xtensa-unknown-linux-gnu
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:Linux:*:*)
|
i*86:Linux:*:*)
|
||||||
# The BFD linker knows what the default object file format is, so
|
# The BFD linker knows what the default object file format is, so
|
||||||
@@ -1001,6 +975,9 @@ EOF
|
|||||||
a.out-i386-linux)
|
a.out-i386-linux)
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
||||||
exit ;;
|
exit ;;
|
||||||
|
coff-i386)
|
||||||
|
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
||||||
|
exit ;;
|
||||||
"")
|
"")
|
||||||
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
||||||
# one that does not give us useful --help.
|
# one that does not give us useful --help.
|
||||||
@@ -1154,16 +1131,6 @@ EOF
|
|||||||
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||||
&& { echo i486-ncr-sysv4; exit; } ;;
|
&& { echo i486-ncr-sysv4; exit; } ;;
|
||||||
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
|
||||||
OS_REL='.3'
|
|
||||||
test -r /etc/.relid \
|
|
||||||
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
|
||||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
||||||
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
|
||||||
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
||||||
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
|
||||||
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
|
||||||
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
||||||
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
||||||
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
@@ -1239,9 +1206,6 @@ EOF
|
|||||||
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
||||||
echo i586-pc-beos
|
echo i586-pc-beos
|
||||||
exit ;;
|
exit ;;
|
||||||
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
|
||||||
echo i586-pc-haiku
|
|
||||||
exit ;;
|
|
||||||
SX-4:SUPER-UX:*:*)
|
SX-4:SUPER-UX:*:*)
|
||||||
echo sx4-nec-superux${UNAME_RELEASE}
|
echo sx4-nec-superux${UNAME_RELEASE}
|
||||||
exit ;;
|
exit ;;
|
||||||
@@ -1350,9 +1314,6 @@ EOF
|
|||||||
i*86:rdos:*:*)
|
i*86:rdos:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-rdos
|
echo ${UNAME_MACHINE}-pc-rdos
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:AROS:*:*)
|
|
||||||
echo ${UNAME_MACHINE}-pc-aros
|
|
||||||
exit ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#echo '(No uname command or uname output not recognized.)' 1>&2
|
#echo '(No uname command or uname output not recognized.)' 1>&2
|
||||||
@@ -1513,9 +1474,9 @@ This script, last modified $timestamp, has failed to recognize
|
|||||||
the operating system you are using. It is advised that you
|
the operating system you are using. It is advised that you
|
||||||
download the most up to date version of the config scripts from
|
download the most up to date version of the config scripts from
|
||||||
|
|
||||||
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
|
||||||
and
|
and
|
||||||
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
|
||||||
|
|
||||||
If the version you run ($0) is already up to date, please
|
If the version you run ($0) is already up to date, please
|
||||||
send the following data and any information you think might be
|
send the following data and any information you think might be
|
||||||
|
|||||||
95
bin/config.sub
vendored
95
bin/config.sub
vendored
@@ -1,10 +1,10 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# Configuration validation subroutine script.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
||||||
# Free Software Foundation, Inc.
|
# Inc.
|
||||||
|
|
||||||
timestamp='2009-02-03'
|
timestamp='2007-06-28'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is (in principle) common to ALL GNU software.
|
||||||
# The presence of a machine in this file suggests that SOME GNU software
|
# The presence of a machine in this file suggests that SOME GNU software
|
||||||
@@ -72,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
|
|||||||
version="\
|
version="\
|
||||||
GNU config.sub ($timestamp)
|
GNU config.sub ($timestamp)
|
||||||
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
@@ -122,7 +122,6 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
|||||||
case $maybe_os in
|
case $maybe_os in
|
||||||
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
|
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
|
||||||
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
|
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
|
||||||
kopensolaris*-gnu* | \
|
|
||||||
storm-chaos* | os2-emx* | rtmk-nova*)
|
storm-chaos* | os2-emx* | rtmk-nova*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
@@ -250,16 +249,13 @@ case $basic_machine in
|
|||||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||||
| i370 | i860 | i960 | ia64 \
|
| i370 | i860 | i960 | ia64 \
|
||||||
| ip2k | iq2000 \
|
| ip2k | iq2000 \
|
||||||
| lm32 \
|
|
||||||
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
||||||
| maxq | mb | microblaze | mcore | mep | metag \
|
| maxq | mb | microblaze | mcore | mep \
|
||||||
| mips | mipsbe | mipseb | mipsel | mipsle \
|
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||||
| mips16 \
|
| mips16 \
|
||||||
| mips64 | mips64el \
|
| mips64 | mips64el \
|
||||||
| mips64octeon | mips64octeonel \
|
|
||||||
| mips64orion | mips64orionel \
|
|
||||||
| mips64r5900 | mips64r5900el \
|
|
||||||
| mips64vr | mips64vrel \
|
| mips64vr | mips64vrel \
|
||||||
|
| mips64orion | mips64orionel \
|
||||||
| mips64vr4100 | mips64vr4100el \
|
| mips64vr4100 | mips64vr4100el \
|
||||||
| mips64vr4300 | mips64vr4300el \
|
| mips64vr4300 | mips64vr4300el \
|
||||||
| mips64vr5000 | mips64vr5000el \
|
| mips64vr5000 | mips64vr5000el \
|
||||||
@@ -281,7 +277,7 @@ case $basic_machine in
|
|||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||||
| pyramid \
|
| pyramid \
|
||||||
| score \
|
| score \
|
||||||
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
||||||
| sh64 | sh64le \
|
| sh64 | sh64le \
|
||||||
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
||||||
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
||||||
@@ -290,7 +286,7 @@ case $basic_machine in
|
|||||||
| v850 | v850e \
|
| v850 | v850e \
|
||||||
| we32k \
|
| we32k \
|
||||||
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
|
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
|
||||||
| z8k | z80)
|
| z8k)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
m6811 | m68hc11 | m6812 | m68hc12)
|
m6811 | m68hc11 | m6812 | m68hc12)
|
||||||
@@ -333,17 +329,14 @@ case $basic_machine in
|
|||||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||||
| i*86-* | i860-* | i960-* | ia64-* \
|
| i*86-* | i860-* | i960-* | ia64-* \
|
||||||
| ip2k-* | iq2000-* \
|
| ip2k-* | iq2000-* \
|
||||||
| lm32-* \
|
|
||||||
| m32c-* | m32r-* | m32rle-* \
|
| m32c-* | m32r-* | m32rle-* \
|
||||||
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||||
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
|
| m88110-* | m88k-* | maxq-* | mcore-* \
|
||||||
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
||||||
| mips16-* \
|
| mips16-* \
|
||||||
| mips64-* | mips64el-* \
|
| mips64-* | mips64el-* \
|
||||||
| mips64octeon-* | mips64octeonel-* \
|
|
||||||
| mips64orion-* | mips64orionel-* \
|
|
||||||
| mips64r5900-* | mips64r5900el-* \
|
|
||||||
| mips64vr-* | mips64vrel-* \
|
| mips64vr-* | mips64vrel-* \
|
||||||
|
| mips64orion-* | mips64orionel-* \
|
||||||
| mips64vr4100-* | mips64vr4100el-* \
|
| mips64vr4100-* | mips64vr4100el-* \
|
||||||
| mips64vr4300-* | mips64vr4300el-* \
|
| mips64vr4300-* | mips64vr4300el-* \
|
||||||
| mips64vr5000-* | mips64vr5000el-* \
|
| mips64vr5000-* | mips64vr5000el-* \
|
||||||
@@ -365,24 +358,20 @@ case $basic_machine in
|
|||||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||||
| pyramid-* \
|
| pyramid-* \
|
||||||
| romp-* | rs6000-* \
|
| romp-* | rs6000-* \
|
||||||
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
||||||
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||||
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
||||||
| sparclite-* \
|
| sparclite-* \
|
||||||
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
|
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
|
||||||
| tahoe-* | thumb-* \
|
| tahoe-* | thumb-* \
|
||||||
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
|
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
||||||
| tron-* \
|
| tron-* \
|
||||||
| v850-* | v850e-* | vax-* \
|
| v850-* | v850e-* | vax-* \
|
||||||
| we32k-* \
|
| we32k-* \
|
||||||
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
|
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
|
||||||
| xstormy16-* | xtensa*-* \
|
| xstormy16-* | xtensa-* \
|
||||||
| ymp-* \
|
| ymp-* \
|
||||||
| z8k-* | z80-*)
|
| z8k-*)
|
||||||
;;
|
|
||||||
# Recognize the basic CPU types without company name, with glob match.
|
|
||||||
xtensa*)
|
|
||||||
basic_machine=$basic_machine-unknown
|
|
||||||
;;
|
;;
|
||||||
# Recognize the various machine names and aliases which stand
|
# Recognize the various machine names and aliases which stand
|
||||||
# for a CPU type and a company and sometimes even an OS.
|
# for a CPU type and a company and sometimes even an OS.
|
||||||
@@ -446,10 +435,6 @@ case $basic_machine in
|
|||||||
basic_machine=m68k-apollo
|
basic_machine=m68k-apollo
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
aros)
|
|
||||||
basic_machine=i386-pc
|
|
||||||
os=-aros
|
|
||||||
;;
|
|
||||||
aux)
|
aux)
|
||||||
basic_machine=m68k-apple
|
basic_machine=m68k-apple
|
||||||
os=-aux
|
os=-aux
|
||||||
@@ -458,22 +443,10 @@ case $basic_machine in
|
|||||||
basic_machine=ns32k-sequent
|
basic_machine=ns32k-sequent
|
||||||
os=-dynix
|
os=-dynix
|
||||||
;;
|
;;
|
||||||
blackfin)
|
|
||||||
basic_machine=bfin-unknown
|
|
||||||
os=-linux
|
|
||||||
;;
|
|
||||||
blackfin-*)
|
|
||||||
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
||||||
os=-linux
|
|
||||||
;;
|
|
||||||
c90)
|
c90)
|
||||||
basic_machine=c90-cray
|
basic_machine=c90-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
cegcc)
|
|
||||||
basic_machine=arm-unknown
|
|
||||||
os=-cegcc
|
|
||||||
;;
|
|
||||||
convex-c1)
|
convex-c1)
|
||||||
basic_machine=c1-convex
|
basic_machine=c1-convex
|
||||||
os=-bsd
|
os=-bsd
|
||||||
@@ -541,10 +514,6 @@ case $basic_machine in
|
|||||||
basic_machine=m88k-motorola
|
basic_machine=m88k-motorola
|
||||||
os=-sysv3
|
os=-sysv3
|
||||||
;;
|
;;
|
||||||
dicos)
|
|
||||||
basic_machine=i686-pc
|
|
||||||
os=-dicos
|
|
||||||
;;
|
|
||||||
djgpp)
|
djgpp)
|
||||||
basic_machine=i586-pc
|
basic_machine=i586-pc
|
||||||
os=-msdosdjgpp
|
os=-msdosdjgpp
|
||||||
@@ -699,14 +668,6 @@ case $basic_machine in
|
|||||||
basic_machine=m68k-isi
|
basic_machine=m68k-isi
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
m68knommu)
|
|
||||||
basic_machine=m68k-unknown
|
|
||||||
os=-linux
|
|
||||||
;;
|
|
||||||
m68knommu-*)
|
|
||||||
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
||||||
os=-linux
|
|
||||||
;;
|
|
||||||
m88k-omron*)
|
m88k-omron*)
|
||||||
basic_machine=m88k-omron
|
basic_machine=m88k-omron
|
||||||
;;
|
;;
|
||||||
@@ -852,14 +813,6 @@ case $basic_machine in
|
|||||||
basic_machine=i860-intel
|
basic_machine=i860-intel
|
||||||
os=-osf
|
os=-osf
|
||||||
;;
|
;;
|
||||||
parisc)
|
|
||||||
basic_machine=hppa-unknown
|
|
||||||
os=-linux
|
|
||||||
;;
|
|
||||||
parisc-*)
|
|
||||||
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
||||||
os=-linux
|
|
||||||
;;
|
|
||||||
pbd)
|
pbd)
|
||||||
basic_machine=sparc-tti
|
basic_machine=sparc-tti
|
||||||
;;
|
;;
|
||||||
@@ -1068,10 +1021,6 @@ case $basic_machine in
|
|||||||
basic_machine=tic6x-unknown
|
basic_machine=tic6x-unknown
|
||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
tile*)
|
|
||||||
basic_machine=tile-unknown
|
|
||||||
os=-linux-gnu
|
|
||||||
;;
|
|
||||||
tx39)
|
tx39)
|
||||||
basic_machine=mipstx39-unknown
|
basic_machine=mipstx39-unknown
|
||||||
;;
|
;;
|
||||||
@@ -1147,10 +1096,6 @@ case $basic_machine in
|
|||||||
basic_machine=z8k-unknown
|
basic_machine=z8k-unknown
|
||||||
os=-sim
|
os=-sim
|
||||||
;;
|
;;
|
||||||
z80-*-coff)
|
|
||||||
basic_machine=z80-unknown
|
|
||||||
os=-sim
|
|
||||||
;;
|
|
||||||
none)
|
none)
|
||||||
basic_machine=none-none
|
basic_machine=none-none
|
||||||
os=-none
|
os=-none
|
||||||
@@ -1189,7 +1134,7 @@ case $basic_machine in
|
|||||||
we32k)
|
we32k)
|
||||||
basic_machine=we32k-att
|
basic_machine=we32k-att
|
||||||
;;
|
;;
|
||||||
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
||||||
@@ -1261,9 +1206,8 @@ case $os in
|
|||||||
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
||||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
||||||
| -kopensolaris* \
|
|
||||||
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
||||||
| -aos* | -aros* \
|
| -aos* \
|
||||||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
||||||
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||||
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
||||||
@@ -1272,7 +1216,7 @@ case $os in
|
|||||||
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||||
| -chorusos* | -chorusrdb* | -cegcc* \
|
| -chorusos* | -chorusrdb* \
|
||||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||||
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
|
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
|
||||||
| -uxpv* | -beos* | -mpeix* | -udk* \
|
| -uxpv* | -beos* | -mpeix* | -udk* \
|
||||||
@@ -1412,9 +1356,6 @@ case $os in
|
|||||||
-zvmoe)
|
-zvmoe)
|
||||||
os=-zvmoe
|
os=-zvmoe
|
||||||
;;
|
;;
|
||||||
-dicos*)
|
|
||||||
os=-dicos
|
|
||||||
;;
|
|
||||||
-none)
|
-none)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -66,11 +66,8 @@ if [ $# -ge 2 ] ; then
|
|||||||
|
|
||||||
elif [ -f "$FILE" ] ; then
|
elif [ -f "$FILE" ] ; then
|
||||||
#echo "$FILE" is a regular file
|
#echo "$FILE" is a regular file
|
||||||
# Only copy if the files differ
|
|
||||||
if ! cmp -s $FILE $DEST/`basename $FILE`; then
|
|
||||||
$RM "$DEST/`basename $FILE`"
|
$RM "$DEST/`basename $FILE`"
|
||||||
cp "$FILE" "$DEST"
|
cp "$FILE" "$DEST"
|
||||||
fi
|
|
||||||
if [ $MODE ] ; then
|
if [ $MODE ] ; then
|
||||||
FILE=`basename "$FILE"`
|
FILE=`basename "$FILE"`
|
||||||
chmod $MODE "$DEST/$FILE"
|
chmod $MODE "$DEST/$FILE"
|
||||||
|
|||||||
76
bin/mklib
76
bin/mklib
@@ -176,23 +176,6 @@ if [ ${ARCH} = "auto" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ $STATIC = 1 ]; then
|
|
||||||
# filter out linker options inside object list
|
|
||||||
NEWOBJECTS=""
|
|
||||||
for OBJ in $OBJECTS ; do
|
|
||||||
case $OBJ in
|
|
||||||
-Wl,*)
|
|
||||||
echo "mklib: warning: ignoring $OBJ for static library"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
NEWOBJECTS="$NEWOBJECTS $OBJ"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
OBJECTS=$NEWOBJECTS
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Error checking
|
# Error checking
|
||||||
#
|
#
|
||||||
@@ -281,21 +264,18 @@ case $ARCH in
|
|||||||
# expand any .a objects into constituent .o files.
|
# expand any .a objects into constituent .o files.
|
||||||
NEWOBJECTS=""
|
NEWOBJECTS=""
|
||||||
DELETIA=""
|
DELETIA=""
|
||||||
for OBJ in $OBJECTS ; do
|
for OBJ in ${OBJECTS} ; do
|
||||||
case $OBJ in
|
if [ `expr match $OBJ '.*\.a'` -gt 0 ] ; then
|
||||||
*.a)
|
|
||||||
# extract the .o files from this .a archive
|
# extract the .o files from this .a archive
|
||||||
FILES=`ar t $OBJ`
|
FILES=`ar t $OBJ`
|
||||||
ar x $OBJ
|
ar x $OBJ
|
||||||
NEWOBJECTS="$NEWOBJECTS $FILES"
|
NEWOBJECTS="$NEWOBJECTS $FILES"
|
||||||
# keep track of temporary .o files and delete them below
|
# keep track of temporary .o files and delete them below
|
||||||
DELETIA="$DELETIA $FILES"
|
DELETIA="$DELETIA $FILES"
|
||||||
;;
|
else
|
||||||
*)
|
|
||||||
# ordinary .o file
|
# ordinary .o file
|
||||||
NEWOBJECTS="$NEWOBJECTS $OBJ"
|
NEWOBJECTS="$NEWOBJECTS $OBJ"
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# make lib
|
# make lib
|
||||||
@@ -414,30 +394,6 @@ case $ARCH in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If using Sun C++ compiler, need to tell it not to add runpaths
|
|
||||||
# that are specific to the build machine
|
|
||||||
if [ ${LINK} = "CC" ] ; then
|
|
||||||
OPTS="${OPTS} -norunpath"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Solaris linker requires explicitly listing the Standard C & C++
|
|
||||||
# libraries in the link path when building shared objects
|
|
||||||
if [ ${LINK} = "CC" ] ; then
|
|
||||||
DEPS="${DEPS} -lCrun"
|
|
||||||
fi
|
|
||||||
DEPS="${DEPS} -lc"
|
|
||||||
|
|
||||||
if [ $EXPORTS ] ; then
|
|
||||||
# Make the 'mapfile.scope' linker mapfile
|
|
||||||
echo "{" > mapfile.scope
|
|
||||||
echo "global:" >> mapfile.scope
|
|
||||||
sed 's/$/;/' ${EXPORTS} >> mapfile.scope
|
|
||||||
echo "local:" >> mapfile.scope
|
|
||||||
echo " *;" >> mapfile.scope
|
|
||||||
echo "};" >> mapfile.scope
|
|
||||||
OPTS="${OPTS} -Wl,-Mmapfile.scope"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if objects are SPARC v9
|
# Check if objects are SPARC v9
|
||||||
# file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
|
# file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
|
||||||
set ${OBJECTS}
|
set ${OBJECTS}
|
||||||
@@ -450,19 +406,17 @@ case $ARCH in
|
|||||||
if [ "${ALTOPTS}" ] ; then
|
if [ "${ALTOPTS}" ] ; then
|
||||||
OPTS=${ALTOPTS}
|
OPTS=${ALTOPTS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# for debug:
|
# for debug:
|
||||||
#echo "mklib: linker is" ${LINK} ${OPTS}
|
#echo "mklib: linker is" ${LINK} ${OPTS}
|
||||||
if [ $NOPREFIX = 1 ] ; then
|
if [ $NOPREFIX = 1 ] ; then
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
FINAL_LIBS="${LIBNAME}"
|
|
||||||
else
|
else
|
||||||
rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
|
rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.${MAJOR} -h ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.${MAJOR} -h ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
|
||||||
ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
|
ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
|
||||||
FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
|
|
||||||
fi
|
fi
|
||||||
|
FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -885,17 +839,6 @@ case $ARCH in
|
|||||||
|
|
||||||
CYGWIN*)
|
CYGWIN*)
|
||||||
# GCC-based environment
|
# GCC-based environment
|
||||||
if [ $NOPREFIX = 1 ] ; then
|
|
||||||
# No "lib" or ".so" part
|
|
||||||
echo "mklib: Making CYGWIN shared library: " ${LIBNAME}
|
|
||||||
OPTS="-shared -Wl,--enable-auto-image-base"
|
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
rm -f ${LIBNAME}
|
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
|
||||||
FINAL_LIBS=${LIBNAME}
|
|
||||||
else
|
|
||||||
CYGNAME="cyg${LIBNAME}" # prefix with "cyg"
|
CYGNAME="cyg${LIBNAME}" # prefix with "cyg"
|
||||||
LIBNAME="lib${LIBNAME}" # prefix with "lib"
|
LIBNAME="lib${LIBNAME}" # prefix with "lib"
|
||||||
|
|
||||||
@@ -912,11 +855,11 @@ case $ARCH in
|
|||||||
# finish up
|
# finish up
|
||||||
FINAL_LIBS=${LIBNAME}.a
|
FINAL_LIBS=${LIBNAME}.a
|
||||||
else
|
else
|
||||||
OPTS="-shared -Wl,--enable-auto-image-base -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a"
|
OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
if [ "${ALTOPTS}" ] ; then
|
||||||
OPTS=${ALTOPTS}
|
OPTS=${ALTOPTS}
|
||||||
fi
|
fi
|
||||||
echo "mklib: Making" $ARCH "shared library: " ${CYGNAME}-${MAJOR}.dll
|
echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}-${MAJOR}.dll
|
||||||
|
|
||||||
if [ $CPLUSPLUS = 1 ] ; then
|
if [ $CPLUSPLUS = 1 ] ; then
|
||||||
LINK="g++"
|
LINK="g++"
|
||||||
@@ -925,8 +868,7 @@ case $ARCH in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# rm any old libs
|
# rm any old libs
|
||||||
rm -f ${CYGNAME}-${MAJOR}.dll
|
rm -f ${LIBNAME}-${MAJOR}.dll
|
||||||
rm -f ${LIBNAME}-${MAJOR}.dll.a
|
|
||||||
rm -f ${LIBNAME}.dll.a
|
rm -f ${LIBNAME}.dll.a
|
||||||
rm -f ${LIBNAME}.a
|
rm -f ${LIBNAME}.a
|
||||||
|
|
||||||
@@ -939,7 +881,6 @@ case $ARCH in
|
|||||||
# special case for installing in bin
|
# special case for installing in bin
|
||||||
FINAL_BINS="${CYGNAME}-${MAJOR}.dll"
|
FINAL_BINS="${CYGNAME}-${MAJOR}.dll"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'example')
|
'example')
|
||||||
@@ -971,6 +912,5 @@ esac
|
|||||||
#
|
#
|
||||||
if [ ${INSTALLDIR} != "." ] ; then
|
if [ ${INSTALLDIR} != "." ] ; then
|
||||||
echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
|
echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
|
||||||
test -d ${INSTALLDIR} || mkdir -p ${INSTALLDIR}
|
|
||||||
mv ${FINAL_LIBS} ${INSTALLDIR}/
|
mv ${FINAL_LIBS} ${INSTALLDIR}/
|
||||||
fi
|
fi
|
||||||
|
|||||||
366
bin/raw2png.py
366
bin/raw2png.py
@@ -1,366 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
##########################################################################
|
|
||||||
#
|
|
||||||
# Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the
|
|
||||||
# "Software"), to deal in the Software without restriction, including
|
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
# distribute, sub license, and/or sell copies of the Software, and to
|
|
||||||
# permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
# the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice (including the
|
|
||||||
# next paragraph) shall be included in all copies or substantial portions
|
|
||||||
# of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
||||||
# IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
|
|
||||||
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
||||||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
||||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
#
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
|
|
||||||
import os.path
|
|
||||||
import sys
|
|
||||||
import struct
|
|
||||||
import Image # http://www.pythonware.com/products/pil/
|
|
||||||
|
|
||||||
PIPE_FORMAT_LAYOUT_RGBAZS = 0
|
|
||||||
PIPE_FORMAT_LAYOUT_YCBCR = 1
|
|
||||||
PIPE_FORMAT_LAYOUT_DXT = 2
|
|
||||||
PIPE_FORMAT_LAYOUT_MIXED = 3
|
|
||||||
|
|
||||||
PIPE_FORMAT_COMP_R = 0
|
|
||||||
PIPE_FORMAT_COMP_G = 1
|
|
||||||
PIPE_FORMAT_COMP_B = 2
|
|
||||||
PIPE_FORMAT_COMP_A = 3
|
|
||||||
PIPE_FORMAT_COMP_0 = 4
|
|
||||||
PIPE_FORMAT_COMP_1 = 5
|
|
||||||
PIPE_FORMAT_COMP_Z = 6
|
|
||||||
PIPE_FORMAT_COMP_S = 7
|
|
||||||
|
|
||||||
PIPE_FORMAT_TYPE_UNKNOWN = 0
|
|
||||||
PIPE_FORMAT_TYPE_FLOAT = 1
|
|
||||||
PIPE_FORMAT_TYPE_UNORM = 2
|
|
||||||
PIPE_FORMAT_TYPE_SNORM = 3
|
|
||||||
PIPE_FORMAT_TYPE_USCALED = 4
|
|
||||||
PIPE_FORMAT_TYPE_SSCALED = 5
|
|
||||||
PIPE_FORMAT_TYPE_SRGB = 6
|
|
||||||
PIPE_FORMAT_TYPE_FIXED = 7
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, EXP2, TYPE ):
|
|
||||||
return ((PIPE_FORMAT_LAYOUT_RGBAZS << 0) |\
|
|
||||||
((SWZ) << 2) |\
|
|
||||||
((SIZEX) << 14) |\
|
|
||||||
((SIZEY) << 17) |\
|
|
||||||
((SIZEZ) << 20) |\
|
|
||||||
((SIZEW) << 23) |\
|
|
||||||
((EXP2) << 26) |\
|
|
||||||
((TYPE) << 29) )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_SWZ( SWZX, SWZY, SWZZ, SWZW ):
|
|
||||||
return (((SWZX) << 0) | ((SWZY) << 3) | ((SWZZ) << 6) | ((SWZW) << 9))
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_RGBAZS_1( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ):
|
|
||||||
return _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 0, TYPE )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_RGBAZS_2( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ):
|
|
||||||
_PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 1, TYPE )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_RGBAZS_8( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ):
|
|
||||||
return _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 3, TYPE )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_RGBAZS_64( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ):
|
|
||||||
return _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 6, TYPE )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_MIXED( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, SIGNX, SIGNY, SIGNZ, SIGNW, NORMALIZED, SCALE8 ):
|
|
||||||
return ((PIPE_FORMAT_LAYOUT_MIXED << 0) |\
|
|
||||||
((SWZ) << 2) |\
|
|
||||||
((SIZEX) << 14) |\
|
|
||||||
((SIZEY) << 17) |\
|
|
||||||
((SIZEZ) << 20) |\
|
|
||||||
((SIZEW) << 23) |\
|
|
||||||
((SIGNX) << 26) |\
|
|
||||||
((SIGNY) << 27) |\
|
|
||||||
((SIGNZ) << 28) |\
|
|
||||||
((SIGNW) << 29) |\
|
|
||||||
((NORMALIZED) << 30) |\
|
|
||||||
((SCALE8) << 31) )
|
|
||||||
|
|
||||||
|
|
||||||
_PIPE_FORMAT_R001 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_1 )
|
|
||||||
_PIPE_FORMAT_RG01 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_1 )
|
|
||||||
_PIPE_FORMAT_RGB1 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_1 )
|
|
||||||
_PIPE_FORMAT_RGBA = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_A )
|
|
||||||
_PIPE_FORMAT_ARGB = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_A, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B )
|
|
||||||
_PIPE_FORMAT_ABGR = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_A, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R )
|
|
||||||
_PIPE_FORMAT_BGRA = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_A )
|
|
||||||
_PIPE_FORMAT_1RGB = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_1, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B )
|
|
||||||
_PIPE_FORMAT_1BGR = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_1, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R )
|
|
||||||
_PIPE_FORMAT_BGR1 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_1 )
|
|
||||||
_PIPE_FORMAT_0000 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
|
|
||||||
_PIPE_FORMAT_000R = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_R )
|
|
||||||
_PIPE_FORMAT_RRR1 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_1 )
|
|
||||||
_PIPE_FORMAT_RRRR = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R )
|
|
||||||
_PIPE_FORMAT_RRRG = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G )
|
|
||||||
_PIPE_FORMAT_Z000 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
|
|
||||||
_PIPE_FORMAT_0Z00 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
|
|
||||||
_PIPE_FORMAT_SZ00 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_S, PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
|
|
||||||
_PIPE_FORMAT_ZS00 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_S, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
|
|
||||||
_PIPE_FORMAT_S000 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_S, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_YCBCR( REV ):
|
|
||||||
return ((PIPE_FORMAT_LAYOUT_YCBCR << 0) |\
|
|
||||||
((REV) << 2) )
|
|
||||||
|
|
||||||
def _PIPE_FORMAT_DXT( LEVEL, RSIZE, GSIZE, BSIZE, ASIZE ):
|
|
||||||
return ((PIPE_FORMAT_LAYOUT_DXT << 0) | \
|
|
||||||
((LEVEL) << 2) | \
|
|
||||||
((RSIZE) << 5) | \
|
|
||||||
((GSIZE) << 8) | \
|
|
||||||
((BSIZE) << 11) | \
|
|
||||||
((ASIZE) << 14) )
|
|
||||||
|
|
||||||
PIPE_FORMAT_NONE = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_0000, 0, 0, 0, 0, PIPE_FORMAT_TYPE_UNKNOWN )
|
|
||||||
PIPE_FORMAT_A8R8G8B8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_ARGB, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_X8R8G8B8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_1RGB, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_B8G8R8A8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_BGRA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_B8G8R8X8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_BGR1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_A1R5G5B5_UNORM = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_ARGB, 1, 5, 5, 5, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_A4R4G4B4_UNORM = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_ARGB, 4, 4, 4, 4, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R5G6B5_UNORM = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_RGB1, 5, 6, 5, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_A2B10G10R10_UNORM = _PIPE_FORMAT_RGBAZS_2 ( _PIPE_FORMAT_ABGR, 1, 5, 5, 5, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_L8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRR1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_A8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_000R, 0, 0, 0, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_I8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRRR, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_A8L8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRRG, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_L16_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRR1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_YCBCR = _PIPE_FORMAT_YCBCR( 0 )
|
|
||||||
PIPE_FORMAT_YCBCR_REV = _PIPE_FORMAT_YCBCR( 1 )
|
|
||||||
PIPE_FORMAT_Z16_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 2, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_Z32_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 4, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_Z32_FLOAT = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 4, 0, 0, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_S8Z24_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_SZ00, 1, 3, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_Z24S8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_ZS00, 3, 1, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_X8Z24_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_0Z00, 1, 3, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_Z24X8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 3, 1, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_S8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_S000, 1, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R64_FLOAT = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R64G64_FLOAT = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R64G64B64_FLOAT = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R64G64B64A64_FLOAT = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R32_FLOAT = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R32G32_FLOAT = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R32G32B32_FLOAT = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R32G32B32A32_FLOAT = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_FLOAT )
|
|
||||||
PIPE_FORMAT_R32_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R32G32_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R32G32B32_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R32G32B32A32_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R32_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R32G32_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R32G32B32_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R32G32B32A32_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R32_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R32G32_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R32G32B32_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R32G32B32A32_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R32_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R32G32_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R32G32B32_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R32G32B32A32_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R16_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R16G16_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R16G16B16_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R16G16B16A16_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R16_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R16G16_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R16G16B16_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R16G16B16A16_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R16_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R16G16_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R16G16B16_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R16G16B16A16_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R16_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R16G16_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R16G16B16_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R16G16B16A16_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R8G8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R8G8B8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R8G8B8A8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R8G8B8X8_UNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM )
|
|
||||||
PIPE_FORMAT_R8_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R8G8_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R8G8B8_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R8G8B8A8_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R8G8B8X8_USCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_USCALED )
|
|
||||||
PIPE_FORMAT_R8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R8G8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R8G8B8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R8G8B8A8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R8G8B8X8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_B6G5R5_SNORM = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_BGR1, 6, 5, 5, 0, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_A8B8G8R8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_BGRA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_X8B8G8R8_SNORM = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM )
|
|
||||||
PIPE_FORMAT_R8_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R8G8_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R8G8B8_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R8G8B8A8_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R8G8B8X8_SSCALED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SSCALED )
|
|
||||||
PIPE_FORMAT_R32_FIXED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_FIXED )
|
|
||||||
PIPE_FORMAT_R32G32_FIXED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_FIXED )
|
|
||||||
PIPE_FORMAT_R32G32B32_FIXED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_FIXED )
|
|
||||||
PIPE_FORMAT_R32G32B32A32_FIXED = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_FIXED )
|
|
||||||
PIPE_FORMAT_L8_SRGB = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRR1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SRGB )
|
|
||||||
PIPE_FORMAT_A8_L8_SRGB = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRRG, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SRGB )
|
|
||||||
PIPE_FORMAT_R8G8B8_SRGB = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SRGB )
|
|
||||||
PIPE_FORMAT_R8G8B8A8_SRGB = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SRGB )
|
|
||||||
PIPE_FORMAT_R8G8B8X8_SRGB = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SRGB )
|
|
||||||
PIPE_FORMAT_X8UB8UG8SR8S_NORM = _PIPE_FORMAT_MIXED( _PIPE_FORMAT_1BGR, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1 )
|
|
||||||
PIPE_FORMAT_B6UG5SR5S_NORM = _PIPE_FORMAT_MIXED( _PIPE_FORMAT_BGR1, 6, 5, 5, 0, 0, 1, 1, 0, 1, 0 )
|
|
||||||
PIPE_FORMAT_DXT1_RGB = _PIPE_FORMAT_DXT( 1, 8, 8, 8, 0 )
|
|
||||||
PIPE_FORMAT_DXT1_RGBA = _PIPE_FORMAT_DXT( 1, 8, 8, 8, 8 )
|
|
||||||
PIPE_FORMAT_DXT3_RGBA = _PIPE_FORMAT_DXT( 3, 8, 8, 8, 8 )
|
|
||||||
PIPE_FORMAT_DXT5_RGBA = _PIPE_FORMAT_DXT( 5, 8, 8, 8, 8 )
|
|
||||||
|
|
||||||
|
|
||||||
formats = {}
|
|
||||||
for name, value in globals().items():
|
|
||||||
if name.startswith("PIPE_FORMAT_") and isinstance(value, int):
|
|
||||||
formats[value] = name
|
|
||||||
|
|
||||||
|
|
||||||
def clip(g):
|
|
||||||
return min(max(g, 0), 255)
|
|
||||||
|
|
||||||
|
|
||||||
def yuv2rgb(y, u, v):
|
|
||||||
C = y - 16
|
|
||||||
D = u - 128
|
|
||||||
E = v - 128
|
|
||||||
|
|
||||||
r = clip(( 298 * C + 409 * E + 128) >> 8)
|
|
||||||
g = clip(( 298 * C - 100 * D - 208 * E + 128) >> 8)
|
|
||||||
b = clip(( 298 * C + 516 * D + 128) >> 8)
|
|
||||||
|
|
||||||
return r, g, b
|
|
||||||
|
|
||||||
|
|
||||||
def translate_r5g6b5(data):
|
|
||||||
value, = struct.unpack_from("H", data)
|
|
||||||
r = ((value >> 11) & 0x1f)*0xff/0x1f
|
|
||||||
g = ((value >> 5) & 0x3f)*0xff/0x3f
|
|
||||||
b = ((value >> 0) & 0x1f)*0xff/0x1f
|
|
||||||
a = 255
|
|
||||||
return [[(r, g, b, a)]]
|
|
||||||
|
|
||||||
def translate_a8r8g8b8(data):
|
|
||||||
b, g, r, a = struct.unpack_from("BBBB", data)
|
|
||||||
return [[(r, g, b, a)]]
|
|
||||||
|
|
||||||
|
|
||||||
def translate_x8r8g8b8(data):
|
|
||||||
b, g, r, x = struct.unpack_from("BBBB", data)
|
|
||||||
a = 255
|
|
||||||
return [[(r, g, b, a)]]
|
|
||||||
|
|
||||||
def translate_r8g8b8a8(data):
|
|
||||||
r, g, b, a = struct.unpack_from("BBBB", data)
|
|
||||||
return [[(r, g, b, a)]]
|
|
||||||
|
|
||||||
def translate_ycbcr(data):
|
|
||||||
y1, u, y2, v = struct.unpack_from("BBBB", data)
|
|
||||||
r1, g1, b1 = yuv2rgb(y1, u, v)
|
|
||||||
r2, g2, b2 = yuv2rgb(y1, u, v)
|
|
||||||
return [[(r1, g1, b1, 255), (r2, g2, b2, 255)]]
|
|
||||||
|
|
||||||
def translate_ycbcr_rev(data):
|
|
||||||
v, y2, u, y1 = struct.unpack_from("BBBB", data)
|
|
||||||
r1, g1, b1 = yuv2rgb(y1, u, v)
|
|
||||||
r2, g2, b2 = yuv2rgb(y1, u, v)
|
|
||||||
return [[(r1, g1, b1, 255), (r2, g2, b2, 255)]]
|
|
||||||
|
|
||||||
def translate_x8z24(data):
|
|
||||||
value, = struct.unpack_from("I", data)
|
|
||||||
r = g = b = (value & 0xffffff)*0xff/0xffffff
|
|
||||||
a = 255
|
|
||||||
return [[(r, g, b, a)]]
|
|
||||||
|
|
||||||
def translate_s8z24(data):
|
|
||||||
value, = struct.unpack_from("I", data)
|
|
||||||
r = (value & 0xffffff)*0xff/0xffffff
|
|
||||||
g = value >> 24
|
|
||||||
b = 0
|
|
||||||
a = 255
|
|
||||||
return [[(r, g, b, a)]]
|
|
||||||
|
|
||||||
|
|
||||||
translate = {
|
|
||||||
PIPE_FORMAT_A8R8G8B8_UNORM: (4, 1, 1, translate_a8r8g8b8),
|
|
||||||
PIPE_FORMAT_X8R8G8B8_UNORM: (4, 1, 1, translate_x8r8g8b8),
|
|
||||||
PIPE_FORMAT_B8G8R8A8_UNORM: (4, 1, 1, translate_r8g8b8a8),
|
|
||||||
PIPE_FORMAT_B8G8R8X8_UNORM: (4, 1, 1, translate_r8g8b8a8),
|
|
||||||
PIPE_FORMAT_A8B8G8R8_SNORM: (4, 1, 1, translate_r8g8b8a8),
|
|
||||||
PIPE_FORMAT_R5G6B5_UNORM: (2, 1, 1, translate_r5g6b5),
|
|
||||||
PIPE_FORMAT_YCBCR: (4, 2, 1, translate_ycbcr),
|
|
||||||
PIPE_FORMAT_YCBCR_REV: (4, 2, 1, translate_ycbcr_rev),
|
|
||||||
PIPE_FORMAT_S8Z24_UNORM: (4, 1, 1, translate_s8z24),
|
|
||||||
PIPE_FORMAT_X8Z24_UNORM: (4, 1, 1, translate_x8z24),
|
|
||||||
}
|
|
||||||
|
|
||||||
def read_header(infile):
|
|
||||||
header_fmt = "IIII"
|
|
||||||
header = infile.read(struct.calcsize(header_fmt))
|
|
||||||
return struct.unpack_from(header_fmt, header)
|
|
||||||
|
|
||||||
def process(infilename, outfilename):
|
|
||||||
sys.stderr.write("%s -> %s\n" % (infilename, outfilename))
|
|
||||||
infile = open(infilename, "rb")
|
|
||||||
format, cpp, width, height = read_header(infile)
|
|
||||||
sys.stderr.write(" %ux%ux%ubpp %s\n" % (width, height, cpp*8, formats[format]))
|
|
||||||
outimage = Image.new(
|
|
||||||
mode='RGB',
|
|
||||||
size=(width, height),
|
|
||||||
color=(0,0,0))
|
|
||||||
outpixels = outimage.load()
|
|
||||||
try:
|
|
||||||
bsize, bwidth, bheight, translate_func = translate[format]
|
|
||||||
except KeyError:
|
|
||||||
sys.stderr.write('error: unsupported format %s\n' % formats[format])
|
|
||||||
return
|
|
||||||
for y in range(0, height, bheight):
|
|
||||||
for x in range(0, width, bwidth):
|
|
||||||
indata = infile.read(bsize)
|
|
||||||
outdata = translate_func(indata)
|
|
||||||
for j in range(bheight):
|
|
||||||
for i in range(bwidth):
|
|
||||||
r, g, b, a = outdata[j][i]
|
|
||||||
outpixels[x+i, y+j] = r, g, b
|
|
||||||
outimage.save(outfilename, "PNG")
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
# wildcard expansion
|
|
||||||
from glob import glob
|
|
||||||
args = []
|
|
||||||
for arg in sys.argv[1:]:
|
|
||||||
args.extend(glob(arg))
|
|
||||||
else:
|
|
||||||
args = sys.argv[1:]
|
|
||||||
for infilename in args:
|
|
||||||
root, ext = os.path.splitext(infilename)
|
|
||||||
outfilename = root + ".png"
|
|
||||||
process(infilename, outfilename)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
@@ -1,309 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
##########################################################################
|
|
||||||
#
|
|
||||||
# Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the
|
|
||||||
# "Software"), to deal in the Software without restriction, including
|
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
# distribute, sub license, and/or sell copies of the Software, and to
|
|
||||||
# permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
# the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice (including the
|
|
||||||
# next paragraph) shall be included in all copies or substantial portions
|
|
||||||
# of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
||||||
# IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
|
|
||||||
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
||||||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
||||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
#
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import optparse
|
|
||||||
import re
|
|
||||||
import struct
|
|
||||||
|
|
||||||
from gprof2dot import Call, Function, Profile
|
|
||||||
from gprof2dot import CALLS, SAMPLES, TIME, TIME_RATIO, TOTAL_TIME, TOTAL_TIME_RATIO
|
|
||||||
from gprof2dot import DotWriter, TEMPERATURE_COLORMAP
|
|
||||||
|
|
||||||
|
|
||||||
__version__ = '0.1'
|
|
||||||
|
|
||||||
|
|
||||||
class ParseError(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class MsvcDemangler:
|
|
||||||
# http://www.kegel.com/mangle.html
|
|
||||||
|
|
||||||
def __init__(self, symbol):
|
|
||||||
self._symbol = symbol
|
|
||||||
self._pos = 0
|
|
||||||
|
|
||||||
def lookahead(self):
|
|
||||||
return self._symbol[self._pos]
|
|
||||||
|
|
||||||
def consume(self):
|
|
||||||
ret = self.lookahead()
|
|
||||||
self._pos += 1
|
|
||||||
return ret
|
|
||||||
|
|
||||||
def match(self, c):
|
|
||||||
if self.lookahead() != c:
|
|
||||||
raise ParseError
|
|
||||||
self.consume()
|
|
||||||
|
|
||||||
def parse(self):
|
|
||||||
self.match('?')
|
|
||||||
name = self.parse_name()
|
|
||||||
qualifications = self.parse_qualifications()
|
|
||||||
return '::'.join(qualifications + [name])
|
|
||||||
|
|
||||||
def parse_name(self):
|
|
||||||
if self.lookahead() == '?':
|
|
||||||
return self.consume() + self.consume()
|
|
||||||
else:
|
|
||||||
name = self.parse_id()
|
|
||||||
self.match('@')
|
|
||||||
return name
|
|
||||||
|
|
||||||
def parse_qualifications(self):
|
|
||||||
qualifications = []
|
|
||||||
while self.lookahead() != '@':
|
|
||||||
name = self.parse_id()
|
|
||||||
qualifications.append(name)
|
|
||||||
self.match('@')
|
|
||||||
return qualifications
|
|
||||||
|
|
||||||
def parse_id(self):
|
|
||||||
s = ''
|
|
||||||
while True:
|
|
||||||
c = self.lookahead()
|
|
||||||
if c.isalnum() or c in '_':
|
|
||||||
s += c
|
|
||||||
self.consume()
|
|
||||||
else:
|
|
||||||
break
|
|
||||||
return s
|
|
||||||
|
|
||||||
|
|
||||||
def demangle(name):
|
|
||||||
if name.startswith('_'):
|
|
||||||
name = name[1:]
|
|
||||||
idx = name.rfind('@')
|
|
||||||
if idx != -1 and name[idx+1:].isdigit():
|
|
||||||
name = name[:idx]
|
|
||||||
return name
|
|
||||||
if name.startswith('?'):
|
|
||||||
demangler = MsvcDemangler(name)
|
|
||||||
return demangler.parse()
|
|
||||||
return name
|
|
||||||
|
|
||||||
|
|
||||||
class Reader:
|
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
self.symbols = []
|
|
||||||
self.symbol_cache = {}
|
|
||||||
self.base_addr = None
|
|
||||||
|
|
||||||
def read_map(self, mapfile):
|
|
||||||
# See http://msdn.microsoft.com/en-us/library/k7xkk3e2.aspx
|
|
||||||
last_addr = 0
|
|
||||||
last_name = 0
|
|
||||||
for line in file(mapfile, "rt"):
|
|
||||||
fields = line.split()
|
|
||||||
try:
|
|
||||||
section_offset, name, addr, type, lib_object = fields
|
|
||||||
except ValueError:
|
|
||||||
continue
|
|
||||||
if type != 'f':
|
|
||||||
continue
|
|
||||||
section, offset = section_offset.split(':')
|
|
||||||
addr = int(offset, 16)
|
|
||||||
self.symbols.append((addr, name))
|
|
||||||
last_addr = addr
|
|
||||||
last_name = name
|
|
||||||
|
|
||||||
# sort symbols
|
|
||||||
self.symbols.sort(key = lambda (addr, name): addr)
|
|
||||||
|
|
||||||
def lookup_addr(self, addr):
|
|
||||||
try:
|
|
||||||
return self.symbol_cache[addr]
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
tolerance = 4196
|
|
||||||
s, e = 0, len(self.symbols)
|
|
||||||
while s != e:
|
|
||||||
i = (s + e)//2
|
|
||||||
start_addr, name = self.symbols[i]
|
|
||||||
try:
|
|
||||||
end_addr, next_name = self.symbols[i + 1]
|
|
||||||
except IndexError:
|
|
||||||
end_addr = start_addr + tolerance
|
|
||||||
if addr < start_addr:
|
|
||||||
e = i
|
|
||||||
continue
|
|
||||||
if addr == end_addr:
|
|
||||||
return next_name, addr - start_addr
|
|
||||||
if addr > end_addr:
|
|
||||||
s = i
|
|
||||||
continue
|
|
||||||
return name, addr - start_addr
|
|
||||||
raise ValueError
|
|
||||||
|
|
||||||
def lookup_symbol(self, name):
|
|
||||||
for symbol_addr, symbol_name in self.symbols:
|
|
||||||
if name == symbol_name:
|
|
||||||
return symbol_addr
|
|
||||||
return 0
|
|
||||||
|
|
||||||
def read_data(self, data):
|
|
||||||
profile = Profile()
|
|
||||||
|
|
||||||
fp = file(data, "rb")
|
|
||||||
entry_format = "IIII"
|
|
||||||
entry_size = struct.calcsize(entry_format)
|
|
||||||
caller = None
|
|
||||||
caller_stack = []
|
|
||||||
while True:
|
|
||||||
entry = fp.read(entry_size)
|
|
||||||
if len(entry) < entry_size:
|
|
||||||
break
|
|
||||||
caller_addr, callee_addr, samples_lo, samples_hi = struct.unpack(entry_format, entry)
|
|
||||||
if caller_addr == 0 and callee_addr == 0:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if self.base_addr is None:
|
|
||||||
ref_addr = self.lookup_symbol('___debug_profile_reference@0')
|
|
||||||
if ref_addr:
|
|
||||||
self.base_addr = (caller_addr - ref_addr) & ~(options.align - 1)
|
|
||||||
else:
|
|
||||||
self.base_addr = 0
|
|
||||||
sys.stderr.write('Base addr: %08x\n' % self.base_addr)
|
|
||||||
|
|
||||||
samples = (samples_hi << 32) | samples_lo
|
|
||||||
|
|
||||||
try:
|
|
||||||
caller_raddr = caller_addr - self.base_addr
|
|
||||||
caller_sym, caller_ofs = self.lookup_addr(caller_raddr)
|
|
||||||
|
|
||||||
try:
|
|
||||||
caller = profile.functions[caller_sym]
|
|
||||||
except KeyError:
|
|
||||||
caller_name = demangle(caller_sym)
|
|
||||||
caller = Function(caller_sym, caller_name)
|
|
||||||
profile.add_function(caller)
|
|
||||||
caller[CALLS] = 0
|
|
||||||
caller[SAMPLES] = 0
|
|
||||||
except ValueError:
|
|
||||||
caller = None
|
|
||||||
|
|
||||||
if not callee_addr:
|
|
||||||
if caller:
|
|
||||||
caller[SAMPLES] += samples
|
|
||||||
else:
|
|
||||||
callee_raddr = callee_addr - self.base_addr
|
|
||||||
callee_sym, callee_ofs = self.lookup_addr(callee_raddr)
|
|
||||||
|
|
||||||
try:
|
|
||||||
callee = profile.functions[callee_sym]
|
|
||||||
except KeyError:
|
|
||||||
callee_name = demangle(callee_sym)
|
|
||||||
callee = Function(callee_sym, callee_name)
|
|
||||||
profile.add_function(callee)
|
|
||||||
callee[CALLS] = samples
|
|
||||||
callee[SAMPLES] = 0
|
|
||||||
else:
|
|
||||||
callee[CALLS] += samples
|
|
||||||
|
|
||||||
if caller is not None:
|
|
||||||
try:
|
|
||||||
call = caller.calls[callee.id]
|
|
||||||
except KeyError:
|
|
||||||
call = Call(callee.id)
|
|
||||||
call[CALLS] = samples
|
|
||||||
caller.add_call(call)
|
|
||||||
else:
|
|
||||||
call[CALLS] += samples
|
|
||||||
|
|
||||||
if options.verbose:
|
|
||||||
if not callee_addr:
|
|
||||||
sys.stderr.write('%s+%u: %u\n' % (caller_sym, caller_ofs, samples))
|
|
||||||
else:
|
|
||||||
sys.stderr.write('%s+%u -> %s+%u: %u\n' % (caller_sym, caller_ofs, callee_sym, callee_ofs, samples))
|
|
||||||
|
|
||||||
# compute derived data
|
|
||||||
profile.validate()
|
|
||||||
profile.find_cycles()
|
|
||||||
profile.aggregate(SAMPLES)
|
|
||||||
profile.ratio(TIME_RATIO, SAMPLES)
|
|
||||||
profile.call_ratios(CALLS)
|
|
||||||
profile.integrate(TOTAL_TIME_RATIO, TIME_RATIO)
|
|
||||||
|
|
||||||
return profile
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
parser = optparse.OptionParser(
|
|
||||||
usage="\n\t%prog [options] [file] ...",
|
|
||||||
version="%%prog %s" % __version__)
|
|
||||||
parser.add_option(
|
|
||||||
'-a', '--align', metavar='NUMBER',
|
|
||||||
type="int", dest="align", default=16,
|
|
||||||
help="section alignment")
|
|
||||||
parser.add_option(
|
|
||||||
'-m', '--map', metavar='FILE',
|
|
||||||
type="string", dest="map",
|
|
||||||
help="map file")
|
|
||||||
parser.add_option(
|
|
||||||
'-b', '--base', metavar='FILE',
|
|
||||||
type="string", dest="base",
|
|
||||||
help="base addr")
|
|
||||||
parser.add_option(
|
|
||||||
'-n', '--node-thres', metavar='PERCENTAGE',
|
|
||||||
type="float", dest="node_thres", default=0.5,
|
|
||||||
help="eliminate nodes below this threshold [default: %default]")
|
|
||||||
parser.add_option(
|
|
||||||
'-e', '--edge-thres', metavar='PERCENTAGE',
|
|
||||||
type="float", dest="edge_thres", default=0.1,
|
|
||||||
help="eliminate edges below this threshold [default: %default]")
|
|
||||||
parser.add_option(
|
|
||||||
'-v', '--verbose',
|
|
||||||
action="count",
|
|
||||||
dest="verbose", default=0,
|
|
||||||
help="verbose output")
|
|
||||||
|
|
||||||
global options
|
|
||||||
(options, args) = parser.parse_args(sys.argv[1:])
|
|
||||||
|
|
||||||
reader = Reader()
|
|
||||||
if options.base is not None:
|
|
||||||
reader.base_addr = int(options.base, 16)
|
|
||||||
if options.map is not None:
|
|
||||||
reader.read_map(options.map)
|
|
||||||
for arg in args:
|
|
||||||
profile = reader.read_data(arg)
|
|
||||||
profile.prune(options.node_thres/100.0, options.edge_thres/100.0)
|
|
||||||
output = sys.stdout
|
|
||||||
dot = DotWriter(output)
|
|
||||||
colormap = TEMPERATURE_COLORMAP
|
|
||||||
dot.graph(profile, colormap)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|
||||||
67
common.py
67
common.py
@@ -1,67 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
# Common SCons code
|
|
||||||
|
|
||||||
import os
|
|
||||||
import os.path
|
|
||||||
import sys
|
|
||||||
import platform as _platform
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# Defaults
|
|
||||||
|
|
||||||
_platform_map = {
|
|
||||||
'linux2': 'linux',
|
|
||||||
'win32': 'winddk',
|
|
||||||
}
|
|
||||||
|
|
||||||
default_platform = sys.platform
|
|
||||||
default_platform = _platform_map.get(default_platform, default_platform)
|
|
||||||
|
|
||||||
_machine_map = {
|
|
||||||
'x86': 'x86',
|
|
||||||
'i386': 'x86',
|
|
||||||
'i486': 'x86',
|
|
||||||
'i586': 'x86',
|
|
||||||
'i686': 'x86',
|
|
||||||
'ppc' : 'ppc',
|
|
||||||
'x86_64': 'x86_64',
|
|
||||||
}
|
|
||||||
if 'PROCESSOR_ARCHITECTURE' in os.environ:
|
|
||||||
default_machine = os.environ['PROCESSOR_ARCHITECTURE']
|
|
||||||
else:
|
|
||||||
default_machine = _platform.machine()
|
|
||||||
default_machine = _machine_map.get(default_machine, 'generic')
|
|
||||||
|
|
||||||
if default_platform in ('linux', 'freebsd'):
|
|
||||||
default_dri = 'yes'
|
|
||||||
elif default_platform in ('winddk', 'windows', 'wince', 'darwin'):
|
|
||||||
default_dri = 'no'
|
|
||||||
else:
|
|
||||||
default_dri = 'no'
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# Common options
|
|
||||||
|
|
||||||
def AddOptions(opts):
|
|
||||||
try:
|
|
||||||
from SCons.Variables.BoolVariable import BoolVariable as BoolOption
|
|
||||||
except ImportError:
|
|
||||||
from SCons.Options.BoolOption import BoolOption
|
|
||||||
try:
|
|
||||||
from SCons.Variables.EnumVariable import EnumVariable as EnumOption
|
|
||||||
except ImportError:
|
|
||||||
from SCons.Options.EnumOption import EnumOption
|
|
||||||
opts.Add(BoolOption('debug', 'debug build', 'no'))
|
|
||||||
opts.Add(BoolOption('profile', 'profile build', 'no'))
|
|
||||||
opts.Add(BoolOption('quiet', 'quiet command lines', 'yes'))
|
|
||||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
|
||||||
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
|
||||||
opts.Add(EnumOption('platform', 'target platform', default_platform,
|
|
||||||
allowed_values=('linux', 'cell', 'windows', 'winddk', 'wince', 'darwin')))
|
|
||||||
opts.Add(EnumOption('toolchain', 'compiler toolchain', 'default',
|
|
||||||
allowed_values=('default', 'crossmingw', 'winsdk', 'winddk')))
|
|
||||||
opts.Add(BoolOption('llvm', 'use LLVM', 'no'))
|
|
||||||
opts.Add(BoolOption('dri', 'build DRI drivers', default_dri))
|
|
||||||
|
|
||||||
@@ -20,12 +20,10 @@ CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ \
|
|||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
EXTRA_LIB_PATH = @EXTRA_LIB_PATH@
|
EXTRA_LIB_PATH = @EXTRA_LIB_PATH@
|
||||||
RADEON_CFLAGS = @RADEON_CFLAGS@
|
|
||||||
RADEON_LDFLAGS = @RADEON_LDFLAGS@
|
|
||||||
|
|
||||||
# Assembler
|
# Assembler
|
||||||
MESA_ASM_SOURCES = @MESA_ASM_SOURCES@
|
ASM_SOURCES = @ASM_SOURCES@
|
||||||
GLAPI_ASM_SOURCES = @GLAPI_ASM_SOURCES@
|
ASM_API = @ASM_API@
|
||||||
|
|
||||||
# Misc tools and flags
|
# Misc tools and flags
|
||||||
MAKE = @MAKE@
|
MAKE = @MAKE@
|
||||||
@@ -33,7 +31,6 @@ SHELL = @SHELL@
|
|||||||
MKLIB_OPTIONS = @MKLIB_OPTIONS@
|
MKLIB_OPTIONS = @MKLIB_OPTIONS@
|
||||||
MKDEP = @MKDEP@
|
MKDEP = @MKDEP@
|
||||||
MKDEP_OPTIONS = @MKDEP_OPTIONS@
|
MKDEP_OPTIONS = @MKDEP_OPTIONS@
|
||||||
INSTALL = @INSTALL@
|
|
||||||
|
|
||||||
# Python and flags (generally only needed by the developers)
|
# Python and flags (generally only needed by the developers)
|
||||||
PYTHON2 = python
|
PYTHON2 = python
|
||||||
@@ -53,27 +50,11 @@ GLUT_LIB_NAME = @GLUT_LIB_NAME@
|
|||||||
GLW_LIB_NAME = @GLW_LIB_NAME@
|
GLW_LIB_NAME = @GLW_LIB_NAME@
|
||||||
OSMESA_LIB_NAME = @OSMESA_LIB_NAME@
|
OSMESA_LIB_NAME = @OSMESA_LIB_NAME@
|
||||||
|
|
||||||
# Globs used to install the lib and all symlinks
|
|
||||||
GL_LIB_GLOB = @GL_LIB_GLOB@
|
|
||||||
GLU_LIB_GLOB = @GLU_LIB_GLOB@
|
|
||||||
GLUT_LIB_GLOB = @GLUT_LIB_GLOB@
|
|
||||||
GLW_LIB_GLOB = @GLW_LIB_GLOB@
|
|
||||||
OSMESA_LIB_GLOB = @OSMESA_LIB_GLOB@
|
|
||||||
|
|
||||||
# Directories to build
|
# Directories to build
|
||||||
LIB_DIR = @LIB_DIR@
|
LIB_DIR = @LIB_DIR@
|
||||||
SRC_DIRS = @SRC_DIRS@
|
SRC_DIRS = @SRC_DIRS@
|
||||||
GLU_DIRS = @GLU_DIRS@
|
GLU_DIRS = @GLU_DIRS@
|
||||||
DRIVER_DIRS = @DRIVER_DIRS@
|
DRIVER_DIRS = @DRIVER_DIRS@
|
||||||
GALLIUM_DIRS = @GALLIUM_DIRS@
|
|
||||||
GALLIUM_AUXILIARY_DIRS = @GALLIUM_AUXILIARY_DIRS@
|
|
||||||
GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@
|
|
||||||
GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS = @GALLIUM_WINSYS_DRM_DIRS@
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@
|
|
||||||
GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
|
|
||||||
GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
|
|
||||||
|
|
||||||
# Which subdirs under $(TOP)/progs/ to enter:
|
# Which subdirs under $(TOP)/progs/ to enter:
|
||||||
PROGRAM_DIRS = @PROGRAM_DIRS@
|
PROGRAM_DIRS = @PROGRAM_DIRS@
|
||||||
|
|
||||||
@@ -93,7 +74,6 @@ MOTIF_CFLAGS = @MOTIF_CFLAGS@
|
|||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
|
||||||
$(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@
|
$(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@
|
||||||
EGL_LIB_DEPS = $(EXTRA_LIB_PATH) @EGL_LIB_DEPS@
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \
|
||||||
$(EXTRA_LIB_PATH) @GLU_LIB_DEPS@
|
$(EXTRA_LIB_PATH) @GLU_LIB_DEPS@
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \
|
||||||
@@ -126,9 +106,6 @@ DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
|
|||||||
# Where libGL will look for DRI hardware drivers
|
# Where libGL will look for DRI hardware drivers
|
||||||
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
||||||
|
|
||||||
# Xorg driver install directory (for xorg state-tracker)
|
|
||||||
XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
|
|
||||||
|
|
||||||
# pkg-config substitutions
|
# pkg-config substitutions
|
||||||
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
||||||
GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ ifeq ($(CPU), x86)
|
|||||||
-DUSE_3DNOW_ASM \
|
-DUSE_3DNOW_ASM \
|
||||||
-DUSE_SSE_ASM
|
-DUSE_SSE_ASM
|
||||||
|
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
@@ -90,7 +90,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = gallium mesa glu glut/beos glew
|
SRC_DIRS = mesa glu glut/beos
|
||||||
GLU_DIRS = sgi
|
GLU_DIRS = sgi
|
||||||
DRIVER_DIRS = beos
|
DRIVER_DIRS = beos
|
||||||
PROGRAM_DIRS = beos samples redbook demos tests
|
PROGRAM_DIRS = beos samples redbook demos tests
|
||||||
|
|||||||
@@ -6,11 +6,9 @@ CONFIG_NAME = darwin
|
|||||||
|
|
||||||
INSTALL_DIR = /usr/X11
|
INSTALL_DIR = /usr/X11
|
||||||
|
|
||||||
X11_DIR = $(INSTALL_DIR)
|
|
||||||
|
|
||||||
# Compiler and flags
|
# Compiler and flags
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = gcc
|
||||||
PIC_FLAGS = -fPIC
|
PIC_FLAGS = -fPIC
|
||||||
DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \
|
DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \
|
||||||
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS \
|
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS \
|
||||||
@@ -23,9 +21,9 @@ DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \
|
|||||||
ARCH_FLAGS += $(RC_CFLAGS)
|
ARCH_FLAGS += $(RC_CFLAGS)
|
||||||
|
|
||||||
CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \
|
CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \
|
||||||
-I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
-I$(INSTALL_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
||||||
CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing \
|
CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing \
|
||||||
-I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
-I$(INSTALL_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.dylib
|
GL_LIB_NAME = libGL.dylib
|
||||||
@@ -41,15 +39,15 @@ GLUT_LIB_GLOB = libglut.*dylib
|
|||||||
GLW_LIB_GLOB = libGLw.*dylib
|
GLW_LIB_GLOB = libGLw.*dylib
|
||||||
OSMESA_LIB_GLOB = libOSMesa.*dylib
|
OSMESA_LIB_GLOB = libOSMesa.*dylib
|
||||||
|
|
||||||
GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXt
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm
|
APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|
||||||
# omit glw lib for now:
|
# omit glw lib for now:
|
||||||
SRC_DIRS = glx/x11 mesa glu glut/glx glew
|
SRC_DIRS = glx/x11 mesa glu glut/glx
|
||||||
GLU_DIRS = sgi
|
GLU_DIRS = sgi
|
||||||
DRIVER_DIRS = osmesa
|
DRIVER_DIRS = osmesa
|
||||||
#DRIVER_DIRS = dri
|
#DRIVER_DIRS = dri
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
# Configuration for Darwin / MacOS X, making dynamic libs
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = darwin
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = cc
|
|
||||||
CXX = cc
|
|
||||||
CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
|
||||||
-I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
|
||||||
CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
|
||||||
-I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
|
||||||
GL_LIB_NAME = libGL.dylib
|
|
||||||
GLU_LIB_NAME = libGLU.dylib
|
|
||||||
GLUT_LIB_NAME = libglut.dylib
|
|
||||||
GLW_LIB_NAME = libGLw.dylib
|
|
||||||
OSMESA_LIB_NAME = libOSMesa.dylib
|
|
||||||
|
|
||||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
|
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext
|
|
||||||
GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
|
||||||
|
|
||||||
# omit glw lib for now:
|
|
||||||
SRC_DIRS = gallium mesa glu glut/glx glew
|
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ CONFIG_NAME = default
|
|||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
MESA_MAJOR=7
|
MESA_MAJOR=7
|
||||||
MESA_MINOR=7
|
MESA_MINOR=3
|
||||||
MESA_TINY=0
|
MESA_TINY=0
|
||||||
MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
||||||
|
|
||||||
@@ -19,16 +19,11 @@ DRM_SOURCE_PATH=$(TOP)/../drm
|
|||||||
# Compiler and flags
|
# Compiler and flags
|
||||||
CC = cc
|
CC = cc
|
||||||
CXX = CC
|
CXX = CC
|
||||||
HOST_CC = $(CC)
|
|
||||||
CFLAGS = -O
|
CFLAGS = -O
|
||||||
CXXFLAGS = -O
|
CXXFLAGS = -O
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
GLU_CFLAGS =
|
GLU_CFLAGS =
|
||||||
|
|
||||||
# Compiler for building demos/tests/etc
|
|
||||||
APP_CC = $(CC)
|
|
||||||
APP_CXX = $(CXX)
|
|
||||||
|
|
||||||
# Misc tools and flags
|
# Misc tools and flags
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
MKLIB = $(SHELL) $(TOP)/bin/mklib
|
MKLIB = $(SHELL) $(TOP)/bin/mklib
|
||||||
@@ -36,10 +31,7 @@ MKLIB_OPTIONS =
|
|||||||
MKDEP = makedepend
|
MKDEP = makedepend
|
||||||
MKDEP_OPTIONS = -fdepend
|
MKDEP_OPTIONS = -fdepend
|
||||||
MAKE = make
|
MAKE = make
|
||||||
|
INSTALL = $(SHELL) $(TOP)/bin/minstall
|
||||||
# Use MINSTALL for installing libraries, INSTALL for everything else
|
|
||||||
MINSTALL = $(SHELL) $(TOP)/bin/minstall
|
|
||||||
INSTALL = $(MINSTALL)
|
|
||||||
|
|
||||||
# Tools for regenerating glapi (generally only needed by the developers)
|
# Tools for regenerating glapi (generally only needed by the developers)
|
||||||
PYTHON2 = python
|
PYTHON2 = python
|
||||||
@@ -51,7 +43,6 @@ INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
|
|||||||
GL_LIB = GL
|
GL_LIB = GL
|
||||||
GLU_LIB = GLU
|
GLU_LIB = GLU
|
||||||
GLUT_LIB = glut
|
GLUT_LIB = glut
|
||||||
GLEW_LIB = GLEW
|
|
||||||
GLW_LIB = GLw
|
GLW_LIB = GLw
|
||||||
OSMESA_LIB = OSMesa
|
OSMESA_LIB = OSMesa
|
||||||
|
|
||||||
@@ -60,7 +51,6 @@ OSMESA_LIB = OSMesa
|
|||||||
GL_LIB_NAME = lib$(GL_LIB).so
|
GL_LIB_NAME = lib$(GL_LIB).so
|
||||||
GLU_LIB_NAME = lib$(GLU_LIB).so
|
GLU_LIB_NAME = lib$(GLU_LIB).so
|
||||||
GLUT_LIB_NAME = lib$(GLUT_LIB).so
|
GLUT_LIB_NAME = lib$(GLUT_LIB).so
|
||||||
GLEW_LIB_NAME = lib$(GLEW_LIB).a
|
|
||||||
GLW_LIB_NAME = lib$(GLW_LIB).so
|
GLW_LIB_NAME = lib$(GLW_LIB).so
|
||||||
OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
||||||
|
|
||||||
@@ -72,7 +62,7 @@ GLW_LIB_GLOB = $(GLW_LIB_NAME)*
|
|||||||
OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
|
OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
|
||||||
|
|
||||||
# Optional assembly language optimization files for libGL
|
# Optional assembly language optimization files for libGL
|
||||||
MESA_ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
||||||
# order to build the Motif widget too)
|
# order to build the Motif widget too)
|
||||||
@@ -82,35 +72,20 @@ MOTIF_CFLAGS = -I/usr/include/Motif1.2
|
|||||||
|
|
||||||
# Directories to build
|
# Directories to build
|
||||||
LIB_DIR = lib
|
LIB_DIR = lib
|
||||||
SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw
|
SRC_DIRS = mesa glu glut/glx glw
|
||||||
GLU_DIRS = sgi
|
GLU_DIRS = sgi
|
||||||
DRIVER_DIRS = x11 osmesa
|
DRIVER_DIRS = x11 osmesa
|
||||||
# Which subdirs under $(TOP)/progs/ to enter:
|
# Which subdirs under $(TOP)/progs/ to enter:
|
||||||
PROGRAM_DIRS = demos redbook samples glsl xdemos
|
PROGRAM_DIRS = demos redbook samples glsl xdemos
|
||||||
|
|
||||||
# EGL directories
|
|
||||||
EGL_DRIVERS_DIRS = demo
|
|
||||||
|
|
||||||
# Gallium directories and
|
|
||||||
GALLIUM_DIRS = auxiliary drivers state_trackers
|
|
||||||
GALLIUM_AUXILIARY_DIRS = rbug draw translate cso_cache pipebuffer tgsi sct rtasm util indices
|
|
||||||
GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
|
|
||||||
GALLIUM_DRIVERS_DIRS = softpipe i915simple failover trace identity
|
|
||||||
GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
|
|
||||||
GALLIUM_WINSYS_DIRS = xlib egl_xlib
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS =
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS = glx
|
|
||||||
|
|
||||||
|
|
||||||
# Library dependencies
|
# Library dependencies
|
||||||
#EXTRA_LIB_PATH ?=
|
#EXTRA_LIB_PATH ?=
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
||||||
EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -ldl -lpthread
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXi -lm
|
||||||
GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
|
||||||
GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
|
|
||||||
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
|
||||||
|
|
||||||
# Program dependencies - specific GL/glut libraries added in Makefiles
|
# Program dependencies - specific GL/glut libraries added in Makefiles
|
||||||
APP_LIB_DEPS = -lm
|
APP_LIB_DEPS = -lm
|
||||||
@@ -125,9 +100,6 @@ DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
|
|||||||
# Where libGL will look for DRI hardware drivers
|
# Where libGL will look for DRI hardware drivers
|
||||||
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
||||||
|
|
||||||
# Xorg driver install directory (for xorg state-tracker)
|
|
||||||
XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
|
|
||||||
|
|
||||||
# pkg-config substitutions
|
# pkg-config substitutions
|
||||||
GL_PC_REQ_PRIV =
|
GL_PC_REQ_PRIV =
|
||||||
GL_PC_LIB_PRIV =
|
GL_PC_LIB_PRIV =
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ CFLAGS += -fno-strict-aliasing
|
|||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
MESA_ASM_SOURCES =
|
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
||||||
@@ -41,7 +40,7 @@ GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
|
|||||||
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = glx/x11 gallium mesa glu glut/glx glew glw
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS =
|
||||||
WINDOW_SYSTEM=dri
|
WINDOW_SYSTEM=dri
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ include $(TOP)/configs/freebsd-dri
|
|||||||
CONFIG_NAME = freebsd-dri-x86-64
|
CONFIG_NAME = freebsd-dri-x86-64
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_64_ASM
|
ASM_FLAGS = -DUSE_X86_64_ASM
|
||||||
MESA_ASM_SOURCES = $(X86-64_SOURCES)
|
ASM_SOURCES = $(X86-64_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86-64_API)
|
ASM_API = $(X86-64_API)
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ CONFIG_NAME = freebsd-dri-x86
|
|||||||
PIC_FLAGS =
|
PIC_FLAGS =
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
|||||||
|
|
||||||
X11_INCLUDES = -I/usr/X11R6/include
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
CFLAGS = -Wall -Wmissing-prototypes -Wdeclaration-after-statement \
|
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
|
||||||
$(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
|
$(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
|
||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
|
|||||||
@@ -1,67 +0,0 @@
|
|||||||
# linux-cell (non-debug build)
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-cell
|
|
||||||
|
|
||||||
|
|
||||||
# Omiting other gallium drivers:
|
|
||||||
GALLIUM_DRIVERS_DIRS = cell softpipe trace
|
|
||||||
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = ppu32-gcc
|
|
||||||
CXX = ppu32-g++
|
|
||||||
HOST_CC = gcc
|
|
||||||
APP_CC = gcc
|
|
||||||
APP_CXX = g++
|
|
||||||
|
|
||||||
OPT_FLAGS = -O3
|
|
||||||
|
|
||||||
# Cell SDK location
|
|
||||||
## For SDK 2.1: (plus, remove -DSPU_MAIN_PARAM_LONG_LONG below)
|
|
||||||
#SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
|
|
||||||
## For SDK 3.0:
|
|
||||||
SDK = /opt/cell/sdk/usr
|
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = $(OPT_FLAGS) -Wall -Winline -Wmissing-prototypes \
|
|
||||||
-fPIC -m32 -std=c99 -mabi=altivec -maltivec \
|
|
||||||
-I. -I$(SDK)/include \
|
|
||||||
-DGALLIUM_CELL -DUSE_XSHM -D_BSD_SOURCE -D_SVID_SOURCE
|
|
||||||
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
|
||||||
|
|
||||||
# Omitting glw here:
|
|
||||||
SRC_DIRS = gallium mesa gallium/winsys glu glut/glx glew
|
|
||||||
|
|
||||||
# Build no traditional Mesa drivers:
|
|
||||||
DRIVER_DIRS =
|
|
||||||
|
|
||||||
|
|
||||||
MKDEP_OPTIONS = -fdepend -Y
|
|
||||||
|
|
||||||
|
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
|
|
||||||
-L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
|
|
||||||
|
|
||||||
|
|
||||||
CELL_SPU_LIB = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a
|
|
||||||
|
|
||||||
|
|
||||||
### SPU stuff
|
|
||||||
|
|
||||||
SPU_CC = spu-gcc
|
|
||||||
|
|
||||||
SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main \
|
|
||||||
-I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \
|
|
||||||
-DSPU_MAIN_PARAM_LONG_LONG \
|
|
||||||
-include spu_intrinsics.h
|
|
||||||
|
|
||||||
SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc -lm
|
|
||||||
|
|
||||||
SPU_AR = ppu-ar
|
|
||||||
SPU_AR_FLAGS = -qcs
|
|
||||||
|
|
||||||
SPU_EMBED = ppu32-embedspu
|
|
||||||
SPU_EMBED_FLAGS = -m32
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# linux-cell-debug
|
|
||||||
|
|
||||||
include $(TOP)/configs/linux-cell
|
|
||||||
|
|
||||||
# just override name and OPT_FLAGS here:
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-cell-debug
|
|
||||||
|
|
||||||
OPT_FLAGS = -g -DDEBUG
|
|
||||||
|
|
||||||
@@ -21,12 +21,12 @@ HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
|
|||||||
ifeq ($(HAVE_X86), yes)
|
ifeq ($(HAVE_X86), yes)
|
||||||
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = gallium mesa glu glut/directfb glew
|
SRC_DIRS = mesa glu glut/directfb
|
||||||
GLU_DIRS = sgi
|
GLU_DIRS = sgi
|
||||||
DRIVER_DIRS = directfb
|
DRIVER_DIRS = directfb
|
||||||
PROGRAM_DIRS = demos directfb
|
PROGRAM_DIRS = demos directfb
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ CXX = g++
|
|||||||
#MKDEP = gcc -M
|
#MKDEP = gcc -M
|
||||||
#MKDEP_OPTIONS = -MF depend
|
#MKDEP_OPTIONS = -MF depend
|
||||||
|
|
||||||
OPT_FLAGS = -O2 -g
|
OPT_FLAGS = -O -g
|
||||||
PIC_FLAGS = -fPIC
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||||
@@ -38,30 +38,37 @@ GLUT_CFLAGS = -fexceptions
|
|||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
MESA_ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
|
|
||||||
LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
|
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
||||||
LIBDRM_LIB = $(shell pkg-config --libs libdrm)
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
||||||
-lm -lpthread -ldl $(LIBDRM_LIB)
|
-lm -lpthread -ldl $(LIBDRM_LIB)
|
||||||
|
|
||||||
|
|
||||||
# Directories
|
# This is now 0 by default since it seems to confuse the hell out of people
|
||||||
SRC_DIRS := glx/x11 egl $(SRC_DIRS)
|
# and generate a lot of extra noise on bugzilla. If you need to build with
|
||||||
PROGRAM_DIRS := egl $(PROGRAM_DIRS)
|
# EGL, do 'make linux-dri USING_EGL=1'
|
||||||
|
|
||||||
# EGL directories
|
USING_EGL=0
|
||||||
EGL_DRIVERS_DIRS = demo glx
|
|
||||||
|
# Directories
|
||||||
|
ifeq ($(USING_EGL), 1)
|
||||||
|
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
||||||
|
PROGRAM_DIRS = egl xdemos
|
||||||
|
else
|
||||||
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
|
PROGRAM_DIRS = xdemos
|
||||||
|
endif
|
||||||
|
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
WINDOW_SYSTEM = dri
|
WINDOW_SYSTEM=dri
|
||||||
GALLIUM_WINSYS_DIRS = drm
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS = intel
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS = egl
|
|
||||||
|
|
||||||
|
# gamma are missing because they have not been converted to use the new
|
||||||
|
# interface.
|
||||||
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
|
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
|
||||||
savage sis tdfx trident unichrome ffb swrast
|
savage sis tdfx trident unichrome ffb
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ OPT_FLAGS = -Os -mcpu=603
|
|||||||
PIC_FLAGS = -fPIC
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_PPC_ASM -DUSE_VMX_ASM
|
ASM_FLAGS = -DUSE_PPC_ASM -DUSE_VMX_ASM
|
||||||
MESA_ASM_SOURCES = $(PPC_SOURCES)
|
ASM_SOURCES = $(PPC_SOURCES)
|
||||||
|
|
||||||
# Build only the drivers for cards that exist on PowerPC. At some point MGA
|
# Build only the drivers for cards that exist on PowerPC. At some point MGA
|
||||||
# will be added, but not yet.
|
# will be added, but not yet.
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ include $(TOP)/configs/linux-dri
|
|||||||
|
|
||||||
CONFIG_NAME = linux-dri-x86
|
CONFIG_NAME = linux-dri-x86
|
||||||
|
|
||||||
ARCH_FLAGS = -m32 -mmmx -msse -msse2
|
# Add -m32 to CFLAGS:
|
||||||
|
ARCH_FLAGS = -m32
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ CONFIG_NAME = linux-dri-x86-64
|
|||||||
ARCH_FLAGS = -m64
|
ARCH_FLAGS = -m64
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_64_ASM
|
ASM_FLAGS = -DUSE_X86_64_ASM
|
||||||
MESA_ASM_SOURCES = $(X86-64_SOURCES)
|
ASM_SOURCES = $(X86-64_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86-64_API)
|
ASM_API = $(X86-64_API)
|
||||||
|
|
||||||
LIB_DIR = lib64
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
|||||||
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
||||||
-DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
|
-DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
X11_INCLUDES = $(shell pkg-config --cflags-only-I x11) $(shell pkg-config --cflags-only-I xcb) $(shell pkg-config --cflags-only-I x11-xcb) $(shell pkg-config --cflags-only-I xcb-glx)
|
X11_INCLUDES = `pkg-config --cflags-only-I x11` `pkg-config --cflags-only-I xcb` `pkg-config --cflags-only-I x11-xcb` `pkg-config --cflags-only-I xcb-glx`
|
||||||
|
|
||||||
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
||||||
$(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
|
$(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
|
||||||
@@ -36,16 +36,17 @@ CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
MESA_ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11)
|
EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
|
||||||
|
|
||||||
LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
|
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
||||||
LIBDRM_LIB = $(shell pkg-config --libs libdrm)
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
||||||
$(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx)
|
-lm -lpthread -ldl $(LIBDRM_LIB) `pkg-config --libs xcb` \
|
||||||
|
`pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx`
|
||||||
|
|
||||||
|
|
||||||
# This is now 0 by default since it seems to confuse the hell out of people
|
# This is now 0 by default since it seems to confuse the hell out of people
|
||||||
@@ -56,10 +57,10 @@ USING_EGL=0
|
|||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
ifeq ($(USING_EGL), 1)
|
ifeq ($(USING_EGL), 1)
|
||||||
SRC_DIRS = egl glx/x11 gallium mesa glu glut/glx glew glw
|
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = egl
|
PROGRAM_DIRS = egl xdemos
|
||||||
else
|
else
|
||||||
SRC_DIRS = glx/x11 gallium mesa glu glut/glx glew glw
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = xdemos
|
PROGRAM_DIRS = xdemos
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
# -*-makefile-*-
|
|
||||||
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-dri
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = gcc
|
|
||||||
CXX = g++
|
|
||||||
|
|
||||||
#MKDEP = /usr/X11R6/bin/makedepend
|
|
||||||
#MKDEP = gcc -M
|
|
||||||
#MKDEP_OPTIONS = -MF depend
|
|
||||||
|
|
||||||
OPT_FLAGS = -O -g
|
|
||||||
PIC_FLAGS = -fPIC
|
|
||||||
|
|
||||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
|
||||||
ARCH_FLAGS ?=
|
|
||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE \
|
|
||||||
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
|
||||||
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
|
||||||
-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
X11_INCLUDES = -I/usr/X11R6/include
|
|
||||||
|
|
||||||
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
|
||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|
||||||
|
|
||||||
|
|
||||||
MESA_ASM_SOURCES =
|
|
||||||
|
|
||||||
# Library/program dependencies
|
|
||||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
|
||||||
|
|
||||||
LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
|
|
||||||
LIBDRM_LIB = $(shell pkg-config --libs libdrm)
|
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
|
||||||
-lm -lpthread -ldl \
|
|
||||||
$(LIBDRM_LIB)
|
|
||||||
|
|
||||||
|
|
||||||
# This is now 0 by default since it seems to confuse the hell out of people
|
|
||||||
# and generate a lot of extra noise on bugzilla. If you need to build with
|
|
||||||
# EGL, do 'make linux-dri USING_EGL=1'
|
|
||||||
|
|
||||||
USING_EGL=0
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SRC_DIRS = gallium mesa gallium/winsys glu egl
|
|
||||||
PROGRAM_DIRS = egl
|
|
||||||
|
|
||||||
DRIVER_DIRS = dri
|
|
||||||
WINDOW_SYSTEM = dri
|
|
||||||
GALLIUM_WINSYS_DIRS = egl_drm
|
|
||||||
|
|
||||||
# gamma are missing because they have not been converted to use the new
|
|
||||||
# interface.
|
|
||||||
DRI_DIRS = intel
|
|
||||||
@@ -9,7 +9,7 @@ CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID
|
|||||||
# Work around aliasing bugs - developers should comment this out
|
# Work around aliasing bugs - developers should comment this out
|
||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
SRC_DIRS = gallium mesa glu glut/fbdev glew
|
SRC_DIRS = mesa glu glut/fbdev
|
||||||
DRIVER_DIRS = fbdev osmesa
|
DRIVER_DIRS = fbdev osmesa
|
||||||
PROGRAM_DIRS = fbdev demos redbook samples
|
PROGRAM_DIRS = fbdev demos redbook samples
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
|||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
||||||
|
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ GL_LIB_DEPS =
|
|||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm -lpthread -lcxa -lunwind
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm -lpthread -lcxa -lunwind
|
||||||
|
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
MESA_ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
@@ -47,7 +47,7 @@ GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
|
|||||||
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = glx/x11 glu glut/glx glew glw
|
SRC_DIRS = glx/x11 glu glut/glx glw
|
||||||
DRIVER_DIRS =
|
DRIVER_DIRS =
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS =
|
||||||
WINDOW_SYSTEM=dri
|
WINDOW_SYSTEM=dri
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
# -*-makefile-*-
|
|
||||||
# Configuration for Linux and LLVM with debugging info
|
|
||||||
# Builds the llvmpipe gallium driver
|
|
||||||
|
|
||||||
include $(TOP)/configs/linux
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-llvm
|
|
||||||
|
|
||||||
#GALLIUM_AUXILIARY_DIRS += gallivm
|
|
||||||
|
|
||||||
# Add llvmpipe driver
|
|
||||||
GALLIUM_DRIVERS_DIRS += llvmpipe
|
|
||||||
|
|
||||||
OPT_FLAGS = -g -ansi -pedantic
|
|
||||||
DEFINES += -DDEBUG -DDEBUG_MATH -DGALLIUM_LLVMPIPE -DHAVE_UDIS86
|
|
||||||
|
|
||||||
# override -std=c99
|
|
||||||
CFLAGS += -std=gnu99
|
|
||||||
|
|
||||||
LLVM_VERSION := $(shell llvm-config --version)
|
|
||||||
|
|
||||||
ifeq ($(LLVM_VERSION),)
|
|
||||||
$(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
|
|
||||||
MESA_LLVM=0
|
|
||||||
else
|
|
||||||
MESA_LLVM=1
|
|
||||||
# $(info Using LLVM version: $(LLVM_VERSION))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(MESA_LLVM),1)
|
|
||||||
# LLVM_CFLAGS=`llvm-config --cflags`
|
|
||||||
LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long
|
|
||||||
LLVM_LDFLAGS = $(shell llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation)
|
|
||||||
LLVM_LIBS = $(shell llvm-config --libs backend bitreader engine ipo interpreter instrumentation)
|
|
||||||
MKLIB_OPTIONS=-cplusplus
|
|
||||||
else
|
|
||||||
LLVM_CFLAGS=
|
|
||||||
LLVM_CXXFLAGS=
|
|
||||||
endif
|
|
||||||
|
|
||||||
LD = g++
|
|
||||||
GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++ -ludis86
|
|
||||||
@@ -17,7 +17,7 @@ CFLAGS += -fno-strict-aliasing
|
|||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = gallium mesa glu
|
SRC_DIRS = mesa glu
|
||||||
DRIVER_DIRS = osmesa
|
DRIVER_DIRS = osmesa
|
||||||
PROGRAM_DIRS = osdemos
|
PROGRAM_DIRS = osdemos
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
# Configuration for building static libOSMesa.a on Linux, no Xlib driver
|
|
||||||
# This doesn't really have any Linux dependencies, so it should be usable
|
|
||||||
# on other (gcc-based) systems.
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-osmesa
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = gcc -m32
|
|
||||||
CXX = g++ -m32
|
|
||||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS
|
|
||||||
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
|
||||||
GL_LIB_NAME = libGL.a
|
|
||||||
GLU_LIB_NAME = libGLU.a
|
|
||||||
GLUT_LIB_NAME = libglut.a
|
|
||||||
GLW_LIB_NAME = libGLw.a
|
|
||||||
OSMESA_LIB_NAME = libOSMesa.a
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SRC_DIRS = mesa glu
|
|
||||||
DRIVER_DIRS = osmesa
|
|
||||||
PROGRAM_DIRS = osdemos
|
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
GL_LIB_DEPS =
|
|
||||||
OSMESA_LIB_DEPS =
|
|
||||||
GLU_LIB_DEPS =
|
|
||||||
GLUT_LIB_DEPS =
|
|
||||||
GLW_LIB_DEPS =
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \
|
|
||||||
$(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
|
||||||
@@ -20,7 +20,7 @@ OSMESA_LIB_NAME = libOSMesa16.so
|
|||||||
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = gallium mesa glu
|
SRC_DIRS = mesa glu
|
||||||
DRIVER_DIRS = osmesa
|
DRIVER_DIRS = osmesa
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS =
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ OSMESA_LIB_NAME = libOSMesa16.a
|
|||||||
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = gallium mesa glu
|
SRC_DIRS = mesa glu
|
||||||
DRIVER_DIRS = osmesa
|
DRIVER_DIRS = osmesa
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS =
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ OSMESA_LIB_NAME = libOSMesa32.so
|
|||||||
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = gallium mesa glu
|
SRC_DIRS = mesa glu
|
||||||
DRIVER_DIRS = osmesa
|
DRIVER_DIRS = osmesa
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS =
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,29 @@
|
|||||||
# Configuration for profiling on Linux with gprof
|
# Configuration for profiling on Linux with gprof
|
||||||
|
|
||||||
include $(TOP)/configs/linux-static
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
CONFIG_NAME = linux-profile
|
CONFIG_NAME = linux-profile
|
||||||
|
|
||||||
OPT_FLAGS = -pg -g -O2
|
# Compiler and flags
|
||||||
DEFINES += -DNDEBUG
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
CFLAGS = -pg -O -ansi -pedantic -Wall -Wmissing-prototypes -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM -DPTHREADS -DDEBUG
|
||||||
|
|
||||||
|
CXXFLAGS = -pg -O -ansi -pedantic -Wall -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -DDEBUG
|
||||||
|
|
||||||
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# Need to have -L/usr/X11R6/lib in these:
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -L/usr/X11R6/lib -lX11
|
||||||
|
|
||||||
|
# Need to make static libs for profiling:
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
GL_LIB_NAME = lib$(GL_LIB).a
|
||||||
|
GLU_LIB_NAME = lib$(GLU_LIB).a
|
||||||
|
GLUT_LIB_NAME = lib$(GLUT_LIB).a
|
||||||
|
GLW_LIB_NAME = lib$(GLW_LIB).a
|
||||||
|
OSMESA_LIB_NAME = lib$(OSMesa).a
|
||||||
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ PIC_FLAGS = -fPIC
|
|||||||
ARCH_FLAGS ?=
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
# DRM and pciaccess
|
# DRM and pciaccess
|
||||||
LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
|
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
||||||
LIBDRM_LIB = $(shell pkg-config --libs libdrm)
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
PCIACCESS_CFLAGS = $(shell pkg-config --cflags pciaccess)
|
PCIACCESS_CFLAGS = `pkg-config --cflags pciaccess`
|
||||||
PCIACCESS_LIB = $(shell pkg-config --libs pciaccess)
|
PCIACCESS_LIB = `pkg-config --libs pciaccess`
|
||||||
|
|
||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
@@ -36,7 +36,7 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
MESA_ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB)
|
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB)
|
||||||
@@ -46,7 +46,7 @@ GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
|||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = glx/mini gallium mesa glu glut/mini glew
|
SRC_DIRS = glx/mini mesa glu glut/mini
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
PROGRAM_DIRS = miniglx
|
PROGRAM_DIRS = miniglx
|
||||||
|
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ include $(TOP)/configs/linux-solo
|
|||||||
CONFIG_NAME = linux-solo-x86
|
CONFIG_NAME = linux-solo-x86
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ include $(TOP)/configs/linux
|
|||||||
CONFIG_NAME = linux-sparc
|
CONFIG_NAME = linux-sparc
|
||||||
|
|
||||||
#ASM_FLAGS = -DUSE_SPARC_ASM
|
#ASM_FLAGS = -DUSE_SPARC_ASM
|
||||||
#MESA_ASM_SOURCES = $(SPARC_SOURCES)
|
#ASM_SOURCES = $(SPARC_SOURCES)
|
||||||
#GLAPI_ASM_SOURCES = $(SPARC_API)
|
#ASM_API = $(SPARC_API)
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ GLUT_LIB_DEPS =
|
|||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
|
|
||||||
# Need to specify all libraries we may need
|
# Need to specify all libraries we may need
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) \
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \
|
||||||
-l$(GL_LIB) -lm -L/usr/X11R6/lib/ -lX11 -lXext -lXmu -lXi -lpthread
|
-lstdc++ -lm
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ include $(TOP)/configs/linux
|
|||||||
|
|
||||||
CONFIG_NAME = linux-x86
|
CONFIG_NAME = linux-x86
|
||||||
|
|
||||||
ARCH_FLAGS = -m32 -mmmx -msse -msse2
|
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ CONFIG_NAME = linux-x86-64
|
|||||||
|
|
||||||
ARCH_FLAGS = -m64
|
ARCH_FLAGS = -m64
|
||||||
|
|
||||||
MESA_ASM_SOURCES = $(X86-64_SOURCES)
|
ASM_SOURCES = $(X86-64_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86-64_API)
|
ASM_API = $(X86-64_API)
|
||||||
ASM_FLAGS = -DUSE_X86_64_ASM
|
ASM_FLAGS = -DUSE_X86_64_ASM
|
||||||
|
|
||||||
LIB_DIR = lib64
|
LIB_DIR = lib64
|
||||||
|
|||||||
@@ -4,5 +4,4 @@ include $(TOP)/configs/linux-x86-64
|
|||||||
|
|
||||||
CONFIG_NAME = linux-x86-64-debug
|
CONFIG_NAME = linux-x86-64-debug
|
||||||
|
|
||||||
OPT_FLAGS = -g
|
|
||||||
DEFINES += -DDEBUG -DDEBUG_MATH
|
DEFINES += -DDEBUG -DDEBUG_MATH
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
# Configuration for profiling on Linux for 64-bit X86 (Opteron) with gprof
|
|
||||||
|
|
||||||
include $(TOP)/configs/linux-x86-64-static
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-x86-64-profile
|
|
||||||
|
|
||||||
OPT_FLAGS = -pg -g -O2
|
|
||||||
DEFINES += -DNDEBUG
|
|
||||||
@@ -20,8 +20,5 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \
|
||||||
# Need to specify all libraries we may need
|
-lstdc++ -lm
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -Wl,--start-group \
|
|
||||||
-l$(GL_LIB) $(TOP)/src/mesa/pipe/softpipe/libsoftpipe.a -Wl,--end-group \
|
|
||||||
$(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ GLUT_CFLAGS = -fexceptions
|
|||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
MESA_ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
# Configuration for profiling on Linux with x86 optimizations with gprof
|
|
||||||
|
|
||||||
include $(TOP)/configs/linux-x86-static
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-x86-profile
|
|
||||||
|
|
||||||
OPT_FLAGS = -pg -g -O2
|
|
||||||
DEFINES += -DNDEBUG
|
|
||||||
@@ -20,7 +20,5 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \
|
||||||
# Need to specify all libraries we may need
|
-lstdc++ -lm
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) \
|
|
||||||
-l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
|
||||||
|
|||||||
82
configs/mine
82
configs/mine
@@ -1,82 +0,0 @@
|
|||||||
# -*-makefile-*-
|
|
||||||
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = mine
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = ccache gcc
|
|
||||||
CXX = ccache g++
|
|
||||||
|
|
||||||
#MKDEP = /usr/X11R6/bin/makedepend
|
|
||||||
#MKDEP = gcc -M
|
|
||||||
#MKDEP_OPTIONS = -MF depend
|
|
||||||
|
|
||||||
OPT_FLAGS = -O0 -g
|
|
||||||
PIC_FLAGS = -fPIC
|
|
||||||
|
|
||||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
|
||||||
ARCH_FLAGS ?=
|
|
||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE \
|
|
||||||
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 \
|
|
||||||
-DGLX_DIRECT_RENDERING \
|
|
||||||
-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
X11_INCLUDES = -I/usr/X11R6/include
|
|
||||||
|
|
||||||
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
|
||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|
||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
MESA_ASM_SOURCES =
|
|
||||||
|
|
||||||
# Library/program dependencies
|
|
||||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
|
||||||
|
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
|
||||||
-lm -lpthread -ldl $(LIBDRM_LIB)
|
|
||||||
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SRC_DIRS = egl mesa gallium gallium/winsys
|
|
||||||
PROGRAM_DIRS := egl openvg/demos demos xdemos
|
|
||||||
|
|
||||||
# EGL directories
|
|
||||||
EGL_DRIVERS_DIRS = glx xdri
|
|
||||||
|
|
||||||
ifeq ($(USE_DRI),yes)
|
|
||||||
DEFINES += -DIN_DRI_DRIVER -DGLX_INDIRECT_RENDERING
|
|
||||||
|
|
||||||
LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
|
|
||||||
LIBDRM_LIB = $(shell pkg-config --libs libdrm)
|
|
||||||
|
|
||||||
SRC_DIRS := glx/x11 $(SRC_DIRS)
|
|
||||||
DRIVER_DIRS = dri
|
|
||||||
WINDOW_SYSTEM = dri
|
|
||||||
DRI_DIRS = i915
|
|
||||||
|
|
||||||
GALLIUM_WINSYS_DIRS = drm egl_xlib
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS = intel
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS = egl glx vega
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
DRIVER_DIRS =
|
|
||||||
WINDOW_SYSTEM =
|
|
||||||
DRI_DIRS =
|
|
||||||
|
|
||||||
GALLIUM_WINSYS_DIRS = egl_xlib xlib
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS = glx vega
|
|
||||||
|
|
||||||
endif
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# -*-makefile-*-
|
|
||||||
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
|
||||||
|
|
||||||
USE_DRI = yes
|
|
||||||
include $(TOP)/configs/mine
|
|
||||||
@@ -16,8 +16,8 @@ ARCH_FLAGS ?=
|
|||||||
|
|
||||||
DEFINES = -D_REENTRANT -DUSE_XSHM
|
DEFINES = -D_REENTRANT -DUSE_XSHM
|
||||||
|
|
||||||
MESA_ASM_SOURCES = $(SPARC_SOURCES)
|
ASM_SOURCES = $(SPARC_SOURCES)
|
||||||
GLAPI_ASM_SOURCES = $(SPARC_API)
|
ASM_API = $(SPARC_API)
|
||||||
ASM_FLAGS = -DUSE_SPARC_ASM
|
ASM_FLAGS = -DUSE_SPARC_ASM
|
||||||
|
|
||||||
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
|
|||||||
352
configure.ac
352
configure.ac
@@ -5,8 +5,12 @@ AC_PREREQ([2.59])
|
|||||||
dnl Versioning - scrape the version from configs/default
|
dnl Versioning - scrape the version from configs/default
|
||||||
m4_define([mesa_version],
|
m4_define([mesa_version],
|
||||||
[m4_esyscmd([${MAKE-make} -s -f bin/version.mk version | tr -d '\n'])])
|
[m4_esyscmd([${MAKE-make} -s -f bin/version.mk version | tr -d '\n'])])
|
||||||
m4_ifval(mesa_version,,
|
m4_ifval(mesa_version,[],[
|
||||||
[m4_fatal([Failed to get the Mesa version from `make -f bin/version.mk version`])])
|
m4_errprint([Error: Failed to get the Mesa version from the output of
|
||||||
|
running `make -f bin/version.mk version'
|
||||||
|
])
|
||||||
|
m4_exit([1])
|
||||||
|
])
|
||||||
|
|
||||||
dnl Tell the user about autoconf.html in the --help output
|
dnl Tell the user about autoconf.html in the --help output
|
||||||
m4_divert_once([HELP_END], [
|
m4_divert_once([HELP_END], [
|
||||||
@@ -18,7 +22,7 @@ AC_CONFIG_AUX_DIR([bin])
|
|||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
dnl Versions for external dependencies
|
dnl Versions for external dependencies
|
||||||
LIBDRM_REQUIRED=2.4.3
|
LIBDRM_REQUIRED=2.3.1
|
||||||
DRI2PROTO_REQUIRED=1.99.3
|
DRI2PROTO_REQUIRED=1.99.3
|
||||||
|
|
||||||
dnl Check for progs
|
dnl Check for progs
|
||||||
@@ -29,11 +33,6 @@ AC_CHECK_PROGS([MAKE], [gmake make])
|
|||||||
AC_PATH_PROG([MKDEP], [makedepend])
|
AC_PATH_PROG([MKDEP], [makedepend])
|
||||||
AC_PATH_PROG([SED], [sed])
|
AC_PATH_PROG([SED], [sed])
|
||||||
|
|
||||||
dnl Our fallback install-sh is a symlink to minstall. Use the existing
|
|
||||||
dnl configuration in that case.
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
test "x$INSTALL" = "x$ac_install_sh" && INSTALL='$(MINSTALL)'
|
|
||||||
|
|
||||||
dnl We need a POSIX shell for parts of the build. Assume we have one
|
dnl We need a POSIX shell for parts of the build. Assume we have one
|
||||||
dnl in most cases.
|
dnl in most cases.
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
@@ -47,23 +46,23 @@ esac
|
|||||||
MKDEP_OPTIONS=-fdepend
|
MKDEP_OPTIONS=-fdepend
|
||||||
dnl Ask gcc where it's keeping its secret headers
|
dnl Ask gcc where it's keeping its secret headers
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = xyes; then
|
||||||
for dir in include include-fixed; do
|
GCC_INCLUDES=`$CC -print-file-name=include`
|
||||||
GCC_INCLUDES=`$CC -print-file-name=$dir`
|
if test "x$GCC_INCLUDES" != x; then
|
||||||
if test "x$GCC_INCLUDES" != x && \
|
|
||||||
test "$GCC_INCLUDES" != "$dir" && \
|
|
||||||
test -d "$GCC_INCLUDES"; then
|
|
||||||
MKDEP_OPTIONS="$MKDEP_OPTIONS -I$GCC_INCLUDES"
|
MKDEP_OPTIONS="$MKDEP_OPTIONS -I$GCC_INCLUDES"
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
AC_SUBST([MKDEP_OPTIONS])
|
AC_SUBST([MKDEP_OPTIONS])
|
||||||
|
|
||||||
dnl Make sure the pkg-config macros are defined
|
dnl Make sure the pkg-config macros are defined
|
||||||
m4_ifndef([PKG_PROG_PKG_CONFIG],
|
m4_ifdef([PKG_PROG_PKG_CONFIG],[],[
|
||||||
[m4_fatal([Could not locate the pkg-config autoconf macros.
|
m4_errprint([Error: Could not locate the pkg-config autoconf macros.
|
||||||
These are usually located in /usr/share/aclocal/pkg.m4. If your macros
|
These are usually located in /usr/share/aclocal/pkg.m4. If your
|
||||||
are in a different location, try setting the environment variable
|
macros are in a different location, try setting the environment
|
||||||
ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
|
variable ACLOCAL="aclocal -I/other/macro/dir" before running
|
||||||
|
autoreconf.
|
||||||
|
])
|
||||||
|
m4_exit([1])
|
||||||
|
])
|
||||||
PKG_PROG_PKG_CONFIG()
|
PKG_PROG_PKG_CONFIG()
|
||||||
|
|
||||||
dnl LIB_DIR - library basename
|
dnl LIB_DIR - library basename
|
||||||
@@ -84,8 +83,11 @@ dnl Compiler macros
|
|||||||
DEFINES=""
|
DEFINES=""
|
||||||
AC_SUBST([DEFINES])
|
AC_SUBST([DEFINES])
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*|*-gnu*|gnu*)
|
*-gnu)
|
||||||
DEFINES="$DEFINES -D_GNU_SOURCE -DPTHREADS"
|
if test "x$GCC" = xyes; then
|
||||||
|
DEFINES="$DEFINES -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
|
||||||
|
fi
|
||||||
|
DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS"
|
||||||
;;
|
;;
|
||||||
solaris*)
|
solaris*)
|
||||||
DEFINES="$DEFINES -DPTHREADS -DSVR4"
|
DEFINES="$DEFINES -DPTHREADS -DSVR4"
|
||||||
@@ -126,7 +128,6 @@ AC_ARG_ENABLE([32-bit],
|
|||||||
if test "x$enable_32bit" = xyes; then
|
if test "x$enable_32bit" = xyes; then
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = xyes; then
|
||||||
CFLAGS="$CFLAGS -m32"
|
CFLAGS="$CFLAGS -m32"
|
||||||
ARCH_FLAGS="$ARCH_FLAGS -m32"
|
|
||||||
fi
|
fi
|
||||||
if test "x$GXX" = xyes; then
|
if test "x$GXX" = xyes; then
|
||||||
CXXFLAGS="$CXXFLAGS -m32"
|
CXXFLAGS="$CXXFLAGS -m32"
|
||||||
@@ -223,42 +224,24 @@ dnl
|
|||||||
dnl library names
|
dnl library names
|
||||||
dnl
|
dnl
|
||||||
if test "$enable_static" = yes; then
|
if test "$enable_static" = yes; then
|
||||||
LIB_EXTENSION='a'
|
GL_LIB_NAME='lib$(GL_LIB).a'
|
||||||
|
GLU_LIB_NAME='lib$(GLU_LIB).a'
|
||||||
|
GLUT_LIB_NAME='lib$(GLUT_LIB).a'
|
||||||
|
GLW_LIB_NAME='lib$(GLW_LIB).a'
|
||||||
|
OSMESA_LIB_NAME='lib$(OSMESA_LIB).a'
|
||||||
else
|
else
|
||||||
case "$host_os" in
|
GL_LIB_NAME='lib$(GL_LIB).so'
|
||||||
darwin* )
|
GLU_LIB_NAME='lib$(GLU_LIB).so'
|
||||||
LIB_EXTENSION='dylib' ;;
|
GLUT_LIB_NAME='lib$(GLUT_LIB).so'
|
||||||
cygwin* )
|
GLW_LIB_NAME='lib$(GLW_LIB).so'
|
||||||
LIB_EXTENSION='dll' ;;
|
OSMESA_LIB_NAME='lib$(OSMESA_LIB).so'
|
||||||
* )
|
|
||||||
LIB_EXTENSION='so' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
|
|
||||||
GLU_LIB_NAME='lib$(GLU_LIB).'${LIB_EXTENSION}
|
|
||||||
GLUT_LIB_NAME='lib$(GLUT_LIB).'${LIB_EXTENSION}
|
|
||||||
GLW_LIB_NAME='lib$(GLW_LIB).'${LIB_EXTENSION}
|
|
||||||
OSMESA_LIB_NAME='lib$(OSMESA_LIB).'${LIB_EXTENSION}
|
|
||||||
|
|
||||||
GL_LIB_GLOB='lib$(GL_LIB).*'${LIB_EXTENSION}'*'
|
|
||||||
GLU_LIB_GLOB='lib$(GLU_LIB).*'${LIB_EXTENSION}'*'
|
|
||||||
GLUT_LIB_GLOB='lib$(GLUT_LIB).*'${LIB_EXTENSION}'*'
|
|
||||||
GLW_LIB_GLOB='lib$(GLW_LIB).*'${LIB_EXTENSION}'*'
|
|
||||||
OSMESA_LIB_GLOB='lib$(OSMESA_LIB).*'${LIB_EXTENSION}'*'
|
|
||||||
|
|
||||||
AC_SUBST([GL_LIB_NAME])
|
AC_SUBST([GL_LIB_NAME])
|
||||||
AC_SUBST([GLU_LIB_NAME])
|
AC_SUBST([GLU_LIB_NAME])
|
||||||
AC_SUBST([GLUT_LIB_NAME])
|
AC_SUBST([GLUT_LIB_NAME])
|
||||||
AC_SUBST([GLW_LIB_NAME])
|
AC_SUBST([GLW_LIB_NAME])
|
||||||
AC_SUBST([OSMESA_LIB_NAME])
|
AC_SUBST([OSMESA_LIB_NAME])
|
||||||
|
|
||||||
AC_SUBST([GL_LIB_GLOB])
|
|
||||||
AC_SUBST([GLU_LIB_GLOB])
|
|
||||||
AC_SUBST([GLUT_LIB_GLOB])
|
|
||||||
AC_SUBST([GLW_LIB_GLOB])
|
|
||||||
AC_SUBST([OSMESA_LIB_GLOB])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Arch/platform-specific settings
|
dnl Arch/platform-specific settings
|
||||||
dnl
|
dnl
|
||||||
@@ -270,8 +253,8 @@ AC_ARG_ENABLE([asm],
|
|||||||
)
|
)
|
||||||
asm_arch=""
|
asm_arch=""
|
||||||
ASM_FLAGS=""
|
ASM_FLAGS=""
|
||||||
MESA_ASM_SOURCES=""
|
ASM_SOURCES=""
|
||||||
GLAPI_ASM_SOURCES=""
|
ASM_API=""
|
||||||
AC_MSG_CHECKING([whether to enable assembly])
|
AC_MSG_CHECKING([whether to enable assembly])
|
||||||
test "x$enable_asm" = xno && AC_MSG_RESULT([no])
|
test "x$enable_asm" = xno && AC_MSG_RESULT([no])
|
||||||
# disable if cross compiling on x86/x86_64 since we must run gen_matypes
|
# disable if cross compiling on x86/x86_64 since we must run gen_matypes
|
||||||
@@ -307,47 +290,34 @@ if test "x$enable_asm" = xyes; then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
sparc*)
|
|
||||||
case "$host_os" in
|
|
||||||
linux*)
|
|
||||||
asm_arch=sparc
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$asm_arch" in
|
case "$asm_arch" in
|
||||||
x86)
|
x86)
|
||||||
ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
|
ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
|
||||||
MESA_ASM_SOURCES='$(X86_SOURCES)'
|
ASM_SOURCES='$(X86_SOURCES)'
|
||||||
GLAPI_ASM_SOURCES='$(X86_API)'
|
ASM_API='$(X86_API)'
|
||||||
AC_MSG_RESULT([yes, x86])
|
AC_MSG_RESULT([yes, x86])
|
||||||
;;
|
;;
|
||||||
x86_64)
|
x86_64)
|
||||||
ASM_FLAGS="-DUSE_X86_64_ASM"
|
ASM_FLAGS="-DUSE_X86_64_ASM"
|
||||||
MESA_ASM_SOURCES='$(X86-64_SOURCES)'
|
ASM_SOURCES='$(X86-64_SOURCES)'
|
||||||
GLAPI_ASM_SOURCES='$(X86-64_API)'
|
ASM_API='$(X86-64_API)'
|
||||||
AC_MSG_RESULT([yes, x86_64])
|
AC_MSG_RESULT([yes, x86_64])
|
||||||
;;
|
;;
|
||||||
ppc)
|
ppc)
|
||||||
ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM"
|
ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM"
|
||||||
MESA_ASM_SOURCES='$(PPC_SOURCES)'
|
ASM_SOURCES='$(PPC_SOURCES)'
|
||||||
AC_MSG_RESULT([yes, ppc])
|
AC_MSG_RESULT([yes, ppc])
|
||||||
;;
|
;;
|
||||||
sparc)
|
|
||||||
ASM_FLAGS="-DUSE_SPARC_ASM"
|
|
||||||
MESA_ASM_SOURCES='$(SPARC_SOURCES)'
|
|
||||||
GLAPI_ASM_SOURCES='$(SPARC_API)'
|
|
||||||
AC_MSG_RESULT([yes, sparc])
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
AC_MSG_RESULT([no, platform not supported])
|
AC_MSG_RESULT([no, platform not supported])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
AC_SUBST([ASM_FLAGS])
|
AC_SUBST([ASM_FLAGS])
|
||||||
AC_SUBST([MESA_ASM_SOURCES])
|
AC_SUBST([ASM_SOURCES])
|
||||||
AC_SUBST([GLAPI_ASM_SOURCES])
|
AC_SUBST([ASM_API])
|
||||||
|
|
||||||
dnl PIC code macro
|
dnl PIC code macro
|
||||||
MESA_PIC_FLAGS
|
MESA_PIC_FLAGS
|
||||||
@@ -375,6 +345,17 @@ if test "x$enable_selinux" = "xyes"; then
|
|||||||
DEFINES="$DEFINES -DMESA_SELINUX"
|
DEFINES="$DEFINES -DMESA_SELINUX"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl OS-specific libraries
|
||||||
|
OS_LIBS=""
|
||||||
|
case "$host_os" in
|
||||||
|
solaris*)
|
||||||
|
OS_LIBS="-lc"
|
||||||
|
if test "x$GXX" != xyes; then
|
||||||
|
OS_CPLUSPLUS_LIBS="-lCrun $OS_LIBS"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Driver configuration. Options are xlib, dri and osmesa right now.
|
dnl Driver configuration. Options are xlib, dri and osmesa right now.
|
||||||
dnl More later: directfb, fbdev, ...
|
dnl More later: directfb, fbdev, ...
|
||||||
@@ -384,12 +365,12 @@ default_driver="xlib"
|
|||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
linux*)
|
||||||
case "$host_cpu" in
|
case "$host_cpu" in
|
||||||
i*86|x86_64|powerpc*|sparc*) default_driver="dri";;
|
i*86|x86_64|powerpc*) default_driver="dri";;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*freebsd* | dragonfly*)
|
*freebsd* | dragonfly*)
|
||||||
case "$host_cpu" in
|
case "$host_cpu" in
|
||||||
i*86|x86_64|powerpc*|sparc*) default_driver="dri";;
|
i*86|x86_64) default_driver="dri";;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -411,26 +392,17 @@ esac
|
|||||||
dnl
|
dnl
|
||||||
dnl Driver specific build directories
|
dnl Driver specific build directories
|
||||||
dnl
|
dnl
|
||||||
SRC_DIRS="mesa glew"
|
SRC_DIRS="mesa"
|
||||||
GLU_DIRS="sgi"
|
GLU_DIRS="sgi"
|
||||||
WINDOW_SYSTEM=""
|
WINDOW_SYSTEM=""
|
||||||
GALLIUM_DIRS="auxiliary drivers state_trackers"
|
|
||||||
GALLIUM_WINSYS_DIRS=""
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS=""
|
|
||||||
GALLIUM_AUXILIARY_DIRS="rbug draw translate cso_cache pipebuffer tgsi sct rtasm util indices"
|
|
||||||
GALLIUM_DRIVERS_DIRS="softpipe failover trace identity"
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS=""
|
|
||||||
|
|
||||||
case "$mesa_driver" in
|
case "$mesa_driver" in
|
||||||
xlib)
|
xlib)
|
||||||
DRIVER_DIRS="x11"
|
DRIVER_DIRS="x11"
|
||||||
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS xlib"
|
|
||||||
;;
|
;;
|
||||||
dri)
|
dri)
|
||||||
SRC_DIRS="glx/x11 $SRC_DIRS"
|
SRC_DIRS="glx/x11 $SRC_DIRS"
|
||||||
DRIVER_DIRS="dri"
|
DRIVER_DIRS="dri"
|
||||||
WINDOW_SYSTEM="dri"
|
WINDOW_SYSTEM="dri"
|
||||||
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS drm"
|
|
||||||
;;
|
;;
|
||||||
osmesa)
|
osmesa)
|
||||||
DRIVER_DIRS="osmesa"
|
DRIVER_DIRS="osmesa"
|
||||||
@@ -440,14 +412,6 @@ AC_SUBST([SRC_DIRS])
|
|||||||
AC_SUBST([GLU_DIRS])
|
AC_SUBST([GLU_DIRS])
|
||||||
AC_SUBST([DRIVER_DIRS])
|
AC_SUBST([DRIVER_DIRS])
|
||||||
AC_SUBST([WINDOW_SYSTEM])
|
AC_SUBST([WINDOW_SYSTEM])
|
||||||
AC_SUBST([GALLIUM_DIRS])
|
|
||||||
AC_SUBST([GALLIUM_WINSYS_DIRS])
|
|
||||||
AC_SUBST([GALLIUM_WINSYS_DRM_DIRS])
|
|
||||||
AC_SUBST([GALLIUM_DRIVERS_DIRS])
|
|
||||||
AC_SUBST([GALLIUM_AUXILIARY_DIRS])
|
|
||||||
AC_SUBST([GALLIUM_STATE_TRACKERS_DIRS])
|
|
||||||
AC_SUBST([RADEON_CFLAGS])
|
|
||||||
AC_SUBST([RADEON_LDFLAGS])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl User supplied program configuration
|
dnl User supplied program configuration
|
||||||
@@ -553,8 +517,8 @@ xlib)
|
|||||||
GL_PC_LIB_PRIV="$GL_LIB_DEPS"
|
GL_PC_LIB_PRIV="$GL_LIB_DEPS"
|
||||||
GL_PC_CFLAGS="$X11_INCLUDES"
|
GL_PC_CFLAGS="$X11_INCLUDES"
|
||||||
fi
|
fi
|
||||||
GL_LIB_DEPS="$GL_LIB_DEPS $SELINUX_LIBS -lm -lpthread"
|
GL_LIB_DEPS="$GL_LIB_DEPS $SELINUX_LIBS -lm -lpthread $OS_LIBS"
|
||||||
GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $SELINUX_LIBS -lm -lpthread"
|
GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $SELINUX_LIBS -lm -lpthread $OS_LIBS"
|
||||||
|
|
||||||
# if static, move the external libraries to the programs
|
# if static, move the external libraries to the programs
|
||||||
# and empty the libraries for libGL
|
# and empty the libraries for libGL
|
||||||
@@ -575,13 +539,6 @@ dri)
|
|||||||
GL_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED dri2proto >= $DRI2PROTO_REQUIRED"
|
GL_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED dri2proto >= $DRI2PROTO_REQUIRED"
|
||||||
DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED"
|
DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED"
|
||||||
|
|
||||||
PKG_CHECK_MODULES([LIBDRM_RADEON], [libdrm_radeon], HAVE_LIBDRM_RADEON=yes, HAVE_LIBDRM_RADEON=no)
|
|
||||||
|
|
||||||
if test "$HAVE_LIBDRM_RADEON" = yes; then
|
|
||||||
RADEON_CFLAGS="-DHAVE_LIBDRM_RADEON=1 $LIBDRM_RADEON_CFLAGS"
|
|
||||||
RADEON_LDFLAGS=$LIBDRM_RADEON_LIBS
|
|
||||||
fi
|
|
||||||
|
|
||||||
# find the DRI deps for libGL
|
# find the DRI deps for libGL
|
||||||
if test "$x11_pkgconfig" = yes; then
|
if test "$x11_pkgconfig" = yes; then
|
||||||
# add xcb modules if necessary
|
# add xcb modules if necessary
|
||||||
@@ -611,12 +568,12 @@ dri)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# need DRM libs, -lpthread, etc.
|
# need DRM libs, -lpthread, etc.
|
||||||
GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread $DLOPEN_LIBS"
|
GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread $DLOPEN_LIBS $OS_LIBS"
|
||||||
GL_PC_LIB_PRIV="-lm -lpthread $DLOPEN_LIBS"
|
GL_PC_LIB_PRIV="-lm -lpthread $DLOPEN_LIBS $OS_LIBS"
|
||||||
;;
|
;;
|
||||||
osmesa)
|
osmesa)
|
||||||
# No libGL for osmesa
|
# No libGL for osmesa
|
||||||
GL_LIB_DEPS=""
|
GL_LIB_DEPS="$OS_LIBS"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST([GL_LIB_DEPS])
|
AC_SUBST([GL_LIB_DEPS])
|
||||||
@@ -657,7 +614,7 @@ dnl Which drivers to build - default is chosen by platform
|
|||||||
AC_ARG_WITH([dri-drivers],
|
AC_ARG_WITH([dri-drivers],
|
||||||
[AS_HELP_STRING([--with-dri-drivers@<:@=DIRS...@:>@],
|
[AS_HELP_STRING([--with-dri-drivers@<:@=DIRS...@:>@],
|
||||||
[comma delimited DRI drivers list, e.g.
|
[comma delimited DRI drivers list, e.g.
|
||||||
"swrast,i965,radeon" @<:@default=auto@:>@])],
|
"swrast,i965,radeon,nouveau" @<:@default=auto@:>@])],
|
||||||
[with_dri_drivers="$withval"],
|
[with_dri_drivers="$withval"],
|
||||||
[with_dri_drivers=yes])
|
[with_dri_drivers=yes])
|
||||||
if test "x$with_dri_drivers" = x; then
|
if test "x$with_dri_drivers" = x; then
|
||||||
@@ -702,10 +659,10 @@ if test "$mesa_driver" = dri; then
|
|||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
linux*)
|
||||||
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
|
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
|
||||||
|
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS"
|
||||||
if test "x$driglx_direct" = xyes; then
|
if test "x$driglx_direct" = xyes; then
|
||||||
DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
|
DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
|
||||||
fi
|
fi
|
||||||
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS"
|
|
||||||
|
|
||||||
case "$host_cpu" in
|
case "$host_cpu" in
|
||||||
x86_64)
|
x86_64)
|
||||||
@@ -714,7 +671,7 @@ if test "$mesa_driver" = dri; then
|
|||||||
# because there is no x86-64 system where they could *ever*
|
# because there is no x86-64 system where they could *ever*
|
||||||
# be used.
|
# be used.
|
||||||
if test "x$DRI_DIRS" = "xyes"; then
|
if test "x$DRI_DIRS" = "xyes"; then
|
||||||
DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 r600 radeon \
|
DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \
|
||||||
savage tdfx unichrome swrast"
|
savage tdfx unichrome swrast"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -722,13 +679,13 @@ if test "$mesa_driver" = dri; then
|
|||||||
# Build only the drivers for cards that exist on PowerPC.
|
# Build only the drivers for cards that exist on PowerPC.
|
||||||
# At some point MGA will be added, but not yet.
|
# At some point MGA will be added, but not yet.
|
||||||
if test "x$DRI_DIRS" = "xyes"; then
|
if test "x$DRI_DIRS" = "xyes"; then
|
||||||
DRI_DIRS="mach64 r128 r200 r300 r600 radeon tdfx swrast"
|
DRI_DIRS="mach64 r128 r200 r300 radeon tdfx swrast"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
sparc*)
|
sparc*)
|
||||||
# Build only the drivers for cards that exist on sparc`
|
# Build only the drivers for cards that exist on sparc`
|
||||||
if test "x$DRI_DIRS" = "xyes"; then
|
if test "x$DRI_DIRS" = "xyes"; then
|
||||||
DRI_DIRS="mach64 r128 r200 r300 r600 radeon ffb swrast"
|
DRI_DIRS="mach64 r128 r200 r300 radeon ffb swrast"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -747,14 +704,10 @@ if test "$mesa_driver" = dri; then
|
|||||||
# ffb and gamma are missing because they have not been converted
|
# ffb and gamma are missing because they have not been converted
|
||||||
# to use the new interface.
|
# to use the new interface.
|
||||||
if test "x$DRI_DIRS" = "xyes"; then
|
if test "x$DRI_DIRS" = "xyes"; then
|
||||||
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \
|
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
|
||||||
unichrome savage sis swrast"
|
unichrome savage sis swrast"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
gnu*)
|
|
||||||
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
|
|
||||||
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS"
|
|
||||||
;;
|
|
||||||
solaris*)
|
solaris*)
|
||||||
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
|
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
|
||||||
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
|
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
|
||||||
@@ -766,7 +719,7 @@ if test "$mesa_driver" = dri; then
|
|||||||
|
|
||||||
# default drivers
|
# default drivers
|
||||||
if test "x$DRI_DIRS" = "xyes"; then
|
if test "x$DRI_DIRS" = "xyes"; then
|
||||||
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 r600 radeon s3v \
|
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
|
||||||
savage sis tdfx trident unichrome ffb swrast"
|
savage sis tdfx trident unichrome ffb swrast"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -843,12 +796,12 @@ case "$mesa_driver" in
|
|||||||
osmesa)
|
osmesa)
|
||||||
# only link libraries with osmesa if shared
|
# only link libraries with osmesa if shared
|
||||||
if test "$enable_static" = no; then
|
if test "$enable_static" = no; then
|
||||||
OSMESA_LIB_DEPS="-lm -lpthread $SELINUX_LIBS $DLOPEN_LIBS"
|
OSMESA_LIB_DEPS="-lm -lpthread $SELINUX_LIBS"
|
||||||
else
|
else
|
||||||
OSMESA_LIB_DEPS=""
|
OSMESA_LIB_DEPS=""
|
||||||
fi
|
fi
|
||||||
OSMESA_MESA_DEPS=""
|
OSMESA_MESA_DEPS=""
|
||||||
OSMESA_PC_LIB_PRIV="-lm -lpthread $SELINUX_LIBS $DLOPEN_LIBS"
|
OSMESA_PC_LIB_PRIV="-lm -lpthread $SELINUX_LIBS"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Link OSMesa to libGL otherwise
|
# Link OSMesa to libGL otherwise
|
||||||
@@ -862,34 +815,15 @@ osmesa)
|
|||||||
OSMESA_PC_REQ="gl"
|
OSMESA_PC_REQ="gl"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
OSMESA_PC_LIB_PRIV="$OSMESA_PC_LIB_PRIV"
|
if test "$enable_static" = no; then
|
||||||
|
OSMESA_LIB_DEPS="$OSMESA_LIB_DEPS $OS_LIBS"
|
||||||
|
fi
|
||||||
|
OSMESA_PC_LIB_PRIV="$OSMESA_PC_LIB_PRIV $OS_LIBS"
|
||||||
AC_SUBST([OSMESA_LIB_DEPS])
|
AC_SUBST([OSMESA_LIB_DEPS])
|
||||||
AC_SUBST([OSMESA_MESA_DEPS])
|
AC_SUBST([OSMESA_MESA_DEPS])
|
||||||
AC_SUBST([OSMESA_PC_REQ])
|
AC_SUBST([OSMESA_PC_REQ])
|
||||||
AC_SUBST([OSMESA_PC_LIB_PRIV])
|
AC_SUBST([OSMESA_PC_LIB_PRIV])
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl EGL configuration
|
|
||||||
dnl
|
|
||||||
AC_ARG_ENABLE([egl],
|
|
||||||
[AS_HELP_STRING([--disable-egl],
|
|
||||||
[disable EGL library @<:@default=enabled@:>@])],
|
|
||||||
[enable_egl="$enableval"],
|
|
||||||
[enable_egl=yes])
|
|
||||||
if test "x$enable_egl" = xyes; then
|
|
||||||
SRC_DIRS="$SRC_DIRS egl"
|
|
||||||
|
|
||||||
if test "$x11_pkgconfig" = yes; then
|
|
||||||
PKG_CHECK_MODULES([EGL], [x11])
|
|
||||||
EGL_LIB_DEPS="$EGL_LIBS"
|
|
||||||
else
|
|
||||||
# should check these...
|
|
||||||
EGL_LIB_DEPS="$X_LIBS -lX11"
|
|
||||||
fi
|
|
||||||
EGL_LIB_DEPS="$EGL_LIB_DEPS $DLOPEN_LIBS"
|
|
||||||
fi
|
|
||||||
AC_SUBST([EGL_LIB_DEPS])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl GLU configuration
|
dnl GLU configuration
|
||||||
dnl
|
dnl
|
||||||
@@ -997,10 +931,10 @@ if test "x$enable_glw" = xyes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If static, empty GLW_LIB_DEPS and add libs for programs to link
|
# If static, empty GLW_LIB_DEPS and add libs for programs to link
|
||||||
GLW_PC_LIB_PRIV="$GLW_PC_LIB_PRIV"
|
GLW_PC_LIB_PRIV="$GLW_PC_LIB_PRIV $OS_LIBS"
|
||||||
if test "$enable_static" = no; then
|
if test "$enable_static" = no; then
|
||||||
GLW_MESA_DEPS='-l$(GL_LIB)'
|
GLW_MESA_DEPS='-l$(GL_LIB)'
|
||||||
GLW_LIB_DEPS="$GLW_LIB_DEPS"
|
GLW_LIB_DEPS="$GLW_LIB_DEPS $OS_LIBS"
|
||||||
else
|
else
|
||||||
APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS"
|
APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS"
|
||||||
GLW_LIB_DEPS=""
|
GLW_LIB_DEPS=""
|
||||||
@@ -1056,8 +990,8 @@ if test "x$enable_glut" = xyes; then
|
|||||||
GLUT_PC_LIB_PRIV="$GLUT_LIB_DEPS"
|
GLUT_PC_LIB_PRIV="$GLUT_LIB_DEPS"
|
||||||
GLUT_PC_CFLAGS="$X11_INCLUDES"
|
GLUT_PC_CFLAGS="$X11_INCLUDES"
|
||||||
fi
|
fi
|
||||||
GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm"
|
GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm $OS_LIBS"
|
||||||
GLUT_PC_LIB_PRIV="$GLUT_PC_LIB_PRIV -lm"
|
GLUT_PC_LIB_PRIV="$GLUT_PC_LIB_PRIV -lm $OS_LIBS"
|
||||||
|
|
||||||
# If glut is available, we can build most programs
|
# If glut is available, we can build most programs
|
||||||
if test "$with_demos" = yes; then
|
if test "$with_demos" = yes; then
|
||||||
@@ -1090,9 +1024,6 @@ if test "x$APP_LIB_DEPS" = x; then
|
|||||||
solaris*)
|
solaris*)
|
||||||
APP_LIB_DEPS="-lX11 -lsocket -lnsl -lm"
|
APP_LIB_DEPS="-lX11 -lsocket -lnsl -lm"
|
||||||
;;
|
;;
|
||||||
cygwin*)
|
|
||||||
APP_LIB_DEPS="-lX11"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
APP_LIB_DEPS="-lm"
|
APP_LIB_DEPS="-lm"
|
||||||
;;
|
;;
|
||||||
@@ -1101,119 +1032,6 @@ fi
|
|||||||
AC_SUBST([APP_LIB_DEPS])
|
AC_SUBST([APP_LIB_DEPS])
|
||||||
AC_SUBST([PROGRAM_DIRS])
|
AC_SUBST([PROGRAM_DIRS])
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Gallium configuration
|
|
||||||
dnl
|
|
||||||
AC_ARG_ENABLE([gallium],
|
|
||||||
[AS_HELP_STRING([--disable-gallium],
|
|
||||||
[build gallium @<:@default=enabled@:>@])],
|
|
||||||
[enable_gallium="$enableval"],
|
|
||||||
[enable_gallium=yes])
|
|
||||||
if test "x$enable_gallium" = xyes; then
|
|
||||||
SRC_DIRS="$SRC_DIRS gallium gallium/winsys"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Gallium state trackers configuration
|
|
||||||
dnl
|
|
||||||
AC_ARG_WITH([state-trackers],
|
|
||||||
[AS_HELP_STRING([--with-state-trackers@<:@=DIRS...@:>@],
|
|
||||||
[comma delimited state_trackers list, e.g.
|
|
||||||
"egl,glx" @<:@default=auto@:>@])],
|
|
||||||
[with_state_trackers="$withval"],
|
|
||||||
[with_state_trackers=yes])
|
|
||||||
|
|
||||||
case "$with_state_trackers" in
|
|
||||||
no)
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS=""
|
|
||||||
;;
|
|
||||||
yes)
|
|
||||||
# look at what else is built
|
|
||||||
case "$mesa_driver" in
|
|
||||||
xlib)
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS=glx
|
|
||||||
;;
|
|
||||||
dri)
|
|
||||||
test "x$enable_egl" = xyes && GALLIUM_STATE_TRACKERS_DIRS=egl
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# verify the requested state tracker exist
|
|
||||||
state_trackers=`IFS=', '; echo $with_state_trackers`
|
|
||||||
for tracker in $state_trackers; do
|
|
||||||
test -d "$srcdir/src/gallium/state_trackers/$tracker" || \
|
|
||||||
AC_MSG_ERROR([state tracker '$tracker' doesn't exist])
|
|
||||||
|
|
||||||
if test "$tracker" = egl && test "x$enable_egl" != xyes; then
|
|
||||||
AC_MSG_ERROR([cannot build egl state tracker without EGL library])
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
GALLIUM_STATE_TRACKERS_DIRS="$state_trackers"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_ARG_WITH([xorg-driver-dir],
|
|
||||||
[AS_HELP_STRING([--with-xorg-driver-dir=DIR],
|
|
||||||
[Default xorg driver directory[[default=${libdir}/xorg/modules/drivers]]])],
|
|
||||||
[XORG_DRIVER_INSTALL_DIR="$withval"],
|
|
||||||
[XORG_DRIVER_INSTALL_DIR="${libdir}/xorg/modules/drivers"])
|
|
||||||
AC_SUBST([XORG_DRIVER_INSTALL_DIR])
|
|
||||||
|
|
||||||
AC_ARG_WITH([max-width],
|
|
||||||
[AS_HELP_STRING([--with-max-width=N],
|
|
||||||
[Maximum framebuffer width (4096)])],
|
|
||||||
[DEFINES="${DEFINES} -DMAX_WIDTH=${withval}";
|
|
||||||
AS_IF([test "${withval}" -gt "4096"],
|
|
||||||
[AC_MSG_WARN([Large framebuffer: see s_tritemp.h comments.])])]
|
|
||||||
)
|
|
||||||
AC_ARG_WITH([max-height],
|
|
||||||
[AS_HELP_STRING([--with-max-height=N],
|
|
||||||
[Maximum framebuffer height (4096)])],
|
|
||||||
[DEFINES="${DEFINES} -DMAX_HEIGHT=${withval}";
|
|
||||||
AS_IF([test "${withval}" -gt "4096"],
|
|
||||||
[AC_MSG_WARN([Large framebuffer: see s_tritemp.h comments.])])]
|
|
||||||
)
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Gallium Intel configuration
|
|
||||||
dnl
|
|
||||||
AC_ARG_ENABLE([gallium-intel],
|
|
||||||
[AS_HELP_STRING([--disable-gallium-intel],
|
|
||||||
[build gallium intel @<:@default=enabled@:>@])],
|
|
||||||
[enable_gallium_intel="$enableval"],
|
|
||||||
[enable_gallium_intel=yes])
|
|
||||||
if test "x$enable_gallium_intel" = xyes; then
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS intel"
|
|
||||||
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS i915simple"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Gallium Radeon configuration
|
|
||||||
dnl
|
|
||||||
AC_ARG_ENABLE([gallium-radeon],
|
|
||||||
[AS_HELP_STRING([--enable-gallium-radeon],
|
|
||||||
[build gallium radeon @<:@default=disabled@:>@])],
|
|
||||||
[enable_gallium_radeon="$enableval"],
|
|
||||||
[enable_gallium_radeon=no])
|
|
||||||
if test "x$enable_gallium_radeon" = xyes; then
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS radeon"
|
|
||||||
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Gallium Radeon configuration
|
|
||||||
dnl
|
|
||||||
AC_ARG_ENABLE([gallium-nouveau],
|
|
||||||
[AS_HELP_STRING([--enable-gallium-nouveau],
|
|
||||||
[build gallium nouveau @<:@default=disabled@:>@])],
|
|
||||||
[enable_gallium_nouveau="$enableval"],
|
|
||||||
[enable_gallium_nouveau=no])
|
|
||||||
if test "x$enable_gallium_nouveau" = xyes; then
|
|
||||||
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS nouveau"
|
|
||||||
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS nouveau nv04 nv10 nv20 nv30 nv40 nv50"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
dnl Restore LDFLAGS and CPPFLAGS
|
dnl Restore LDFLAGS and CPPFLAGS
|
||||||
LDFLAGS="$_SAVE_LDFLAGS"
|
LDFLAGS="$_SAVE_LDFLAGS"
|
||||||
@@ -1261,24 +1079,10 @@ fi
|
|||||||
fi
|
fi
|
||||||
echo " Use XCB: $enable_xcb"
|
echo " Use XCB: $enable_xcb"
|
||||||
|
|
||||||
echo ""
|
|
||||||
if echo "$SRC_DIRS" | grep 'gallium' >/dev/null 2>&1; then
|
|
||||||
echo " Gallium: yes"
|
|
||||||
echo " Gallium dirs: $GALLIUM_DIRS"
|
|
||||||
echo " Winsys dirs: $GALLIUM_WINSYS_DIRS"
|
|
||||||
echo " Winsys drm dirs:$GALLIUM_WINSYS_DRM_DIRS"
|
|
||||||
echo " Auxiliary dirs: $GALLIUM_AUXILIARY_DIRS"
|
|
||||||
echo " Driver dirs: $GALLIUM_DRIVERS_DIRS"
|
|
||||||
echo " Trackers dirs: $GALLIUM_STATE_TRACKERS_DIRS"
|
|
||||||
else
|
|
||||||
echo " Gallium: no"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Libraries
|
dnl Libraries
|
||||||
echo ""
|
echo ""
|
||||||
echo " Shared libs: $enable_shared"
|
echo " Shared libs: $enable_shared"
|
||||||
echo " Static libs: $enable_static"
|
echo " Static libs: $enable_static"
|
||||||
echo " EGL: $enable_egl"
|
|
||||||
echo " GLU: $enable_glu"
|
echo " GLU: $enable_glu"
|
||||||
echo " GLw: $enable_glw (Motif: $enable_motif)"
|
echo " GLw: $enable_glw (Motif: $enable_motif)"
|
||||||
echo " glut: $enable_glut"
|
echo " glut: $enable_glut"
|
||||||
|
|||||||
1290
debian/changelog
vendored
Normal file
1290
debian/changelog
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
352
debian/control
vendored
Normal file
352
debian/control
vendored
Normal file
@@ -0,0 +1,352 @@
|
|||||||
|
Source: mesa
|
||||||
|
Section: graphics
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
|
||||||
|
Uploaders: Thierry Reding <thierry@gilfi.de>, Julien Cristau <jcristau@debian.org>, David Nusinow <dnusinow@debian.org>, Brice Goglin <bgoglin@debian.org>
|
||||||
|
Standards-Version: 3.7.3
|
||||||
|
Build-Depends: debhelper (>= 5), quilt (>= 0.40), pkg-config,
|
||||||
|
libdrm-dev (>= 2.4.3) [!hurd-i386], libx11-dev, xutils-dev,
|
||||||
|
x11proto-gl-dev (>= 1.4.8), libxxf86vm-dev,
|
||||||
|
libexpat1-dev, lesstif2-dev, dpkg-dev (>= 1.13.19), libxfixes-dev,
|
||||||
|
libxdamage-dev, libxext-dev, autoconf, automake, x11proto-dri2-dev (>= 1.99.3)
|
||||||
|
Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/mesa
|
||||||
|
Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/mesa.git
|
||||||
|
Homepage: http://mesa3d.sourceforge.net/
|
||||||
|
|
||||||
|
Package: libgl1-mesa-swx11
|
||||||
|
Section: libs
|
||||||
|
Priority: extra
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, libosmesa6 (>= 6.5.2-1)
|
||||||
|
Conflicts: mesag3-glide, mesag3-glide2, mesag3+ggi, libgl1, nvidia-glx, mesag3, libgl1-mesa-swrast
|
||||||
|
Provides: libgl1, mesag3, libgl1-mesa-swrast
|
||||||
|
Replaces: libgl1, mesag3, libgl1-mesa-swrast
|
||||||
|
Description: A free implementation of the OpenGL API -- runtime
|
||||||
|
Mesa is a 3-D graphics library with an API which is very similar to
|
||||||
|
that of OpenGL. To the extent that Mesa utilizes the OpenGL command
|
||||||
|
syntax or state machine, it is being used with authorization from
|
||||||
|
Silicon Graphics, Inc. However, the author makes no claim that Mesa
|
||||||
|
is in any way a compatible replacement for OpenGL or associated with
|
||||||
|
Silicon Graphics, Inc.
|
||||||
|
.
|
||||||
|
This library provides a pure software rasteriser; it does not provide
|
||||||
|
a direct rendering-capable library, or one which uses GLX. For that,
|
||||||
|
please see libgl1-mesa-glx.
|
||||||
|
.
|
||||||
|
On Linux, this library is also known as libGL or libGL.so.1.
|
||||||
|
|
||||||
|
Package: libgl1-mesa-swx11-dbg
|
||||||
|
Section: libdevel
|
||||||
|
Priority: extra
|
||||||
|
Architecture: any
|
||||||
|
Depends: libgl1-mesa-swx11 (= ${binary:Version})
|
||||||
|
Conflicts: libgl1-mesa-swrast-dbg
|
||||||
|
Provides: libgl1-mesa-swrast-dbg
|
||||||
|
Replaces: libgl1-mesa-swrast-dbg
|
||||||
|
Description: A free implementation of the OpenGL API -- debugging symbols
|
||||||
|
Mesa is a 3-D graphics library with an API which is very similar to
|
||||||
|
that of OpenGL. To the extent that Mesa utilizes the OpenGL command
|
||||||
|
syntax or state machine, it is being used with authorization from
|
||||||
|
Silicon Graphics, Inc. However, the author makes no claim that Mesa
|
||||||
|
is in any way a compatible replacement for OpenGL or associated with
|
||||||
|
Silicon Graphics, Inc.
|
||||||
|
.
|
||||||
|
This library provides a pure software rasteriser; it does not provide
|
||||||
|
a direct rendering-capable library, or one which uses GLX. For that,
|
||||||
|
please see libgl1-mesa-glx.
|
||||||
|
.
|
||||||
|
On Linux, this library is also known as libGL or libGL.so.1.
|
||||||
|
.
|
||||||
|
This package contains debugging symbols for the software rasterization GL
|
||||||
|
library.
|
||||||
|
|
||||||
|
Package: libgl1-mesa-swx11-i686
|
||||||
|
Section: libs
|
||||||
|
Priority: extra
|
||||||
|
Architecture: i386
|
||||||
|
Depends: libgl1-mesa-swx11 (= ${binary:Version}), ${shlibs:Depends}
|
||||||
|
Description: Mesa OpenGL runtime [i686 optimized]
|
||||||
|
Mesa is a 3-D graphics library with an API which is very similar to
|
||||||
|
that of OpenGL. To the extent that Mesa utilizes the OpenGL command
|
||||||
|
syntax or state machine, it is being used with authorization from
|
||||||
|
Silicon Graphics, Inc. However, the author makes no claim that Mesa
|
||||||
|
is in any way a compatible replacement for OpenGL or associated with
|
||||||
|
Silicon Graphics, Inc.
|
||||||
|
.
|
||||||
|
This library provides a pure software rasteriser; it does not provide
|
||||||
|
a direct rendering-capable library, or one which uses GLX. For that,
|
||||||
|
please see libgl1-mesa-glx.
|
||||||
|
.
|
||||||
|
On Linux, this library is also known as libGL or libGL.so.1.
|
||||||
|
.
|
||||||
|
This set of libraries is optimized for i686 machines and will only be used if
|
||||||
|
you are running a 2.6 kernel on an i686 class CPU. This includes Pentium Pro,
|
||||||
|
Pentium II/II/IV, Celeron CPU's and similar class CPU's (including clones
|
||||||
|
such as AMD Athlon/Opteron, VIA C3 Nehemiah, but not VIA C3 Ezla).
|
||||||
|
|
||||||
|
Package: libgl1-mesa-swx11-dev
|
||||||
|
Section: libdevel
|
||||||
|
Priority: extra
|
||||||
|
Architecture: any
|
||||||
|
Depends: libgl1-mesa-swx11 (= ${binary:Version}), libc6-dev, libx11-dev, libxext6, mesa-common-dev (= ${source:Version})
|
||||||
|
Provides: libgl-dev, mesag-dev, libgl1-mesa-swrast-dev
|
||||||
|
Conflicts: mesa-dev, libgl-dev, mesag3 (<< 3.1-1), nvidia-glx-dev, mesag-dev, libgl1-mesa-swrast-dev
|
||||||
|
Replaces: libgl-dev, mesag-dev, libgl1-mesa-swrast-dev
|
||||||
|
Description: A free implementation of the OpenGL API -- development files
|
||||||
|
This package provides the development environment required for
|
||||||
|
compiling programs with Mesa. For a complete description of Mesa,
|
||||||
|
please look at the libgl1-mesa-swx11 package.
|
||||||
|
.
|
||||||
|
This library provides a pure software rasteriser; it does not provide
|
||||||
|
a direct rendering-capable library, or one which uses GLX. For that,
|
||||||
|
please see libgl1-mesa-dev.
|
||||||
|
|
||||||
|
Package: libgl1-mesa-glx
|
||||||
|
Section: libs
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}
|
||||||
|
Conflicts: libgl1, libgl1-mesa-dri (<< 6.4.0)
|
||||||
|
Replaces: libgl1, libgl1-mesa-dri (<< 6.4.0)
|
||||||
|
Provides: libgl1
|
||||||
|
Description: A free implementation of the OpenGL API -- GLX runtime
|
||||||
|
This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
.
|
||||||
|
This package does not include the modules themselves: these can be found
|
||||||
|
in the libgl1-mesa-dri package.
|
||||||
|
.
|
||||||
|
For a complete description of Mesa, please look at the
|
||||||
|
libgl1-mesa-swx11 package.
|
||||||
|
|
||||||
|
Package: libgl1-mesa-glx-dbg
|
||||||
|
Section: libdevel
|
||||||
|
Priority: extra
|
||||||
|
Architecture: any
|
||||||
|
Depends: libgl1-mesa-glx (= ${binary:Version})
|
||||||
|
Description: Debugging symbols for the Mesa GLX runtime
|
||||||
|
This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
.
|
||||||
|
This package does not include the modules themselves: these can be found
|
||||||
|
in the libgl1-mesa-dri package.
|
||||||
|
.
|
||||||
|
For a complete description of Mesa, please look at the
|
||||||
|
libgl1-mesa-swx11 package.
|
||||||
|
.
|
||||||
|
This package contains debugging symbols for the GL library with GLX and DRI
|
||||||
|
capabilities.
|
||||||
|
|
||||||
|
#Package: libgl1-mesa-glx-i686
|
||||||
|
#Section: libs
|
||||||
|
#Priority: extra
|
||||||
|
#Architecture: i386
|
||||||
|
#Pre-Depends: libgl1-mesa-glx
|
||||||
|
#Description: A free implementation of the OpenGL API -- GLX runtime [i686 optimized]
|
||||||
|
# This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
# both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
# modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
# .
|
||||||
|
# This package does not include the modules themselves: these can be found
|
||||||
|
# in the libgl1-mesa-dri package.
|
||||||
|
# .
|
||||||
|
# For a complete description of Mesa, please look at the
|
||||||
|
# libgl1-mesa-swx11 package.
|
||||||
|
# .
|
||||||
|
# This set of libraries is optimized for i686 machines and will only be used if
|
||||||
|
# you are running a 2.6 kernel on an i686 class CPU. This includes Pentium Pro,
|
||||||
|
# Pentium II/II/IV, Celeron CPU's and similar class CPU's (including clones
|
||||||
|
# such as AMD Athlon/Opteron, VIA C3 Nehemiah, but not VIA C3 Ezla).
|
||||||
|
|
||||||
|
Package: libgl1-mesa-dri
|
||||||
|
Section: libs
|
||||||
|
Priority: optional
|
||||||
|
Architecture: alpha amd64 arm armeb armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc
|
||||||
|
Depends: ${shlibs:Depends}, libgl1-mesa-glx (= ${binary:Version})
|
||||||
|
Suggests: libglide3
|
||||||
|
Conflicts: xlibmesa-dri (<< 1:7.0.0)
|
||||||
|
Replaces: xlibmesa-dri (<< 1:7.0.0)
|
||||||
|
Description: A free implementation of the OpenGL API -- DRI modules
|
||||||
|
This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
.
|
||||||
|
This package does not include the OpenGL library itself, only the DRI
|
||||||
|
modules for accelerating direct rendering.
|
||||||
|
.
|
||||||
|
For a complete description of Mesa, please look at the
|
||||||
|
libgl1-mesa-swx11 package.
|
||||||
|
.
|
||||||
|
The tdfx DRI module needs libglide3 to enable direct rendering.
|
||||||
|
|
||||||
|
Package: libgl1-mesa-dri-dbg
|
||||||
|
Section: libdevel
|
||||||
|
Priority: extra
|
||||||
|
Architecture: alpha amd64 arm armeb armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc
|
||||||
|
Depends: libgl1-mesa-dri (= ${binary:Version})
|
||||||
|
Description: Debugging symbols for the Mesa DRI modules
|
||||||
|
This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
.
|
||||||
|
This package does not include the OpenGL library itself, only the DRI
|
||||||
|
modules for accelerating direct rendering.
|
||||||
|
.
|
||||||
|
For a complete description of Mesa, please look at the
|
||||||
|
libgl1-mesa-swx11 package.
|
||||||
|
.
|
||||||
|
This package contains debugging symbols for the DRI modules.
|
||||||
|
|
||||||
|
#Package: libgl1-mesa-dri-i686
|
||||||
|
#Section: libs
|
||||||
|
#Priority: extra
|
||||||
|
#Architecture: i386
|
||||||
|
#Pre-Depends: libgl1-mesa-dri
|
||||||
|
#Description: A free implementation of the OpenGL API -- DRI modules [i686 optimized]
|
||||||
|
# This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
# both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
# modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
# .
|
||||||
|
# This package does not include the OpenGL library itself, only the DRI
|
||||||
|
# modules for accelerating direct rendering.
|
||||||
|
# .
|
||||||
|
# For a complete description of Mesa, please look at the
|
||||||
|
# libgl1-mesa-swx11 package.
|
||||||
|
# .
|
||||||
|
# This set of libraries is optimized for i686 machines and will only be used if
|
||||||
|
# you are running a 2.6 kernel on an i686 class CPU. This includes Pentium Pro,
|
||||||
|
# Pentium II/II/IV, Celeron CPU's and similar class CPU's (including clones
|
||||||
|
# such as AMD Athlon/Opteron, VIA C3 Nehemiah, but not VIA C3 Ezla).
|
||||||
|
|
||||||
|
Package: libgl1-mesa-dev
|
||||||
|
Section: libdevel
|
||||||
|
Architecture: all
|
||||||
|
Depends: libc6-dev, mesa-common-dev (= ${source:Version}), libgl1-mesa-glx (>= ${source:Upstream-Version})
|
||||||
|
Conflicts: libgl-dev, libgl1-mesa-dri-dev
|
||||||
|
Replaces: libgl-dev, libgl1-mesa-dri-dev
|
||||||
|
Provides: libgl-dev, libgl1-mesa-dri-dev
|
||||||
|
Description: A free implementation of the OpenGL API -- GLX development files
|
||||||
|
This version of Mesa provides GLX and DRI capabilities: it is capable of
|
||||||
|
both direct and indirect rendering. For direct rendering, it can use DRI
|
||||||
|
modules from the libgl1-mesa-dri package to accelerate drawing.
|
||||||
|
.
|
||||||
|
This package includes headers and static libraries for compiling
|
||||||
|
programs with Mesa.
|
||||||
|
.
|
||||||
|
For a complete description of Mesa, please look at the libgl1-mesa-swx11
|
||||||
|
package.
|
||||||
|
|
||||||
|
Package: mesa-common-dev
|
||||||
|
Section: libdevel
|
||||||
|
Architecture: all
|
||||||
|
Replaces: xlibmesa-gl-dev (<< 1:7), xlibosmesa-dev, libgl1-mesa-swx11-dev (<< 6.5.2), libgl1-mesa-dev (<< 6.5.2)
|
||||||
|
Depends: libx11-dev
|
||||||
|
Description: Developer documentation for Mesa
|
||||||
|
This package includes the specifications for the Mesa-specific OpenGL
|
||||||
|
extensions, the complete set of release notes and the development header
|
||||||
|
files common to all Mesa packages.
|
||||||
|
|
||||||
|
Package: libosmesa6
|
||||||
|
Section: libs
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}
|
||||||
|
Replaces: libgl1-mesa-swx11 (<< 6.5.2)
|
||||||
|
Description: Mesa Off-screen rendering extension
|
||||||
|
OSmesa is a Mesa extension that allows programs to render to an
|
||||||
|
off-screen buffer using the OpenGL API without having to create a
|
||||||
|
rendering context on an X Server. It uses a pure software renderer.
|
||||||
|
.
|
||||||
|
This package provides both 16-bit and 32-bit versions of the off-screen
|
||||||
|
renderer which do not require external libraries to work.
|
||||||
|
|
||||||
|
Package: libosmesa6-dev
|
||||||
|
Section: libdevel
|
||||||
|
Architecture: any
|
||||||
|
Depends: libosmesa6 (= ${binary:Version}), mesa-common-dev (= ${source:Version}) | libgl-dev
|
||||||
|
Conflicts: xlibosmesa-dev, libosmesa4-dev, libosmesa-dev
|
||||||
|
Replaces: xlibosmesa-dev, libosmesa-dev, libgl1-mesa-swx11-dev (<< 6.5.2), mesa-common-dev (<< 6.5.2)
|
||||||
|
Provides: xlibosmesa-dev, libosmesa-dev
|
||||||
|
Description: Mesa Off-screen rendering extension -- development files
|
||||||
|
This package provides the required environment for developing programs
|
||||||
|
that use the off-screen rendering extension of Mesa.
|
||||||
|
.
|
||||||
|
For more information on OSmesa see the libosmesa6 package.
|
||||||
|
|
||||||
|
Package: libglu1-mesa
|
||||||
|
Section: libs
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, libgl1-mesa-glx | libgl1
|
||||||
|
Provides: libglu1
|
||||||
|
Conflicts: mesag3 (<< 5.0.0-1), xlibmesa3, libglu1
|
||||||
|
Replaces: libglu1
|
||||||
|
Description: The OpenGL utility library (GLU)
|
||||||
|
GLU offers simple interfaces for building mipmaps; checking for the
|
||||||
|
presence of extensions in the OpenGL (or other libraries which follow
|
||||||
|
the same conventions for advertising extensions); drawing
|
||||||
|
piecewise-linear curves, NURBS, quadrics and other primitives
|
||||||
|
(including, but not limited to, teapots); tesselating surfaces; setting
|
||||||
|
up projection matrices and unprojecting screen coordinates to world
|
||||||
|
coordinates.
|
||||||
|
.
|
||||||
|
On Linux, this library is also known as libGLU or libGLU.so.1.
|
||||||
|
.
|
||||||
|
This package provides the SGI implementation of GLU shipped with the
|
||||||
|
Mesa package (ergo the "-mesa" suffix).
|
||||||
|
|
||||||
|
Package: libglu1-mesa-dev
|
||||||
|
Section: libdevel
|
||||||
|
Architecture: any
|
||||||
|
Depends: libglu1-mesa (= ${binary:Version}), libgl1-mesa-dev | libgl-dev
|
||||||
|
Provides: libglu-dev, xlibmesa-glu-dev
|
||||||
|
Conflicts: mesag-dev (<< 5.0.0-1), mesa-glide2-dev (<< 5.0.0-1), mesag3+ggi-dev (<< 5.0.0-1), xlibmesa-dev
|
||||||
|
Replaces: libglu-dev
|
||||||
|
Description: The OpenGL utility library -- development files
|
||||||
|
Includes headers and static libraries for compiling programs with GLU.
|
||||||
|
.
|
||||||
|
For a complete description of GLU, please look at the libglu1-mesa
|
||||||
|
package.
|
||||||
|
|
||||||
|
Package: libglw1-mesa
|
||||||
|
Section: libs
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}
|
||||||
|
Provides: libglw1
|
||||||
|
Description: A free implementation of the OpenGL API -- runtime
|
||||||
|
Mesa is a 3-D graphics library with an API which is very similar to
|
||||||
|
that of OpenGL. To the extent that Mesa utilizes the OpenGL command
|
||||||
|
syntax or state machine, it is being used with authorization from
|
||||||
|
Silicon Graphics, Inc. However, the author makes no claim that Mesa
|
||||||
|
is in any way a compatible replacement for OpenGL or associated with
|
||||||
|
Silicon Graphics, Inc.
|
||||||
|
.
|
||||||
|
This package provides a simple widgets library, libGLw, which
|
||||||
|
allows Motif-based applications to embed an OpenGL drawing context.
|
||||||
|
.
|
||||||
|
On Linux, this library is also known as libGLw or libGLw.so.1.
|
||||||
|
|
||||||
|
Package: libglw1-mesa-dev
|
||||||
|
Section: libdevel
|
||||||
|
Architecture: any
|
||||||
|
Depends: libglw1-mesa (= ${binary:Version}), libc6-dev, libx11-dev, libxext6, mesa-common-dev (= ${source:Version})
|
||||||
|
Provides: mesag3-widgets, mesag-widgets-dev, libglw-dev
|
||||||
|
Conflicts: libglw-dev, libgl1-mesa-swx11-dev (<< 6.5.2-4)
|
||||||
|
Replaces: libglw-dev
|
||||||
|
Description: A free implementation of the OpenGL API -- development files
|
||||||
|
This package provides the development environment required for
|
||||||
|
compiling programs with the Mesa widgets library, libGLw, which
|
||||||
|
allows Motif-based applications to embed an OpenGL drawing context.
|
||||||
|
The headers and static libraries for compiling programs that use this
|
||||||
|
library are included.
|
||||||
|
|
||||||
|
Package: mesa-utils
|
||||||
|
Section: x11
|
||||||
|
Priority: optional
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}
|
||||||
|
Replaces: xbase-clients (<< 6.8.2-38)
|
||||||
|
Description: Miscellaneous Mesa GL utilities
|
||||||
|
This package provides several basic GL utilities built by Mesa, including
|
||||||
|
glxinfo and glxgears.
|
||||||
|
|
||||||
|
# vim: tw=0
|
||||||
193
debian/copyright
vendored
Normal file
193
debian/copyright
vendored
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
This package was debianized by James A. Treacy treacy@debian.org on Thu,
|
||||||
|
6 Jan 2000 01:11:34 -0500. It was newly debianized by Marcelo E.
|
||||||
|
Magallon <mmagallo@debian.org> on Sat, 25 Dec 2004 14:50:02 -0600. It was
|
||||||
|
again debianized by Thierry Reding <thierry@gilfi.de> on Sat, 14 Oct 2006
|
||||||
|
02:01:12 +0200.
|
||||||
|
|
||||||
|
It was downloaded from http://www.mesa3d.org/download.html
|
||||||
|
|
||||||
|
For more information see:
|
||||||
|
|
||||||
|
http://www.mesa3d.org/
|
||||||
|
|
||||||
|
Copyright:
|
||||||
|
|
||||||
|
Upstream Author: Brian Paul <brian.paul@tungstengraphics.com>
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
License / Copyright Information
|
||||||
|
|
||||||
|
The Mesa distribution consists of several components. Different
|
||||||
|
copyrights and licenses apply to different components. For
|
||||||
|
example, GLUT is copyrighted by Mark Kilgard, some demo programs
|
||||||
|
are copyrighted by SGI, some of the Mesa device drivers are
|
||||||
|
copyrighted by their authors. See below for a list of Mesa's
|
||||||
|
components and the copyright/license for each.
|
||||||
|
|
||||||
|
The core Mesa library is licensed according to the terms of the
|
||||||
|
XFree86 copyright (an MIT-style license). This allows integration
|
||||||
|
with the XFree86/DRI project. Unless otherwise stated, the Mesa
|
||||||
|
source code and documentation is licensed as follows:
|
||||||
|
|
||||||
|
Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
to deal in the Software without restriction, including without limitation
|
||||||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Attention, Contributors
|
||||||
|
|
||||||
|
When contributing to the Mesa project you must agree to relinquish
|
||||||
|
your work to the holder of the copyright for the particular
|
||||||
|
component you're contributing to. That is, you can't put your own
|
||||||
|
copyright on the code, unless it's a modular piece that can be
|
||||||
|
omitted from Mesa (like a new device driver). If for example, you
|
||||||
|
contribute a bug fix to Mesa's texture mapping code, your code
|
||||||
|
will become a part of the body of work which is copyrighted by
|
||||||
|
Brian Paul and licensed by the above terms.
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
Some files, as listed below, are made available under the SGI Free B
|
||||||
|
license. This license is as follows:
|
||||||
|
|
||||||
|
SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
|
||||||
|
|
||||||
|
Copyright (C) [dates of first publication] Silicon Graphics, Inc. All Rights
|
||||||
|
Reserved.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
The above copyright notice including the dates of first publication and either
|
||||||
|
this permission notice or a reference to http://oss.sgi.com/projects/FreeB/
|
||||||
|
shall be included in all copies or substantial portions of the Software.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL SILICON GRAPHICS, INC. BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||||
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
IN THE SOFTWARE.
|
||||||
|
Except as contained in this notice, the name of Silicon Graphics, Inc. shall
|
||||||
|
not be used in advertising or otherwise to promote the sale, use or other
|
||||||
|
dealings in this Software without prior written authorization from Silicon
|
||||||
|
Graphics, Inc.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Some other files listed below are made available from Silicon Graphics,
|
||||||
|
Inc. under a more liberal, MIT-style license, as follows:
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for
|
||||||
|
any purpose and without fee is hereby granted, provided that the above
|
||||||
|
copyright notice appear in all copies and that both the copyright notice
|
||||||
|
and this permission notice appear in supporting documentation, and that
|
||||||
|
the name of Silicon Graphics, Inc. not be used in advertising
|
||||||
|
or publicity pertaining to distribution of the software without specific,
|
||||||
|
written prior permission.
|
||||||
|
|
||||||
|
THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
|
||||||
|
AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE
|
||||||
|
INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
|
||||||
|
GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
|
||||||
|
SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
|
||||||
|
KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
|
||||||
|
LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
|
||||||
|
THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||||
|
POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
US Government Users Restricted Rights
|
||||||
|
Use, duplication, or disclosure by the Government is subject to
|
||||||
|
restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
|
||||||
|
(c)(1)(ii) of the Rights in Technical Data and Computer Software
|
||||||
|
clause at DFARS 252.227-7013 and/or in similar or successor
|
||||||
|
clauses in the FAR or the DOD or NASA FAR Supplement.
|
||||||
|
Unpublished-- rights reserved under the copyright laws of the
|
||||||
|
United States. Contractor/manufacturer is Silicon Graphics,
|
||||||
|
Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Mesa Component Licenses:
|
||||||
|
|
||||||
|
Component Files Primary Author License
|
||||||
|
----------------------------------------------------------------------------
|
||||||
|
core Mesa code src/*.[ch] Brian Paul Mesa
|
||||||
|
include/GL/gl.h
|
||||||
|
|
||||||
|
GLX driver src/X/* Brian Paul Mesa
|
||||||
|
include/GL/glx.h
|
||||||
|
include/GL/xmesa.h
|
||||||
|
|
||||||
|
OS/Mesa driver src/OSmesa/* Brian Paul Mesa
|
||||||
|
include/GL/osmesa.h
|
||||||
|
|
||||||
|
3Dfx driver src/FX/* David Bucciarelli Mesa
|
||||||
|
include/GL/fxmesa.h
|
||||||
|
|
||||||
|
BeOS R4 driver mesa/drivers/beos/ Brian Paul Mesa
|
||||||
|
|
||||||
|
MGL driver include/GL/mglmesa.h SciTech, Inc GNU LGPL
|
||||||
|
|
||||||
|
Windows driver mesa/drivers/windows/ Li Wei GNU LGPL
|
||||||
|
include/GL/wmesa.h
|
||||||
|
|
||||||
|
SVGA driver mesa/drivers/svga/ Brian Paul GNU LGPL
|
||||||
|
include/GL/svgamesa.h
|
||||||
|
|
||||||
|
DOS driver mesa/drivers/dos/ Charlie Wallace GNU LGPL
|
||||||
|
include/GL/dosmesa.h
|
||||||
|
|
||||||
|
GGI driver mesa/drivers/ggi/ Uwe Maurer GNU LGPL
|
||||||
|
include/GL/ggimesa.h
|
||||||
|
|
||||||
|
GLUT src/glut/* Mark Kilgard Mark's copyright
|
||||||
|
include/GL/*glut*.h
|
||||||
|
|
||||||
|
GLU library src/glu/* Brian Paul GNU LGPL
|
||||||
|
|
||||||
|
SGI GLU library src/glu/sgi/* SGI SGI Free B
|
||||||
|
include/GL/glu.h
|
||||||
|
|
||||||
|
Ext registry include/GL/glext.h SGI SGI Free B
|
||||||
|
include/GL/glxext.h
|
||||||
|
|
||||||
|
demo programs progs/demos/* various see source files
|
||||||
|
|
||||||
|
X demos progs/xdemos/* Brian Paul see source files
|
||||||
|
|
||||||
|
SGI demos progs/samples/* SGI SGI MIT-style
|
||||||
|
|
||||||
|
RedBook demos progs/redbook/* SGI SGI MIT-style
|
||||||
|
|
||||||
|
|
||||||
|
On Debian systems the full text of the GNU LGPL license is found in
|
||||||
|
/usr/share/common-licenses/LGPL.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
The Debian packaging is (C) 2006, Thierry Reding <thierry@gilfi.de> and
|
||||||
|
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
|
||||||
|
|
||||||
15
debian/glxdemo.1
vendored
Normal file
15
debian/glxdemo.1
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
.TH glxdemo 1 "2006-11-29"
|
||||||
|
.SH NAME
|
||||||
|
glxdemo \- a demonstration of the GLX functions
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B glxdemo
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The \fIglxdemo\fP program shows how to use the GLX functions in order to
|
||||||
|
create an OpenGL program running on top of an X server. This program is most
|
||||||
|
useful when studied in its source code form.
|
||||||
|
.SH AUTHOR
|
||||||
|
glxdemo was written by Brian Paul <brian.paul@tungstengraphics.com>.
|
||||||
|
.PP
|
||||||
|
This manual page was written by Thierry Reding <thierry@gilfi.de>, for the
|
||||||
|
Debian project (but may be used by others).
|
||||||
|
|
||||||
29
debian/glxgears.1
vendored
Normal file
29
debian/glxgears.1
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
.TH glxgears 1 "2006-11-29"
|
||||||
|
.SH NAME
|
||||||
|
glxgears \- ``gears'' demo for GLX
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B glxgears
|
||||||
|
.RI [ options ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The \fIglxgears\fP program is a port of the ``gears'' demo to GLX. It displays
|
||||||
|
a set of rotating gears and prints out the frame rate at regular intervals. It
|
||||||
|
has become quite popular as basic benchmarking tool.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP 8
|
||||||
|
.B \-display \fIdisplay\fP
|
||||||
|
Specify which X display to run on.
|
||||||
|
.TP 8
|
||||||
|
.B \-info
|
||||||
|
Display OpenGL renderer information.
|
||||||
|
.TP 8
|
||||||
|
.B \-stereo
|
||||||
|
Use a stereo enabled GLX visual.
|
||||||
|
.TP 8
|
||||||
|
.B \-fullscreen
|
||||||
|
Run in fullscreen mode.
|
||||||
|
.SH AUTHOR
|
||||||
|
glxgears was written by Brian Paul <brian.paul@tungstengraphics.com>.
|
||||||
|
.PP
|
||||||
|
This manual page was written by Thierry Reding <thierry@gilfi.de>, for the
|
||||||
|
Debian project (but may be used by others).
|
||||||
|
|
||||||
30
debian/glxheads.1
vendored
Normal file
30
debian/glxheads.1
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
.TH glxheads 1 "2006-11-29"
|
||||||
|
.SH NAME
|
||||||
|
glxheads \- exercise multiple GLX connections
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B glxheads
|
||||||
|
[\fIdisplay\fP ...]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The \fIglxheads\fP program will try to open GLX connections on multiple X
|
||||||
|
displays as specified on the command-line. If a connection can be made it will
|
||||||
|
try to create a direct GLX context (and fallback to using indirect contexts if
|
||||||
|
that fails) and open a window displaying a spinning green triangle.
|
||||||
|
.PP
|
||||||
|
If no display names are specified, \fIglxheads\fP will default to opening a
|
||||||
|
single local connection on display 0.
|
||||||
|
.SH EXAMPLE
|
||||||
|
To open a local connection on display 0 and two remote connections to the
|
||||||
|
hosts \fImars\fP (display 0) and \fIvenus\fP (display 1), run glxheads with
|
||||||
|
the following command-line:
|
||||||
|
.PP
|
||||||
|
.RS 3n
|
||||||
|
.nf
|
||||||
|
$ glxheads :0 mars:0 venus:1
|
||||||
|
.fi
|
||||||
|
.RE
|
||||||
|
.SH AUTHOR
|
||||||
|
glxheads was written by Brian Paul <brian.paul@tungstengraphics.com>.
|
||||||
|
.PP
|
||||||
|
This manual page was written by Thierry Reding <thierry@gilfi.de> for the
|
||||||
|
Debian project (but may be used by others).
|
||||||
|
|
||||||
41
debian/glxinfo.1
vendored
Normal file
41
debian/glxinfo.1
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
.TH glxinfo 1 "2006-11-29"
|
||||||
|
.SH NAME
|
||||||
|
glxinfo \- show information about the GLX implementation
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B glxinfo
|
||||||
|
.RI [ options ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The \fIglxinfo\fP program shows information about the OpenGL and GLX
|
||||||
|
implementations running on a given X display.
|
||||||
|
.PP
|
||||||
|
The information includes details about the server- and client-side GLX
|
||||||
|
implementation, the OpenGL and GLU implementations as well as a list
|
||||||
|
of available GLX visuals.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP 8
|
||||||
|
.B \-v
|
||||||
|
Print visuals info in verbose form.
|
||||||
|
.TP 8
|
||||||
|
.B \-t
|
||||||
|
Print verbose table.
|
||||||
|
.TP 8
|
||||||
|
.B \-display \fIdisplay\fP
|
||||||
|
Specify the X display to interrogate.
|
||||||
|
.TP 8
|
||||||
|
.B \-h
|
||||||
|
Print usage information.
|
||||||
|
.TP 8
|
||||||
|
.B \-i
|
||||||
|
Force an indirect rendering context.
|
||||||
|
.TP 8
|
||||||
|
.B \-b
|
||||||
|
Find the "best" visual and print its number.
|
||||||
|
.TP 8
|
||||||
|
.B \-l
|
||||||
|
Print interesting OpenGL limits.
|
||||||
|
.SH AUTHOR
|
||||||
|
glxinfo was written by Brian Paul <brian.paul@tungstengraphics.com>.
|
||||||
|
.PP
|
||||||
|
This manual page was written by Thierry Reding <thierry@gilfi.de>, for the
|
||||||
|
Debian project (but may be used by others).
|
||||||
|
|
||||||
2
debian/libgl1-mesa-dev.install
vendored
Normal file
2
debian/libgl1-mesa-dev.install
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
usr/lib/libGL.so
|
||||||
|
usr/lib/pkgconfig/gl.pc
|
||||||
1
debian/libgl1-mesa-dri-i686.install
vendored
Normal file
1
debian/libgl1-mesa-dri-i686.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/dri/i686/cmov/*.so
|
||||||
1
debian/libgl1-mesa-dri.install
vendored
Normal file
1
debian/libgl1-mesa-dri.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/dri/*.so
|
||||||
1
debian/libgl1-mesa-glx-i686.install
vendored
Normal file
1
debian/libgl1-mesa-glx-i686.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/glx/i686/cmov/libGL.so.* usr/lib/i686/cmov
|
||||||
1
debian/libgl1-mesa-glx.install
vendored
Normal file
1
debian/libgl1-mesa-glx.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/glx/libGL.so.* usr/lib
|
||||||
1
debian/libgl1-mesa-glx.shlibs
vendored
Normal file
1
debian/libgl1-mesa-glx.shlibs
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
libGL 1 libgl1-mesa-glx | libgl1
|
||||||
2
debian/libgl1-mesa-swx11-dev.install
vendored
Normal file
2
debian/libgl1-mesa-swx11-dev.install
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
usr/lib/libGL.a
|
||||||
|
usr/lib/libGL.so
|
||||||
1
debian/libgl1-mesa-swx11-i686.install
vendored
Normal file
1
debian/libgl1-mesa-swx11-i686.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/i686/cmov/libGL.so.*
|
||||||
1
debian/libgl1-mesa-swx11-i686.shlibs
vendored
Normal file
1
debian/libgl1-mesa-swx11-i686.shlibs
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
libGL 1 libgl1-mesa-glx | libgl1
|
||||||
1
debian/libgl1-mesa-swx11.install
vendored
Normal file
1
debian/libgl1-mesa-swx11.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/libGL.so.*
|
||||||
1
debian/libgl1-mesa-swx11.shlibs
vendored
Normal file
1
debian/libgl1-mesa-swx11.shlibs
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
libGL 1 libgl1-mesa-glx | libgl1
|
||||||
4
debian/libglu1-mesa-dev.install
vendored
Normal file
4
debian/libglu1-mesa-dev.install
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
usr/include/GL/glu.h
|
||||||
|
usr/include/GL/glu_mangle.h
|
||||||
|
usr/lib/libGLU.a
|
||||||
|
usr/lib/libGLU.so
|
||||||
1
debian/libglu1-mesa.install
vendored
Normal file
1
debian/libglu1-mesa.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/libGLU.so.*
|
||||||
1
debian/libglu1-mesa.shlibs
vendored
Normal file
1
debian/libglu1-mesa.shlibs
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
libGLU 1 libglu1-mesa | libglu1
|
||||||
3
debian/libglw1-mesa-dev.install
vendored
Normal file
3
debian/libglw1-mesa-dev.install
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
usr/include/GL/GLw*A.h
|
||||||
|
usr/lib/libGLw.a
|
||||||
|
usr/lib/libGLw.so
|
||||||
1
debian/libglw1-mesa.install
vendored
Normal file
1
debian/libglw1-mesa.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/libGLw.so.*
|
||||||
1
debian/libglw1-mesa.shlibs
vendored
Normal file
1
debian/libglw1-mesa.shlibs
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
libGLw 1 libglw1-mesa | libglw1
|
||||||
7
debian/libosmesa6-dev.install
vendored
Normal file
7
debian/libosmesa6-dev.install
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
usr/include/GL/osmesa.h
|
||||||
|
usr/lib/libOSMesa.a
|
||||||
|
usr/lib/libOSMesa.so
|
||||||
|
usr/lib/libOSMesa16.a
|
||||||
|
usr/lib/libOSMesa16.so
|
||||||
|
usr/lib/libOSMesa32.a
|
||||||
|
usr/lib/libOSMesa32.so
|
||||||
3
debian/libosmesa6.install
vendored
Normal file
3
debian/libosmesa6.install
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
usr/lib/libOSMesa.so.*
|
||||||
|
usr/lib/libOSMesa16.so.*
|
||||||
|
usr/lib/libOSMesa32.so.*
|
||||||
3
debian/libosmesa6.shlibs
vendored
Normal file
3
debian/libosmesa6.shlibs
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
libOSMesa 6 libosmesa6 (>= 6.5.2-1) | libgl1-mesa-glide3
|
||||||
|
libOSMesa16 6 libosmesa6 (>= 6.5.2-1)
|
||||||
|
libOSMesa32 6 libosmesa6 (>= 6.5.2-1)
|
||||||
8
debian/mesa-common-dev.docs
vendored
Normal file
8
debian/mesa-common-dev.docs
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
docs/bugs.html
|
||||||
|
docs/debugging.html
|
||||||
|
docs/envvars.html
|
||||||
|
docs/faq.html
|
||||||
|
docs/osmesa.html
|
||||||
|
docs/RELNOTES-*
|
||||||
|
docs/relnotes*
|
||||||
|
docs/*.spec
|
||||||
5
debian/mesa-common-dev.install
vendored
Normal file
5
debian/mesa-common-dev.install
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
usr/include/GL/gl.h
|
||||||
|
usr/include/GL/glext.h
|
||||||
|
usr/include/GL/gl_mangle.h
|
||||||
|
usr/include/GL/glx*.h
|
||||||
|
usr/include/GL/internal/dri_interface.h
|
||||||
4
debian/mesa-utils.install
vendored
Normal file
4
debian/mesa-utils.install
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
usr/bin/glxdemo
|
||||||
|
usr/bin/glxgears
|
||||||
|
usr/bin/glxheads
|
||||||
|
usr/bin/glxinfo
|
||||||
4
debian/mesa-utils.manpages
vendored
Normal file
4
debian/mesa-utils.manpages
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
debian/glxdemo.1
|
||||||
|
debian/glxgears.1
|
||||||
|
debian/glxheads.1
|
||||||
|
debian/glxinfo.1
|
||||||
19
debian/patches/02_use-ieee-fp-on-s390-and-m68k.patch
vendored
Normal file
19
debian/patches/02_use-ieee-fp-on-s390-and-m68k.patch
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
Patch that fixes Debian bug #349437.
|
||||||
|
|
||||||
|
This patch by David Nusinow.
|
||||||
|
|
||||||
|
Index: mesa/src/mesa/main/imports.h
|
||||||
|
===================================================================
|
||||||
|
--- mesa.orig/src/mesa/main/imports.h 2008-07-01 15:26:57.000000000 +0300
|
||||||
|
+++ mesa/src/mesa/main/imports.h 2008-07-01 15:45:49.000000000 +0300
|
||||||
|
@@ -158,8 +158,9 @@
|
||||||
|
*** USE_IEEE: Determine if we're using IEEE floating point
|
||||||
|
***/
|
||||||
|
#if defined(__i386__) || defined(__386__) || defined(__sparc__) || \
|
||||||
|
- defined(__s390x__) || defined(__powerpc__) || \
|
||||||
|
+ defined(__s390__) || defined(__s390x__) || defined(__powerpc__) || \
|
||||||
|
defined(__x86_64__) || \
|
||||||
|
+ defined(__m68k__) || \
|
||||||
|
defined(ia64) || defined(__ia64__) || \
|
||||||
|
defined(__hppa__) || defined(hpux) || \
|
||||||
|
defined(__mips) || defined(_MIPS_ARCH) || \
|
||||||
55
debian/patches/03_optional-progs-and-install.patch
vendored
Normal file
55
debian/patches/03_optional-progs-and-install.patch
vendored
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
Allow the programs that are to be built to be defined in the build
|
||||||
|
configuration.
|
||||||
|
|
||||||
|
Provide an install target for installing the programs in $(INSTALL_DIR)/bin.
|
||||||
|
|
||||||
|
This patch by Thierry Reding.
|
||||||
|
Not submitted to Mesa.
|
||||||
|
--
|
||||||
|
Also remove references to GLU library since it is not required
|
||||||
|
and we don't actually build it at this point.
|
||||||
|
|
||||||
|
|
||||||
|
Index: mesa/progs/xdemos/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- mesa.orig/progs/xdemos/Makefile 2008-07-01 15:26:56.000000000 +0300
|
||||||
|
+++ mesa/progs/xdemos/Makefile 2008-07-01 15:48:47.000000000 +0300
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
|
-PROGS = \
|
||||||
|
+PROGS ?= \
|
||||||
|
corender \
|
||||||
|
glthreads \
|
||||||
|
glxdemo \
|
||||||
|
@@ -60,6 +60,11 @@
|
||||||
|
extra: $(EXTRA_PROGS)
|
||||||
|
|
||||||
|
|
||||||
|
+install: $(PROGS)
|
||||||
|
+ $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/bin
|
||||||
|
+ $(INSTALL) -m 755 $(PROGS) $(DESTDIR)$(INSTALL_DIR)/bin
|
||||||
|
+
|
||||||
|
+
|
||||||
|
clean:
|
||||||
|
-rm -f $(PROGS) $(EXTRA_PROGS)
|
||||||
|
-rm -f *.o *~
|
||||||
|
Index: mesa/progs/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- mesa.orig/progs/Makefile 2008-07-01 15:26:56.000000000 +0300
|
||||||
|
+++ mesa/progs/Makefile 2008-07-01 15:48:07.000000000 +0300
|
||||||
|
@@ -21,8 +21,12 @@
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
|
||||||
|
-# Dummy install target
|
||||||
|
install:
|
||||||
|
+ @for dir in $(SUBDIRS) ; do \
|
||||||
|
+ if [ -d $$dir ] ; then \
|
||||||
|
+ (cd $$dir ; $(MAKE) install) ; \
|
||||||
|
+ fi \
|
||||||
|
+ done
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-@for dir in $(SUBDIRS) tests ; do \
|
||||||
22
debian/patches/04_osmesa_version.diff
vendored
Normal file
22
debian/patches/04_osmesa_version.diff
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
Index: mesa/src/mesa/drivers/osmesa/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- mesa.orig/src/mesa/drivers/osmesa/Makefile 2008-09-12 10:44:02.000000000 +0300
|
||||||
|
+++ mesa/src/mesa/drivers/osmesa/Makefile 2008-09-23 16:07:40.000000000 +0300
|
||||||
|
@@ -46,7 +46,7 @@
|
||||||
|
|
||||||
|
$(TOP)/lib/$(OSMESA_LIB_NAME): $(OBJECTS)
|
||||||
|
$(MKLIB) -o $(OSMESA_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
|
- -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
|
||||||
|
+ -major 6 -minor 5 -patch 3 \
|
||||||
|
-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
|
||||||
|
-id $(INSTALL_LIB_DIR)/lib$(OSMESA_LIB).$(MESA_MAJOR).dylib \
|
||||||
|
$(OSMESA_LIB_DEPS) $(OBJECTS)
|
||||||
|
@@ -58,7 +58,7 @@
|
||||||
|
# with all the other Mesa sources (compiled with -DCHAN_BITS=16/32
|
||||||
|
osmesa16: $(OBJECTS) $(CORE_MESA)
|
||||||
|
$(MKLIB) -o $(OSMESA_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
|
- -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
|
||||||
|
+ -major 6 -minor 5 -patch 3 \
|
||||||
|
-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
|
||||||
|
-id $(INSTALL_LIB_DIR)/lib$(OSMESA_LIB).$(MESA_MAJOR).dylib \
|
||||||
|
$(OSMESA_LIB_DEPS) $(OBJECTS) $(CORE_MESA)
|
||||||
3
debian/patches/series
vendored
Normal file
3
debian/patches/series
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
02_use-ieee-fp-on-s390-and-m68k.patch
|
||||||
|
03_optional-progs-and-install.patch
|
||||||
|
04_osmesa_version.diff
|
||||||
246
debian/rules
vendored
Executable file
246
debian/rules
vendored
Executable file
@@ -0,0 +1,246 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# debian/rules for the Debian mesa package
|
||||||
|
# Copyright © 2006 Thierry Reding <thierry@gilfi.de>
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
CFLAGS = -Wall -g
|
||||||
|
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CFLAGS += -O0
|
||||||
|
else
|
||||||
|
CFLAGS += -O2
|
||||||
|
endif
|
||||||
|
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||||||
|
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||||||
|
MAKEFLAGS += -j$(NUMJOBS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||||
|
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||||
|
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
|
||||||
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||||
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||||
|
DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
|
||||||
|
DEB_BUILD_DIR ?= $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)
|
||||||
|
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
||||||
|
confflags += --build=$(DEB_HOST_GNU_TYPE)
|
||||||
|
else
|
||||||
|
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
|
||||||
|
endif
|
||||||
|
|
||||||
|
# choose which configurations to build
|
||||||
|
include debian/scripts/choose-configs
|
||||||
|
|
||||||
|
# build the following configurations by default
|
||||||
|
CONFIGS = $(SWX11_GLU_CONFIGS) \
|
||||||
|
dri \
|
||||||
|
osmesa \
|
||||||
|
osmesa-static \
|
||||||
|
osmesa16 \
|
||||||
|
osmesa16-static \
|
||||||
|
osmesa32 \
|
||||||
|
osmesa32-static
|
||||||
|
|
||||||
|
STAMP_DIR = debian/stamp
|
||||||
|
STAMP = $(STAMP_DIR)/$(DEB_BUILD_GNU_TYPE)
|
||||||
|
BUILD_STAMPS = $(addprefix $(STAMP)-build-, $(CONFIGS))
|
||||||
|
INSTALL_TARGETS = $(addprefix install-, $(CONFIGS))
|
||||||
|
|
||||||
|
QUILT_STAMPFN = $(STAMP_DIR)/patch
|
||||||
|
include /usr/share/quilt/quilt.make
|
||||||
|
|
||||||
|
confflags-common = \
|
||||||
|
--disable-glu \
|
||||||
|
--disable-glut \
|
||||||
|
--disable-glw \
|
||||||
|
CFLAGS="$(CFLAGS)"
|
||||||
|
|
||||||
|
DRI_DRIVERS = swrast
|
||||||
|
|
||||||
|
# hurd doesn't do direct rendering
|
||||||
|
ifeq ($(DEB_HOST_ARCH_OS), hurd)
|
||||||
|
DIRECT_RENDERING = --disable-driglx-direct
|
||||||
|
else
|
||||||
|
DIRECT_RENDERING = --enable-driglx-direct
|
||||||
|
DRI_DRIVERS += mach64 mga r128 r200 r300 radeon s3v savage tdfx trident
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(DEB_HOST_GNU_CPU), i486)
|
||||||
|
DRI_DRIVERS += i810 i915 i965 sis unichrome
|
||||||
|
else ifeq ($(DEB_HOST_GNU_CPU), x86_64)
|
||||||
|
DRI_DRIVERS += i915 i965 sis unichrome
|
||||||
|
else ifeq ($(DEB_HOST_ARCH), sparc)
|
||||||
|
DRI_DRIVERS += ffb
|
||||||
|
endif
|
||||||
|
|
||||||
|
confflags-dri = \
|
||||||
|
--with-driver=dri \
|
||||||
|
--with-dri-drivers="$(DRI_DRIVERS)" \
|
||||||
|
--with-demos=xdemos \
|
||||||
|
--libdir=/usr/lib/glx \
|
||||||
|
--with-dri-driverdir=/usr/lib/dri \
|
||||||
|
--enable-glx-tls \
|
||||||
|
$(DIRECT_RENDERING) \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-osmesa = \
|
||||||
|
--with-driver=osmesa \
|
||||||
|
--with-demos= \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-osmesa-static = \
|
||||||
|
--with-driver=osmesa \
|
||||||
|
--enable-static \
|
||||||
|
--with-demos= \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-osmesa16 = \
|
||||||
|
--with-driver=osmesa \
|
||||||
|
--with-osmesa-bits=16 \
|
||||||
|
--with-demos= \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-osmesa16-static = \
|
||||||
|
--with-driver=osmesa \
|
||||||
|
--with-osmesa-bits=16 \
|
||||||
|
--enable-static \
|
||||||
|
--with-demos= \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-osmesa32 = \
|
||||||
|
--with-driver=osmesa \
|
||||||
|
--with-osmesa-bits=32 \
|
||||||
|
--with-demos= \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-osmesa32-static = \
|
||||||
|
--with-driver=osmesa \
|
||||||
|
--with-osmesa-bits=32 \
|
||||||
|
--enable-static \
|
||||||
|
--with-demos= \
|
||||||
|
$(confflags-common)
|
||||||
|
|
||||||
|
confflags-swx11+glu = \
|
||||||
|
--with-driver=xlib \
|
||||||
|
--disable-gl-osmesa \
|
||||||
|
--with-demos= \
|
||||||
|
--disable-glut \
|
||||||
|
CFLAGS="$(CFLAGS)"
|
||||||
|
|
||||||
|
confflags-swx11+glu-static = \
|
||||||
|
--with-driver=xlib \
|
||||||
|
--disable-gl-osmesa \
|
||||||
|
--enable-static \
|
||||||
|
--with-demos= \
|
||||||
|
--disable-glut \
|
||||||
|
CFLAGS="$(CFLAGS)"
|
||||||
|
|
||||||
|
confflags-swx11+glu-i386-i686 = \
|
||||||
|
--with-driver=xlib \
|
||||||
|
--disable-gl-osmesa \
|
||||||
|
--with-demos= \
|
||||||
|
--disable-glut \
|
||||||
|
--libdir=/usr/lib/i686/cmov \
|
||||||
|
CFLAGS="$(CFLAGS) -march=i686"
|
||||||
|
|
||||||
|
configure: $(QUILT_STAMPFN) configure.ac
|
||||||
|
autoreconf -vfi
|
||||||
|
|
||||||
|
# list the configurations that will built
|
||||||
|
configs:
|
||||||
|
@echo Building the following configurations: $(CONFIGS)
|
||||||
|
|
||||||
|
$(STAMP_DIR)/stamp:
|
||||||
|
dh_testdir
|
||||||
|
mkdir -p $(STAMP_DIR)
|
||||||
|
>$@
|
||||||
|
|
||||||
|
$(QUILT_STAMPFN): $(STAMP_DIR)/stamp
|
||||||
|
|
||||||
|
build: $(BUILD_STAMPS)
|
||||||
|
|
||||||
|
$(STAMP)-build-%: configure
|
||||||
|
dh_testdir
|
||||||
|
|
||||||
|
mkdir -p $(DEB_BUILD_DIR)/$*
|
||||||
|
find $(CURDIR)/* -maxdepth 0 -not -path '$(DEB_BUILD_DIR)*' | \
|
||||||
|
xargs cp -rlf -t $(DEB_BUILD_DIR)/$*
|
||||||
|
cd $(DEB_BUILD_DIR)/$* && \
|
||||||
|
../../configure --prefix=/usr --mandir=\$${prefix}/share/man \
|
||||||
|
--infodir=\$${prefix}/share/info --sysconfdir=/etc \
|
||||||
|
--localstatedir=/var $(confflags) $(confflags-$*)
|
||||||
|
cd $(DEB_BUILD_DIR)/$* && $(MAKE)
|
||||||
|
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
install:
|
||||||
|
# Add here commands to install the package into debian/tmp
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_clean -k
|
||||||
|
dh_installdirs
|
||||||
|
$(MAKE) -f debian/rules $(INSTALL_TARGETS)
|
||||||
|
|
||||||
|
install-%: $(STAMP)-build-%
|
||||||
|
cd $(DEB_BUILD_DIR)/$* && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
|
||||||
|
|
||||||
|
clean: unpatch
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
rm -rf .pc
|
||||||
|
|
||||||
|
rm -f config.cache config.log config.status
|
||||||
|
rm -f */config.cache */config.log */config.status
|
||||||
|
rm -f conftest* */conftest*
|
||||||
|
rm -rf autom4te.cache */autom4te.cache
|
||||||
|
rm -rf obj-*
|
||||||
|
rm -rf configure config.guess config.sub config.h.in
|
||||||
|
rm -rf $$(find -name Makefile.in)
|
||||||
|
rm -rf aclocal.m4 missing depcomp install-sh ltmain.sh
|
||||||
|
rm -rf $(STAMP_DIR)
|
||||||
|
|
||||||
|
dh_clean
|
||||||
|
|
||||||
|
# Build architecture-independent files here.
|
||||||
|
binary-indep: install
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_installchangelogs -i
|
||||||
|
dh_installdocs -i
|
||||||
|
dh_installexamples -i
|
||||||
|
dh_install --sourcedir=debian/tmp --list-missing -i
|
||||||
|
dh_installman -i
|
||||||
|
dh_link -i
|
||||||
|
dh_compress -i
|
||||||
|
dh_fixperms -i
|
||||||
|
dh_installdeb -i
|
||||||
|
dh_gencontrol -i
|
||||||
|
dh_md5sums -i
|
||||||
|
dh_builddeb -i
|
||||||
|
|
||||||
|
# Build architecture-dependent files here.
|
||||||
|
binary-arch: install
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_installchangelogs -s
|
||||||
|
dh_installdocs -s
|
||||||
|
dh_installexamples -s
|
||||||
|
dh_install -s --sourcedir=debian/tmp --list-missing
|
||||||
|
dh_installman -s
|
||||||
|
dh_link -s
|
||||||
|
dh_strip -plibgl1-mesa-swx11 --dbg-package=libgl1-mesa-swx11-dbg
|
||||||
|
dh_strip -plibgl1-mesa-glx --dbg-package=libgl1-mesa-glx-dbg
|
||||||
|
dh_strip -plibgl1-mesa-dri --dbg-package=libgl1-mesa-dri-dbg
|
||||||
|
dh_strip -s
|
||||||
|
dh_compress -s
|
||||||
|
dh_fixperms -s
|
||||||
|
dh_makeshlibs -s
|
||||||
|
dh_installdeb -s
|
||||||
|
dh_shlibdeps -s
|
||||||
|
dh_gencontrol -s
|
||||||
|
dh_md5sums -s
|
||||||
|
dh_builddeb -s
|
||||||
|
|
||||||
|
binary: binary-indep binary-arch
|
||||||
|
.PHONY: configs build clean binary-indep binary-arch binary install
|
||||||
58
debian/scripts/choose-configs
vendored
Normal file
58
debian/scripts/choose-configs
vendored
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# Script to choose which configurations are to be built depending on the value
|
||||||
|
# of the DEB_BUILD_ARCH variable.
|
||||||
|
#
|
||||||
|
# Copyright © 2006 Thierry Reding <thierry@gilfi.de>
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
## architecture-specific configurations ######################################
|
||||||
|
|
||||||
|
# choose an architecture-specific build of swx11 and GLU if a matching
|
||||||
|
# configuration exists
|
||||||
|
#ifneq ($(wildcard configs/debian-swx11+glu-$(DEB_BUILD_ARCH)),)
|
||||||
|
# SWX11_GLU_CONFIGS := debian-swx11+glu-$(DEB_BUILD_ARCH)
|
||||||
|
#else
|
||||||
|
# SWX11_GLU_CONFIGS := debian-swx11+glu-any
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# same for static builds
|
||||||
|
#ifneq ($(wildcard configs/debian-swx11+glu-static-$(DEB_BUILD_ARCH)),)
|
||||||
|
# SWX11_GLU_CONFIGS += debian-swx11+glu-static-$(DEB_BUILD_ARCH)
|
||||||
|
#else
|
||||||
|
# SWX11_GLU_CONFIGS += debian-swx11+glu-static-any
|
||||||
|
#endif
|
||||||
|
|
||||||
|
SWX11_GLU_CONFIGS := swx11+glu swx11+glu-static
|
||||||
|
|
||||||
|
# and for the GLX/DRI-enabled libGL
|
||||||
|
ifneq ($(wildcard configs/debian-indirect-$(DEB_BUILD_ARCH)),)
|
||||||
|
DRI_CONFIGS := debian-indirect-$(DEB_BUILD_ARCH)
|
||||||
|
else
|
||||||
|
ifneq ($(wildcard configs/debian-dri-$(DEB_BUILD_ARCH)),)
|
||||||
|
DRI_CONFIGS := debian-dri-$(DEB_BUILD_ARCH)
|
||||||
|
else
|
||||||
|
DRI_CONFIGS := debian-dri-any
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
## CPU-optimized configurations ##############################################
|
||||||
|
|
||||||
|
ifeq ($(DEB_BUILD_ARCH), i386)
|
||||||
|
SWX11_GLU_CONFIGS += swx11+glu-i386-i686
|
||||||
|
# DRI_CONFIGS += debian-dri-i386-i686
|
||||||
|
endif
|
||||||
|
|
||||||
|
#ifeq ($(DEB_BUILD_ARCH), alpha)
|
||||||
|
# SWX11_GLU_CONFIGS += debian-swx11+glu-alpha-ev5
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifeq ($(DEB_BUILD_ARCH), powerpc)
|
||||||
|
# SWX11_GLU_CONFIGS += debian-swx11+glu-powerpc-603
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifeq ($(DEB_BUILD_ARCH), sparc)
|
||||||
|
# SWX11_GLU_CONFIGS += debian-swx11+glu-sparc-ultrasparc
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# vim: ft=make
|
||||||
|
|
||||||
2
debian/watch
vendored
Normal file
2
debian/watch
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
version=3
|
||||||
|
http://sf.net/mesa3d/MesaLib-(.*)\.tar\.gz
|
||||||
22
descrip.mms
Normal file
22
descrip.mms
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# Makefile for Mesa for VMS
|
||||||
|
# contributed by Jouk Jansen joukj@hrem.stm.tudelft.nl
|
||||||
|
|
||||||
|
macro :
|
||||||
|
@ macro=""
|
||||||
|
.ifdef NOSHARE
|
||||||
|
.else
|
||||||
|
@ if f$getsyi("HW_MODEL") .ge. 1024 then macro= "/MACRO=(SHARE=1)"
|
||||||
|
.endif
|
||||||
|
$(MMS)$(MMSQUALIFIERS)'macro' all
|
||||||
|
|
||||||
|
all :
|
||||||
|
if f$search("lib.dir") .eqs. "" then create/directory [.lib]
|
||||||
|
set default [.src]
|
||||||
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
|
set default [-.progs.util]
|
||||||
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
|
set default [-.demos]
|
||||||
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
|
set default [-.xdemos]
|
||||||
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
|
if f$search("[-]tests.DIR") .nes. "" then pipe set default [-.tests] ; $(MMS)$(MMSQUALIFIERS)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user