/[pcsx2_0.9.7]/trunk/cmake/SelectPcsx2Plugins.cmake
ViewVC logotype

Contents of /trunk/cmake/SelectPcsx2Plugins.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 4 months ago) by william
File size: 8165 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 #-------------------------------------------------------------------------------
2 # Dependency message print
3 #-------------------------------------------------------------------------------
4 set(msg_dep_common_libs "check these libraries -> wxWidgets (>=2.8.10), sparsehash (>=1.5)")
5 set(msg_dep_pcsx2 "check these libraries -> wxWidgets (>=2.8.10), gtk2 (>=2.16), zlib (>=1.2.4), pcsx2 common libs")
6 set(msg_dep_cdvdiso "check these libraries -> bzip2 (>=1.0.5)")
7 set(msg_dep_zerogs "check these libraries -> glew (>=1.5), opengl, X11, nvidia-cg-toolkit (>=2.1)")
8 set(msg_dep_zzogl "check these libraries -> glew (>=1.5), jpeg (>=6.2), opengl, X11, nvidia-cg-toolkit (>=2.1), pcsx2 common libs")
9 set(msg_dep_onepad "check these libraries -> sdl (>=1.2)")
10 set(msg_dep_zeropad "check these libraries -> sdl (>=1.2)")
11 set(msg_dep_spu2x "check these libraries -> soundtouch (>=1.5), alsa, portaudio (>=1.9), a52 (>= 0.7.4), pcsx2 common libs")
12 set(msg_dep_zerospu2 "check these libraries -> soundtouch (>=1.5), alsa")
13
14 #-------------------------------------------------------------------------------
15 # Pcsx2 core & common libs
16 #-------------------------------------------------------------------------------
17 # Check for additional dependencies.
18 # If all dependencies are available, including OS, build it
19 #-------------------------------------------------------------------------------
20
21 #---------------------------------------
22 # Common libs
23 # requires: -wx
24 # -sparsehash
25 #---------------------------------------
26 if(wxWidgets_FOUND AND SPARSEHASH_FOUND)
27 set(common_libs TRUE)
28 else(wxWidgets_FOUND AND SPARSEHASH_FOUND)
29 set(common_libs FALSE)
30 message(STATUS "Skip build of common libraries: miss some dependencies")
31 message(STATUS "${msg_dep_common_libs}")
32 endif(wxWidgets_FOUND AND SPARSEHASH_FOUND)
33
34 #---------------------------------------
35 # Pcsx2 core
36 # requires: -wx
37 # -gtk2 (linux)
38 # -zlib
39 # -common_libs
40 #---------------------------------------
41 # Common dependancy
42 if(wxWidgets_FOUND AND ZLIB_FOUND AND common_libs)
43 set(pcsx2_core TRUE)
44 else(wxWidgets_FOUND AND ZLIB_FOUND AND common_libs)
45 set(pcsx2_core FALSE)
46 message(STATUS "Skip build of pcsx2 core: miss some dependencies")
47 message(STATUS "${msg_dep_pcsx2}")
48 endif(wxWidgets_FOUND AND ZLIB_FOUND AND common_libs)
49 # Linux need also gtk2
50 if(Linux AND NOT GTK2_FOUND)
51 set(pcsx2_core FALSE)
52 message(STATUS "Skip build of pcsx2 core: miss some dependencies")
53 message(STATUS "${msg_dep_pcsx2}")
54 endif(Linux AND NOT GTK2_FOUND)
55
56
57 #-------------------------------------------------------------------------------
58 # Plugins
59 #-------------------------------------------------------------------------------
60 # Check all plugins for additional dependencies.
61 # If all dependencies of a plugin are available, including OS, the plugin will
62 # be build.
63 #-------------------------------------------------------------------------------
64
65 #---------------------------------------
66 # CDVDnull
67 #---------------------------------------
68 set(CDVDnull TRUE)
69 #---------------------------------------
70
71 #---------------------------------------
72 # CDVDiso
73 #---------------------------------------
74 # requires: -BZip2
75 #---------------------------------------
76 if(BZIP2_FOUND)
77 set(CDVDiso TRUE)
78 else(BZIP2_FOUND)
79 set(CDVDiso FALSE)
80 message(STATUS "Skip build of CDVDiso: miss some dependencies")
81 message(STATUS "${msg_dep_cdvdiso}")
82 endif(BZIP2_FOUND)
83
84 #---------------------------------------
85 # CDVDlinuz
86 #---------------------------------------
87 set(CDVDlinuz TRUE)
88
89 #---------------------------------------
90 # dev9null
91 #---------------------------------------
92 set(dev9null TRUE)
93 #---------------------------------------
94
95 #---------------------------------------
96 # FWnull
97 #---------------------------------------
98 set(FWnull TRUE)
99 #---------------------------------------
100
101 #---------------------------------------
102 # GSnull
103 #---------------------------------------
104 set(GSnull TRUE)
105 #---------------------------------------
106
107 #---------------------------------------
108 # zerogs
109 #---------------------------------------
110 # requires: -GLEW
111 # -OpenGL
112 # -X11
113 # -CG
114 #---------------------------------------
115 if(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND)
116 set(zerogs TRUE)
117 else(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND)
118 set(zerogs FALSE)
119 message(STATUS "Skip build of zerogs: miss some dependencies")
120 message(STATUS "${msg_dep_zerogs}")
121 endif(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND)
122 #---------------------------------------
123
124 #---------------------------------------
125 # zzogl-pg
126 #---------------------------------------
127 # requires: -GLEW
128 # -OpenGL
129 # -X11
130 # -CG
131 # -JPEG
132 # -common_libs
133 #---------------------------------------
134 if(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND AND JPEG_FOUND AND common_libs)
135 set(zzogl TRUE)
136 else(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND AND JPEG_FOUND AND common_libs)
137 set(zzogl FALSE)
138 message(STATUS "Skip build of zzogl: miss some dependencies")
139 message(STATUS "${msg_dep_zzogl}")
140 endif(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND AND JPEG_FOUND AND common_libs)
141 #---------------------------------------
142
143 #---------------------------------------
144 # PadNull
145 #---------------------------------------
146 set(PadNull TRUE)
147 #---------------------------------------
148
149 #---------------------------------------
150 # onepad
151 #---------------------------------------
152 # requires: -SDL
153 #---------------------------------------
154 if(SDL_FOUND)
155 set(onepad TRUE)
156 else(SDL_FOUND)
157 set(onepad FALSE)
158 message(STATUS "Skip build of onepad: miss some dependencies")
159 message(STATUS "${msg_dep_onepad}")
160 endif(SDL_FOUND)
161 #---------------------------------------
162
163 #---------------------------------------
164 # zeropad
165 #---------------------------------------
166 # requires: -SDL
167 #---------------------------------------
168 if(SDL_FOUND)
169 set(zeropad TRUE)
170 else(SDL_FOUND)
171 set(zeropad FALSE)
172 message(STATUS "Skip build of zeropad: miss some dependencies")
173 message(STATUS "${msg_dep_zeropad}")
174 endif(SDL_FOUND)
175 #---------------------------------------
176
177 #---------------------------------------
178 # SPU2null
179 #---------------------------------------
180 set(SPU2null TRUE)
181 #---------------------------------------
182
183 #---------------------------------------
184 # spu2-x
185 #---------------------------------------
186 # requires: -SoundTouch
187 # -ALSA
188 # -Portaudio
189 # -A52
190 # -common_libs
191 #---------------------------------------
192 if(A52_FOUND AND ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND common_libs)
193 set(spu2-x TRUE)
194 else(A52_FOUND AND ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND common_libs)
195 set(spu2-x FALSE)
196 message(STATUS "Skip build of spu2-x: miss some dependencies")
197 message(STATUS "${msg_dep_spu2x}")
198 endif(A52_FOUND AND ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND common_libs)
199 #---------------------------------------
200
201 #---------------------------------------
202 # zerospu2
203 #---------------------------------------
204 # requires: -SoundTouch
205 # -ALSA
206 # -PortAudio
207 #---------------------------------------
208 if(SOUNDTOUCH_FOUND AND ALSA_FOUND)
209 set(zerospu2 TRUE)
210 else(SOUNDTOUCH_FOUND AND ALSA_FOUND)
211 set(zerospu2 FALSE)
212 message(STATUS "Skip build of zerospu2: miss some dependencies")
213 message(STATUS "${msg_dep_zerospu2}")
214 endif(SOUNDTOUCH_FOUND AND ALSA_FOUND)
215 #---------------------------------------
216
217 #---------------------------------------
218 # USBnull
219 #---------------------------------------
220 set(USBnull TRUE)
221 #---------------------------------------
222
223 #-------------------------------------------------------------------------------
224 # [TODO] Write CMakeLists.txt for these plugins.
225 set(cdvdGigaherz FALSE)
226 set(CDVDisoEFP FALSE)
227 set(CDVDolio FALSE)
228 set(CDVDpeops FALSE)
229 set(GSdx FALSE)
230 set(LilyPad FALSE)
231 set(PeopsSPU2 FALSE)
232 set(SSSPSXPAD FALSE)
233 set(xpad FALSE)
234 #-------------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.22