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

  ViewVC Help
Powered by ViewVC 1.1.22