/[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 273 - (show annotations) (download)
Fri Nov 12 01:10:22 2010 UTC (10 years, 6 months ago) by william
File size: 8090 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4013 local: v0.9.7.197-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_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), 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 # -common_libs
190 #---------------------------------------
191 if(ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND common_libs)
192 set(spu2-x TRUE)
193 else(ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND common_libs)
194 set(spu2-x FALSE)
195 message(STATUS "Skip build of spu2-x: miss some dependencies")
196 message(STATUS "${msg_dep_spu2x}")
197 endif(ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND common_libs)
198 #---------------------------------------
199
200 #---------------------------------------
201 # zerospu2
202 #---------------------------------------
203 # requires: -SoundTouch
204 # -ALSA
205 # -PortAudio
206 #---------------------------------------
207 if(SOUNDTOUCH_FOUND AND ALSA_FOUND)
208 set(zerospu2 TRUE)
209 else(SOUNDTOUCH_FOUND AND ALSA_FOUND)
210 set(zerospu2 FALSE)
211 message(STATUS "Skip build of zerospu2: miss some dependencies")
212 message(STATUS "${msg_dep_zerospu2}")
213 endif(SOUNDTOUCH_FOUND AND ALSA_FOUND)
214 #---------------------------------------
215
216 #---------------------------------------
217 # USBnull
218 #---------------------------------------
219 set(USBnull TRUE)
220 #---------------------------------------
221
222 #-------------------------------------------------------------------------------
223 # [TODO] Write CMakeLists.txt for these plugins.
224 set(cdvdGigaherz FALSE)
225 set(CDVDisoEFP FALSE)
226 set(CDVDolio FALSE)
227 set(CDVDpeops FALSE)
228 set(GSdx FALSE)
229 set(LilyPad FALSE)
230 set(PeopsSPU2 FALSE)
231 set(SSSPSXPAD FALSE)
232 set(xpad FALSE)
233 #-------------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.22