/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/spu2-x/src/CMakeLists.txt
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/spu2-x/src/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 314 - (show annotations) (download)
Sun Dec 26 18:56:19 2010 UTC (9 years, 1 month ago) by william
File MIME type: text/plain
File size: 2704 byte(s)
** merged upstream r4049 (re-integration of GregMiscellaneous branch)
** applied patched to GigTranser.cpp in ZZOgl from r4140 to change 'static int count = 0;' to 'static int path1_count = 0;')
1 # Check that people use the good file
2 if(NOT TOP_CMAKE_WAS_SOURCED)
3 message(FATAL_ERROR "
4 You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
5 It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
6 endif(NOT TOP_CMAKE_WAS_SOURCED)
7
8
9 # plugin name
10 set(Output spu2x)
11
12 set(CommonFlags
13 -fvisibility=hidden
14 -Wall
15 )
16
17 set(OptimizationFlags
18 -O2
19 -DNDEBUG
20 )
21
22 # Debug - Build
23 if(CMAKE_BUILD_TYPE STREQUAL Debug)
24 # add defines
25 add_definitions(${CommonFlags} -g)
26 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
27
28 # Devel - Build
29 if(CMAKE_BUILD_TYPE STREQUAL Devel)
30 # add defines
31 add_definitions(${CommonFlags} ${OptimizationFlags})
32 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
33
34 # Release - Build
35 if(CMAKE_BUILD_TYPE STREQUAL Release)
36 # add defines
37 add_definitions(${CommonFlags} ${OptimizationFlags})
38 endif(CMAKE_BUILD_TYPE STREQUAL Release)
39
40 # spu2x sources
41 set(spu2xSources
42 ADSR.cpp
43 Debug.cpp
44 Dma.cpp
45 iconvert.cpp
46 Lowpass.cpp
47 Mixer.cpp
48 PrecompiledHeader.cpp
49 PS2E-spu2.cpp
50 ReadInput.cpp
51 RegLog.cpp
52 RegTable.cpp
53 Reverb.cpp
54 SndOut.cpp
55 SndOut_Portaudio.cpp
56 spu2freeze.cpp
57 Spu2replay.cpp
58 spu2sys.cpp
59 Timestretcher.cpp
60 Wavedump_wav.cpp
61 WavFile.cpp
62 )
63
64 # spu2x headers
65 set(spu2xHeaders
66 Config.h
67 Debug.h
68 defs.h
69 Dma.h
70 DPLII.h
71 Global.h
72 Lowpass.h
73 Mixer.h
74 PS2E-spu2.h
75 regs.h
76 SndOut.h
77 spdif.h
78 Spu2replay.h
79 WavFile.h
80 )
81
82
83 # spu2x Linux sources
84 set(spu2xLinuxSources
85 Linux/AboutBox.cpp
86 Linux/Alsa.cpp
87 Linux/CfgHelpers.cpp
88 Linux/Config.cpp
89 Linux/ConfigDebug.cpp
90 Linux/ConfigSoundTouch.cpp
91 Linux/Dialogs.cpp)
92
93 # spu2x Linux headers
94 set(spu2xLinuxHeaders
95 Linux/Alsa.h
96 Linux/Config.h
97 Linux/Dialogs.h)
98
99 # add additional include directories
100 include_directories(.
101 Linux)
102
103 # add library
104 add_library(${Output} SHARED
105 ${spu2xSources}
106 ${spu2xHeaders}
107 ${spu2xLinuxSources}
108 ${spu2xLinuxHeaders})
109
110
111 # set output directory
112 set_target_properties(${Output} PROPERTIES
113 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
114
115 # link target with project internal libraries
116 target_link_libraries(${Output} Utilities x86emitter Utilities)
117
118 # link target with ALSA
119 target_link_libraries(${Output} ${ALSA_LIBRARIES})
120
121 # link target with PortAudio
122 target_link_libraries(${Output} ${PORTAUDIO_LIBRARIES})
123
124 # link target with SoundTouch
125 target_link_libraries(${Output} ${SOUNDTOUCH_LIBRARIES})
126
127 # User flags options
128 if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
129 target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
130 endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22