Browse code

Add CMake scripts in preparation for wxWidgets changes.

(One downside here, zlib's CMake script renames its zconf.h... which in turn means that the submodule now thinks there are uncommitted changes. :/)

Naram Qashat authored on 2021/03/28 19:43:33
Showing 17 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,13 @@
1
+cmake_minimum_required(VERSION 3.5)
2
+project(in_xsf CXX)
3
+enable_language(C)
4
+
5
+set(CMAKE_CXX_STANDARD 17)
6
+
7
+add_subdirectory(in_xsf_framework)
8
+add_subdirectory(in_2sf)
9
+add_subdirectory(in_gsf)
10
+add_subdirectory(in_ncsf)
11
+add_subdirectory(in_snsf)
12
+
13
+set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT "in_ncsf")
0 14
new file mode 100644
... ...
@@ -0,0 +1,121 @@
1
+set(HEADERS
2
+	desmume/arm_jit.h
3
+	desmume/armcpu.h
4
+	desmume/bios.h
5
+	desmume/cp15.h
6
+	desmume/emufile.h
7
+	desmume/FIFO.h
8
+	desmume/firmware.h
9
+	desmume/instruction_attributes.h
10
+	desmume/instruction_tabdef.inc
11
+	desmume/instructions.h
12
+	desmume/matrix.h
13
+	desmume/mc.h
14
+	desmume/mem.h
15
+	desmume/metaspu/metaspu.h
16
+	desmume/MMU.h
17
+	desmume/MMU_timing.h
18
+	desmume/NDSSystem.h
19
+	desmume/PACKED.h
20
+	desmume/PACKED_END.h
21
+	desmume/readwrite.h
22
+	desmume/registers.h
23
+	desmume/slot1.h
24
+	desmume/SPU.h
25
+	desmume/thumb_tabdef.inc
26
+	desmume/types.h
27
+	desmume/utils/AsmJit/apibegin.h
28
+	desmume/utils/AsmJit/apiend.h
29
+	desmume/utils/AsmJit/AsmJit.h
30
+	desmume/utils/AsmJit/base.h
31
+	desmume/utils/AsmJit/base/assembler.h
32
+	desmume/utils/AsmJit/base/codegen.h
33
+	desmume/utils/AsmJit/base/compiler.h
34
+	desmume/utils/AsmJit/base/constpool.h
35
+	desmume/utils/AsmJit/base/containers.h
36
+	desmume/utils/AsmJit/base/context_p.h
37
+	desmume/utils/AsmJit/base/cpuinfo.h
38
+	desmume/utils/AsmJit/base/cputicks.h
39
+	desmume/utils/AsmJit/base/error.h
40
+	desmume/utils/AsmJit/base/globals.h
41
+	desmume/utils/AsmJit/base/intutil.h
42
+	desmume/utils/AsmJit/base/lock.h
43
+	desmume/utils/AsmJit/base/logger.h
44
+	desmume/utils/AsmJit/base/operand.h
45
+	desmume/utils/AsmJit/base/runtime.h
46
+	desmume/utils/AsmJit/base/string.h
47
+	desmume/utils/AsmJit/base/vectypes.h
48
+	desmume/utils/AsmJit/base/vmem.h
49
+	desmume/utils/AsmJit/base/zone.h
50
+	desmume/utils/AsmJit/build.h
51
+	desmume/utils/AsmJit/Config.h
52
+	desmume/utils/AsmJit/host.h
53
+	desmume/utils/AsmJit/x86.h
54
+	desmume/utils/AsmJit/x86/x86assembler.h
55
+	desmume/utils/AsmJit/x86/x86compiler.h
56
+	desmume/utils/AsmJit/x86/x86context_p.h
57
+	desmume/utils/AsmJit/x86/x86cpuinfo.h
58
+	desmume/utils/AsmJit/x86/x86inst.h
59
+	desmume/utils/AsmJit/x86/x86operand.h
60
+	desmume/utils/AsmJit/x86/x86scheduler_p.h
61
+	desmume/utils/bits.h
62
+	desmume/version.h
63
+	spu/adpcmdecoder.h
64
+	spu/interpolator.h
65
+	spu/samplecache.h
66
+	spu/sampledata.h)
67
+set(SOURCES
68
+	desmume/addons/slot1_retail.cpp
69
+	desmume/arm_instructions.cpp
70
+	desmume/arm_jit.cpp
71
+	desmume/armcpu.cpp
72
+	desmume/bios.cpp
73
+	desmume/cp15.cpp
74
+	desmume/emufile.cpp
75
+	desmume/FIFO.cpp
76
+	desmume/firmware.cpp
77
+	desmume/mc.cpp
78
+	desmume/metaspu/metaspu.cpp
79
+	desmume/MMU.cpp
80
+	desmume/NDSSystem.cpp
81
+	desmume/readwrite.cpp
82
+	desmume/slot1.cpp
83
+	desmume/SPU.cpp
84
+	desmume/thumb_instructions.cpp
85
+	desmume/utils/AsmJit/base/assembler.cpp
86
+	desmume/utils/AsmJit/base/codegen.cpp
87
+	desmume/utils/AsmJit/base/compiler.cpp
88
+	desmume/utils/AsmJit/base/constpool.cpp
89
+	desmume/utils/AsmJit/base/containers.cpp
90
+	desmume/utils/AsmJit/base/context.cpp
91
+	desmume/utils/AsmJit/base/cpuinfo.cpp
92
+	desmume/utils/AsmJit/base/cputicks.cpp
93
+	desmume/utils/AsmJit/base/error.cpp
94
+	desmume/utils/AsmJit/base/globals.cpp
95
+	desmume/utils/AsmJit/base/logger.cpp
96
+	desmume/utils/AsmJit/base/operand.cpp
97
+	desmume/utils/AsmJit/base/runtime.cpp
98
+	desmume/utils/AsmJit/base/string.cpp
99
+	desmume/utils/AsmJit/base/vmem.cpp
100
+	desmume/utils/AsmJit/base/zone.cpp
101
+	desmume/utils/AsmJit/x86/x86assembler.cpp
102
+	desmume/utils/AsmJit/x86/x86compiler.cpp
103
+	desmume/utils/AsmJit/x86/x86context.cpp
104
+	desmume/utils/AsmJit/x86/x86cpuinfo.cpp
105
+	desmume/utils/AsmJit/x86/x86inst.cpp
106
+	desmume/utils/AsmJit/x86/x86operand.cpp
107
+	desmume/utils/AsmJit/x86/x86operand_regs.cpp
108
+	desmume/utils/AsmJit/x86/x86scheduler.cpp
109
+	desmume/version.cpp
110
+	spu/adpcmdecoder.cpp
111
+	spu/interpolator.cpp
112
+	spu/samplecache.cpp
113
+	spu/sampledata.cpp
114
+	XSFConfig_2SF.cpp
115
+	XSFPlayer_2SF.cpp)
116
+
117
+add_library(in_2sf SHARED ${HEADERS} ${SOURCES})
118
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS})
119
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCES})
120
+target_link_libraries(in_2sf
121
+	in_xsf_framework)
... ...
@@ -203,6 +203,9 @@
203 203
       <Project>{9d6d2540-b3dc-462b-bbc0-5b7c32a4d581}</Project>
204 204
     </ProjectReference>
205 205
   </ItemGroup>
206
+  <ItemGroup>
207
+    <Text Include="CMakeLists.txt" />
208
+  </ItemGroup>
206 209
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
207 210
   <ImportGroup Label="ExtensionTargets">
208 211
   </ImportGroup>
... ...
@@ -138,9 +138,6 @@
138 138
     <ClCompile Include="desmume/utils/AsmJit/base/operand.cpp">
139 139
       <Filter>Source Files\desmume\utils\AsmJit\base</Filter>
140 140
     </ClCompile>
141
-    <ClCompile Include="desmume/readwrite.cpp">
142
-      <Filter>Source Files\desmume\utils\AsmJit\base</Filter>
143
-    </ClCompile>
144 141
     <ClCompile Include="desmume/utils/AsmJit/base/runtime.cpp">
145 142
       <Filter>Source Files\desmume\utils\AsmJit\base</Filter>
146 143
     </ClCompile>
... ...
@@ -204,6 +201,9 @@
204 201
     <ClCompile Include="spu\sampledata.cpp">
205 202
       <Filter>Source Files\spu</Filter>
206 203
     </ClCompile>
204
+    <ClCompile Include="desmume/readwrite.cpp">
205
+      <Filter>Source Files\desmume</Filter>
206
+    </ClCompile>
207 207
   </ItemGroup>
208 208
   <ItemGroup>
209 209
     <ClInclude Include="desmume\armcpu.h">
... ...
@@ -407,4 +407,7 @@
407 407
       <Filter>Header Files\desmume</Filter>
408 408
     </None>
409 409
   </ItemGroup>
410
+  <ItemGroup>
411
+    <Text Include="CMakeLists.txt" />
412
+  </ItemGroup>
410 413
 </Project>
411 414
\ No newline at end of file
412 415
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+set(HEADERS
2
+	vbam/apu/blargg_common.h
3
+	vbam/apu/blargg_config.h
4
+	vbam/apu/Blip_Buffer.h
5
+	vbam/apu/Gb_Apu.h
6
+	vbam/apu/Gb_Oscs.h
7
+	vbam/apu/Multi_Buffer.h
8
+	vbam/common/Port.h
9
+	vbam/common/SoundDriver.h
10
+	vbam/gba/bios.h
11
+	vbam/gba/GBA.h
12
+	vbam/gba/GBAcpu.h
13
+	vbam/gba/GBAinline.h
14
+	vbam/gba/Globals.h
15
+	vbam/gba/Sound.h)
16
+set(SOURCES
17
+	vbam/apu/Blip_Buffer.cpp
18
+	vbam/apu/Gb_Apu.cpp
19
+	vbam/apu/Gb_Oscs.cpp
20
+	vbam/apu/Multi_Buffer.cpp
21
+	vbam/gba/bios.cpp
22
+	vbam/gba/GBA.cpp
23
+	vbam/gba/GBA-arm.cpp
24
+	vbam/gba/GBA-thumb.cpp
25
+	vbam/gba/Globals.cpp
26
+	vbam/gba/Sound.cpp
27
+	XSFConfig_GSF.cpp
28
+	XSFPlayer_GSF.cpp)
29
+
30
+add_library(in_gsf SHARED ${HEADERS} ${SOURCES})
31
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS})
32
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCES})
33
+target_link_libraries(in_gsf
34
+	in_xsf_framework)
... ...
@@ -113,6 +113,9 @@
113 113
       <Project>{9d6d2540-b3dc-462b-bbc0-5b7c32a4d581}</Project>
114 114
     </ProjectReference>
115 115
   </ItemGroup>
116
+  <ItemGroup>
117
+    <Text Include="CMakeLists.txt" />
118
+  </ItemGroup>
116 119
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
117 120
   <ImportGroup Label="ExtensionTargets">
118 121
   </ImportGroup>
... ...
@@ -117,4 +117,7 @@
117 117
       <Filter>Header Files\vbam\gba</Filter>
118 118
     </ClInclude>
119 119
   </ItemGroup>
120
+  <ItemGroup>
121
+    <Text Include="CMakeLists.txt" />
122
+  </ItemGroup>
120 123
 </Project>
121 124
\ No newline at end of file
122 125
new file mode 100644
... ...
@@ -0,0 +1,44 @@
1
+set(HEADERS
2
+	SSEQPlayer/Channel.h
3
+	SSEQPlayer/common.h
4
+	SSEQPlayer/consts.h
5
+	SSEQPlayer/FATSection.h
6
+	SSEQPlayer/INFOEntry.h
7
+	SSEQPlayer/INFOSection.h
8
+	SSEQPlayer/NDSStdHeader.h
9
+	SSEQPlayer/Player.h
10
+	SSEQPlayer/SBNK.h
11
+	SSEQPlayer/SDAT.h
12
+	SSEQPlayer/SSEQ.h
13
+	SSEQPlayer/SWAR.h
14
+	SSEQPlayer/SWAV.h
15
+	SSEQPlayer/SYMBSection.h
16
+	SSEQPlayer/Track.h
17
+	resource.h
18
+	XSFConfig_NCSF.h
19
+	XSFPlayer_NCSF.h)
20
+set(RESOURCES
21
+	in_ncsf.rc)
22
+set(SOURCES
23
+	SSEQPlayer/Channel.cpp
24
+	SSEQPlayer/FATSection.cpp
25
+	SSEQPlayer/INFOEntry.cpp
26
+	SSEQPlayer/INFOSection.cpp
27
+	SSEQPlayer/NDSStdHeader.cpp
28
+	SSEQPlayer/Player.cpp
29
+	SSEQPlayer/SBNK.cpp
30
+	SSEQPlayer/SDAT.cpp
31
+	SSEQPlayer/SSEQ.cpp
32
+	SSEQPlayer/SWAR.cpp
33
+	SSEQPlayer/SWAV.cpp
34
+	SSEQPlayer/SYMBSection.cpp
35
+	SSEQPlayer/Track.cpp
36
+	XSFConfig_NCSF.cpp
37
+	XSFPlayer_NCSF.cpp)
38
+
39
+add_library(in_ncsf SHARED ${HEADERS} ${RESOURCES} ${SOURCES})
40
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS})
41
+source_group("Resource Files" FILES ${RESOURCES})
42
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCES})
43
+target_link_libraries(in_ncsf
44
+	in_xsf_framework)
... ...
@@ -125,6 +125,9 @@
125 125
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
126 126
     </ResourceCompile>
127 127
   </ItemGroup>
128
+  <ItemGroup>
129
+    <Text Include="CMakeLists.txt" />
130
+  </ItemGroup>
128 131
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
129 132
   <ImportGroup Label="ExtensionTargets">
130 133
   </ImportGroup>
... ...
@@ -128,4 +128,7 @@
128 128
       <Filter>Resource Files</Filter>
129 129
     </ResourceCompile>
130 130
   </ItemGroup>
131
+  <ItemGroup>
132
+    <Text Include="CMakeLists.txt" />
133
+  </ItemGroup>
131 134
 </Project>
132 135
\ No newline at end of file
133 136
new file mode 100644
... ...
@@ -0,0 +1,48 @@
1
+set(HEADERS
2
+	snes9x/65c816.h
3
+	snes9x/apu/apu.h
4
+	snes9x/apu/blargg_common.h
5
+	snes9x/apu/blargg_config.h
6
+	snes9x/apu/blargg_endian.h
7
+	snes9x/apu/bspline_resampler.h
8
+	snes9x/apu/hermite_resampler.h
9
+	snes9x/apu/linear_resampler.h
10
+	snes9x/apu/osculating_resampler.h
11
+	snes9x/apu/resampler.h
12
+	snes9x/apu/ring_buffer.h
13
+	snes9x/apu/sinc_resampler.h
14
+	snes9x/apu/SNES_SPC.h
15
+	snes9x/apu/SPC_CPU.h
16
+	snes9x/apu/SPC_DSP.h
17
+	snes9x/cpuaddr.h
18
+	snes9x/cpuexec.h
19
+	snes9x/cpumacro.h
20
+	snes9x/dma.h
21
+	snes9x/getset.h
22
+	snes9x/memmap.h
23
+	snes9x/port.h
24
+	snes9x/ppu.h
25
+	snes9x/sdd1.h
26
+	snes9x/snes9x.h
27
+	XSFConfig_SNSF.h)
28
+set(SOURCES
29
+	snes9x/apu/apu.cpp
30
+	snes9x/apu/SNES_SPC.cpp
31
+	snes9x/apu/SNES_SPC_misc.cpp
32
+	snes9x/apu/SPC_DSP.cpp
33
+	snes9x/cpu.cpp
34
+	snes9x/cpuexec.cpp
35
+	snes9x/cpuops.cpp
36
+	snes9x/dma.cpp
37
+	snes9x/globals.cpp
38
+	snes9x/memmap.cpp
39
+	snes9x/ppu.cpp
40
+	snes9x/sdd1.cpp
41
+	XSFConfig_SNSF.cpp
42
+	XSFPlayer_SNSF.cpp)
43
+
44
+add_library(in_snsf SHARED ${HEADERS} ${SOURCES})
45
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS})
46
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCES})
47
+target_link_libraries(in_snsf
48
+	in_xsf_framework)
... ...
@@ -128,6 +128,9 @@
128 128
       <Project>{9d6d2540-b3dc-462b-bbc0-5b7c32a4d581}</Project>
129 129
     </ProjectReference>
130 130
   </ItemGroup>
131
+  <ItemGroup>
132
+    <Text Include="CMakeLists.txt" />
133
+  </ItemGroup>
131 134
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
132 135
   <ImportGroup Label="ExtensionTargets">
133 136
   </ImportGroup>
... ...
@@ -153,4 +153,7 @@
153 153
       <Filter>Header Files\snes9x\apu</Filter>
154 154
     </ClInclude>
155 155
   </ItemGroup>
156
+  <ItemGroup>
157
+    <Text Include="CMakeLists.txt" />
158
+  </ItemGroup>
156 159
 </Project>
157 160
\ No newline at end of file
... ...
@@ -13,6 +13,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "in_ncsf", "in_ncsf\in_ncsf.
13 13
 EndProject
14 14
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "in_xsf_framework", "in_xsf_framework\in_xsf_framework.vcxproj", "{9D6D2540-B3DC-462B-BBC0-5B7C32A4D581}"
15 15
 EndProject
16
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FFA9BB94-5C63-468F-8A9C-65FD7D3715E2}"
17
+	ProjectSection(SolutionItems) = preProject
18
+		CMakeLists.txt = CMakeLists.txt
19
+	EndProjectSection
20
+EndProject
16 21
 Global
17 22
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
18 23
 		Debug|Win32 = Debug|Win32
19 24
new file mode 100644
... ...
@@ -0,0 +1,247 @@
1
+# zlib
2
+add_subdirectory(zlib)
3
+
4
+# wxWidgets
5
+# Force settings
6
+set(wxBUILD_COMPATIBILITY 3.1 CACHE STRING " " FORCE)
7
+set(wxBUILD_INSTALL OFF CACHE BOOL " " FORCE)
8
+set(wxBUILD_OPTIMIZE ON CACHE BOOL " " FORCE)
9
+set(wxBUILD_PRECOMP OFF CACHE BOOL " " FORCE)
10
+set(wxBUILD_SHARED OFF CACHE BOOL " " FORCE)
11
+set(wxUSE_ABOUTDLG OFF CACHE BOOL " " FORCE)
12
+set(wxUSE_ACCEL OFF CACHE BOOL " " FORCE)
13
+set(wxUSE_ACCESSIBILITY OFF CACHE BOOL " " FORCE)
14
+set(wxUSE_ACTIVEX OFF CACHE BOOL " " FORCE)
15
+set(wxUSE_ACTIVITYINDICATOR OFF CACHE BOOL " " FORCE)
16
+set(wxUSE_ADDREMOVECTRL OFF CACHE BOOL " " FORCE)
17
+set(wxUSE_AFM_FOR_POSTSCRIPT OFF CACHE BOOL " " FORCE)
18
+set(wxUSE_ANIMATIONCTRL OFF CACHE BOOL " " FORCE)
19
+set(wxUSE_ANY OFF CACHE BOOL " " FORCE)
20
+set(wxUSE_APPLE_IEEE OFF CACHE BOOL " " FORCE)
21
+set(wxUSE_ARCHIVE_STREAMS OFF CACHE BOOL " " FORCE)
22
+set(wxUSE_ARTPROVIDER_STD OFF CACHE BOOL " " FORCE)
23
+set(wxUSE_ARTPROVIDER_TANGO OFF CACHE BOOL " " FORCE)
24
+set(wxUSE_AUI OFF CACHE BOOL " " FORCE)
25
+set(wxUSE_BANNERWINDOW OFF CACHE BOOL " " FORCE)
26
+set(wxUSE_BASE64 OFF CACHE BOOL " " FORCE)
27
+set(wxUSE_BITMAPCOMBOBOX OFF CACHE BOOL " " FORCE)
28
+set(wxUSE_BMPBUTTON OFF CACHE BOOL " " FORCE)
29
+set(wxUSE_BUSYINFO OFF CACHE BOOL " " FORCE)
30
+set(wxUSE_CALENDARCTRL OFF CACHE BOOL " " FORCE)
31
+set(wxUSE_CARET OFF CACHE BOOL " " FORCE)
32
+set(wxUSE_CHECKLISTBOX OFF CACHE BOOL " " FORCE)
33
+set(wxUSE_CHOICEBOOK OFF CACHE BOOL " " FORCE)
34
+set(wxUSE_CHOICEDLG OFF CACHE BOOL " " FORCE)
35
+set(wxUSE_CLIPBOARD OFF CACHE BOOL " " FORCE)
36
+set(wxUSE_CMDLINE_PARSER OFF CACHE BOOL " " FORCE)
37
+set(wxUSE_COLLPANE OFF CACHE BOOL " " FORCE)
38
+set(wxUSE_COLOURDLG OFF CACHE BOOL " " FORCE)
39
+set(wxUSE_COLOURPICKERCTRL OFF CACHE BOOL " " FORCE)
40
+set(wxUSE_COMBOBOX OFF CACHE BOOL " " FORCE)
41
+set(wxUSE_COMBOCTRL OFF CACHE BOOL " " FORCE)
42
+set(wxUSE_COMMANDLINKBUTTON OFF CACHE BOOL " " FORCE)
43
+set(wxUSE_CONFIG OFF CACHE BOOL " " FORCE)
44
+set(wxUSE_CONSOLE_EVENTLOOP OFF CACHE BOOL " " FORCE)
45
+set(wxUSE_CRASHREPORT OFF CACHE BOOL " " FORCE)
46
+set(wxUSE_DATAVIEWCTRL OFF CACHE BOOL " " FORCE)
47
+set(wxUSE_DATEPICKCTRL OFF CACHE BOOL " " FORCE)
48
+set(wxUSE_DATETIME OFF CACHE BOOL " " FORCE)
49
+set(wxUSE_DBGHELP OFF CACHE BOOL " " FORCE)
50
+set(wxUSE_DC_TRANSFORM_MATRIX OFF CACHE BOOL " " FORCE)
51
+set(wxUSE_DEBUGREPORT OFF CACHE BOOL " " FORCE)
52
+set(wxUSE_DIALUP_MANAGER OFF CACHE BOOL " " FORCE)
53
+set(wxUSE_DIRDLG OFF CACHE BOOL " " FORCE)
54
+set(wxUSE_DIRPICKERCTRL OFF CACHE BOOL " " FORCE)
55
+set(wxUSE_DISPLAY OFF CACHE BOOL " " FORCE)
56
+set(wxUSE_DOC_VIEW_ARCHITECTURE OFF CACHE BOOL " " FORCE)
57
+set(wxUSE_DRAG_AND_DROP OFF CACHE BOOL " " FORCE)
58
+set(wxUSE_DRAGIMAGE OFF CACHE BOOL " " FORCE)
59
+set(wxUSE_EDITABLELISTBOX OFF CACHE BOOL " " FORCE)
60
+set(wxUSE_EXPAT OFF CACHE STRING " " FORCE)
61
+set(wxUSE_FILE_HISTORY OFF CACHE BOOL " " FORCE)
62
+set(wxUSE_FILECTRL OFF CACHE BOOL " " FORCE)
63
+set(wxUSE_FILEDLG OFF CACHE BOOL " " FORCE)
64
+set(wxUSE_FILEPICKERCTRL OFF CACHE BOOL " " FORCE)
65
+set(wxUSE_FILESYSTEM OFF CACHE BOOL " " FORCE)
66
+set(wxUSE_FINDREPLDLG OFF CACHE BOOL " " FORCE)
67
+set(wxUSE_FONTDLG OFF CACHE BOOL " " FORCE)
68
+set(wxUSE_FONTENUM OFF CACHE BOOL " " FORCE)
69
+set(wxUSE_FONTMAP OFF CACHE BOOL " " FORCE)
70
+set(wxUSE_FONTPICKERCTRL OFF CACHE BOOL " " FORCE)
71
+set(wxUSE_FS_ARCHIVE OFF CACHE BOOL " " FORCE)
72
+set(wxUSE_FS_INET OFF CACHE BOOL " " FORCE)
73
+set(wxUSE_FS_ZIP OFF CACHE BOOL " " FORCE)
74
+set(wxUSE_FSVOLUME OFF CACHE BOOL " " FORCE)
75
+set(wxUSE_FSWATCHER OFF CACHE BOOL " " FORCE)
76
+set(wxUSE_GAUGE OFF CACHE BOOL " " FORCE)
77
+set(wxUSE_GEOMETRY OFF CACHE BOOL " " FORCE)
78
+set(wxUSE_GIF OFF CACHE BOOL " " FORCE)
79
+set(wxUSE_GRAPHICS_CONTEXT OFF CACHE BOOL " " FORCE)
80
+set(wxUSE_GRAPHICS_DIRECT2D OFF CACHE BOOL " " FORCE)
81
+set(wxUSE_HELP OFF CACHE BOOL " " FORCE)
82
+set(wxUSE_HOTKEY OFF CACHE BOOL " " FORCE)
83
+set(wxUSE_HTML OFF CACHE BOOL " " FORCE)
84
+set(wxUSE_HYPERLINKCTRL OFF CACHE BOOL " " FORCE)
85
+set(wxUSE_ICO_CUR OFF CACHE BOOL " " FORCE)
86
+set(wxUSE_IFF OFF CACHE BOOL " " FORCE)
87
+set(wxUSE_INFOBAR OFF CACHE BOOL " " FORCE)
88
+set(wxUSE_INICONF OFF CACHE BOOL " " FORCE)
89
+set(wxUSE_INTL OFF CACHE BOOL " " FORCE)
90
+set(wxUSE_IPC OFF CACHE BOOL " " FORCE)
91
+set(wxUSE_IPV6 OFF CACHE BOOL " " FORCE)
92
+set(wxUSE_JOYSTICK OFF CACHE BOOL " " FORCE)
93
+set(wxUSE_LIBJPEG OFF CACHE STRING " " FORCE)
94
+set(wxUSE_LIBPNG OFF CACHE STRING " " FORCE)
95
+set(wxUSE_LIBTIFF OFF CACHE STRING " " FORCE)
96
+set(wxUSE_LISTBOOK OFF CACHE BOOL " " FORCE)
97
+set(wxUSE_LISTCTRL OFF CACHE BOOL " " FORCE)
98
+set(wxUSE_LOG OFF CACHE BOOL " " FORCE)
99
+set(wxUSE_LOG_DIALOG OFF CACHE BOOL " " FORCE)
100
+set(wxUSE_LOGGUI OFF CACHE BOOL " " FORCE)
101
+set(wxUSE_LOGWINDOW OFF CACHE BOOL " " FORCE)
102
+set(wxUSE_LONGLONG OFF CACHE BOOL " " FORCE)
103
+set(wxUSE_MARKUP OFF CACHE BOOL " " FORCE)
104
+set(wxUSE_MDI OFF CACHE BOOL " " FORCE)
105
+set(wxUSE_MDI_ARCHITECTURE OFF CACHE BOOL " " FORCE)
106
+set(wxUSE_MEDIACTRL OFF CACHE BOOL " " FORCE)
107
+set(wxUSE_METAFILE OFF CACHE BOOL " " FORCE)
108
+set(wxUSE_MIMETYPE OFF CACHE BOOL " " FORCE)
109
+set(wxUSE_MINIFRAME OFF CACHE BOOL " " FORCE)
110
+set(wxUSE_MOUSEWHEEL OFF CACHE BOOL " " FORCE)
111
+set(wxUSE_MS_HTML_HELP OFF CACHE BOOL " " FORCE)
112
+set(wxUSE_NATIVE_DATAVIEWCTRL OFF CACHE BOOL " " FORCE)
113
+set(wxUSE_NATIVE_PROGRESSDLG OFF CACHE BOOL " " FORCE)
114
+set(wxUSE_NATIVE_STATUSBAR OFF CACHE BOOL " " FORCE)
115
+set(wxUSE_NOTIFICATION_MESSAGE OFF CACHE BOOL " " FORCE)
116
+set(wxUSE_NUMBERDLG OFF CACHE BOOL " " FORCE)
117
+set(wxUSE_ODCOMBOBOX OFF CACHE BOOL " " FORCE)
118
+set(wxUSE_PALETTE OFF CACHE BOOL " " FORCE)
119
+set(wxUSE_PCX OFF CACHE BOOL " " FORCE)
120
+set(wxUSE_PNM OFF CACHE BOOL " " FORCE)
121
+set(wxUSE_POPUPWIN OFF CACHE BOOL " " FORCE)
122
+set(wxUSE_POSTSCRIPT OFF CACHE BOOL " " FORCE)
123
+set(wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW OFF CACHE BOOL " " FORCE)
124
+set(wxUSE_PREFERENCES_EDITOR OFF CACHE BOOL " " FORCE)
125
+set(wxUSE_PRINTF_POS_PARAMS OFF CACHE BOOL " " FORCE)
126
+set(wxUSE_PRINTING_ARCHITECTURE OFF CACHE BOOL " " FORCE)
127
+set(wxUSE_PROGRESSDLG OFF CACHE BOOL " " FORCE)
128
+set(wxUSE_PROPGRID OFF CACHE BOOL " " FORCE)
129
+set(wxUSE_PROTOCOL OFF CACHE BOOL " " FORCE)
130
+set(wxUSE_PROTOCOL_FILE OFF CACHE BOOL " " FORCE)
131
+set(wxUSE_PROTOCOL_FTP OFF CACHE BOOL " " FORCE)
132
+set(wxUSE_PROTOCOL_HTTP OFF CACHE BOOL " " FORCE)
133
+set(wxUSE_RADIOBOX OFF CACHE BOOL " " FORCE)
134
+set(wxUSE_RADIOBTN OFF CACHE BOOL " " FORCE)
135
+set(wxUSE_REARRANGECTRL OFF CACHE BOOL " " FORCE)
136
+set(wxUSE_REGKEY OFF CACHE BOOL " " FORCE)
137
+set(wxUSE_RIBBON OFF CACHE BOOL " " FORCE)
138
+set(wxUSE_RICHMSGDLG OFF CACHE BOOL " " FORCE)
139
+set(wxUSE_RICHTEXT OFF CACHE BOOL " " FORCE)
140
+set(wxUSE_RICHTOOLTIP OFF CACHE BOOL " " FORCE)
141
+set(wxUSE_SASH OFF CACHE BOOL " " FORCE)
142
+set(wxUSE_SEARCHCTRL OFF CACHE BOOL " " FORCE)
143
+set(wxUSE_SECRETSTORE OFF CACHE BOOL " " FORCE)
144
+set(wxUSE_SLIDER OFF CACHE BOOL " " FORCE)
145
+set(wxUSE_SNGLINST_CHECKER OFF CACHE BOOL " " FORCE)
146
+set(wxUSE_SOCKETS OFF CACHE BOOL " " FORCE)
147
+set(wxUSE_SOUND OFF CACHE BOOL " " FORCE)
148
+set(wxUSE_SPINBTN OFF CACHE BOOL " " FORCE)
149
+set(wxUSE_SPINCTRL OFF CACHE BOOL " " FORCE)
150
+set(wxUSE_SPLASH OFF CACHE BOOL " " FORCE)
151
+set(wxUSE_SPLINES OFF CACHE BOOL " " FORCE)
152
+set(wxUSE_SPLITTER OFF CACHE BOOL " " FORCE)
153
+set(wxUSE_STACKWALKER OFF CACHE BOOL " " FORCE)
154
+set(wxUSE_STARTUP_TIPS OFF CACHE BOOL " " FORCE)
155
+set(wxUSE_STATBMP OFF CACHE BOOL " " FORCE)
156
+set(wxUSE_STATBOX OFF CACHE BOOL " " FORCE)
157
+set(wxUSE_STATLINE OFF CACHE BOOL " " FORCE)
158
+set(wxUSE_STATUSBAR OFF CACHE BOOL " " FORCE)
159
+set(wxUSE_STC OFF CACHE BOOL " " FORCE)
160
+set(wxUSE_STDPATHS OFF CACHE BOOL " " FORCE)
161
+set(wxUSE_STOPWATCH OFF CACHE BOOL " " FORCE)
162
+set(wxUSE_STL ON CACHE BOOL " " FORCE)
163
+set(wxUSE_SVG OFF CACHE BOOL " " FORCE)
164
+set(wxUSE_SYSTEM_OPTIONS OFF CACHE BOOL " " FORCE)
165
+set(wxUSE_TARSTREAM OFF CACHE BOOL " " FORCE)
166
+set(wxUSE_TASKBARBUTTON OFF CACHE BOOL " " FORCE)
167
+set(wxUSE_TASKBARICON OFF CACHE BOOL " " FORCE)
168
+set(wxUSE_TASKBARICON_BALLOONS OFF CACHE BOOL " " FORCE)
169
+set(wxUSE_TEXTBUFFER OFF CACHE BOOL " " FORCE)
170
+set(wxUSE_TEXTDLG OFF CACHE BOOL " " FORCE)
171
+set(wxUSE_TEXTFILE OFF CACHE BOOL " " FORCE)
172
+set(wxUSE_TGA OFF CACHE BOOL " " FORCE)
173
+set(wxUSE_THREADS OFF CACHE BOOL " " FORCE)
174
+set(wxUSE_TIMEPICKCTRL OFF CACHE BOOL " " FORCE)
175
+set(wxUSE_TIMER OFF CACHE BOOL " " FORCE)
176
+set(wxUSE_TIPWINDOW OFF CACHE BOOL " " FORCE)
177
+set(wxUSE_TOGGLEBTN OFF CACHE BOOL " " FORCE)
178
+set(wxUSE_TOOLBAR OFF CACHE BOOL " " FORCE)
179
+set(wxUSE_TOOLBAR_NATIVE OFF CACHE BOOL " " FORCE)
180
+set(wxUSE_TOOLBOOK OFF CACHE BOOL " " FORCE)
181
+set(wxUSE_TOOLTIPS OFF CACHE BOOL " " FORCE)
182
+set(wxUSE_TREEBOOK OFF CACHE BOOL " " FORCE)
183
+set(wxUSE_TREECTRL OFF CACHE BOOL " " FORCE)
184
+set(wxUSE_TREELISTCTRL OFF CACHE BOOL " " FORCE)
185
+set(wxUSE_UIACTIONSIMULATOR OFF CACHE BOOL " " FORCE)
186
+set(wxUSE_UNSAFE_WXSTRING_CONV OFF CACHE BOOL " " FORCE)
187
+set(wxUSE_URL OFF CACHE BOOL " " FORCE)
188
+set(wxUSE_WEBVIEW OFF CACHE BOOL " " FORCE)
189
+set(wxUSE_WEBVIEW_IE OFF CACHE BOOL " " FORCE)
190
+set(wxUSE_WEBVIEW_WEBKIT OFF CACHE BOOL " " FORCE)
191
+set(wxUSE_WINRT OFF CACHE BOOL " " FORCE)
192
+set(wxUSE_WIZARDDLG OFF CACHE BOOL " " FORCE)
193
+set(wxUSE_WXHTML_HELP OFF CACHE BOOL " " FORCE)
194
+set(wxUSE_XLOCALE OFF CACHE BOOL " " FORCE)
195
+set(wxUSE_XML OFF CACHE BOOL " " FORCE)
196
+set(wxUSE_XPM OFF CACHE BOOL " " FORCE)
197
+set(wxUSE_XRC OFF CACHE BOOL " " FORCE)
198
+set(wxUSE_ZIPSTREAM OFF CACHE BOOL " " FORCE)
199
+set(wxUSE_ZLIB OFF CACHE STRING " " FORCE)
200
+
201
+add_subdirectory(wxWidgets)
202
+
203
+# in_xsf_framework
204
+set(WINAMP_HEADERS
205
+	winamp/in2.h
206
+	winamp/out.h
207
+	winamp/wa_ipc.h)
208
+set(HEADERS
209
+	${WINAMP_HEADERS}
210
+	convert.h
211
+	DialogBuilder.h
212
+	eqstr.h
213
+	ltstr.h
214
+	TagList.h
215
+	windowsh_wrapper.h
216
+	XSFCommon.h
217
+	XSFConfig.h
218
+	XSFFile.h
219
+	XSFPlayer.h)
220
+set(SOURCES
221
+	DialogBuilder.cpp
222
+	in_xsf.cpp
223
+	TagList.cpp
224
+	XSFConfig.cpp
225
+	XSFConfig_Winamp.cpp
226
+	XSFFile.cpp
227
+	XSFPlayer.cpp)
228
+
229
+add_library(in_xsf_framework STATIC ${HEADERS} ${SOURCES})
230
+source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS})
231
+source_group("Source Files" ${SOURCES})
232
+target_compile_definitions(in_xsf_framework PUBLIC
233
+	_CRT_SECURE_NO_WARNINGS
234
+	WINAMP_PLUGIN
235
+	UNICODE_INPUT_PLUGIN
236
+	$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Debug>>:_ITERATOR_DEBUG_LEVEL=0>)
237
+target_compile_options(in_xsf_framework PUBLIC
238
+	$<$<CXX_COMPILER_ID:MSVC>:/W4>)
239
+target_include_directories(in_xsf_framework PUBLIC
240
+	${CMAKE_CURRENT_SOURCE_DIR}
241
+	${CMAKE_CURRENT_SOURCE_DIR}/winamp
242
+	${CMAKE_CURRENT_SOURCE_DIR}/zlib
243
+	${CMAKE_CURRENT_BINARY_DIR}/zlib)
244
+target_link_libraries(in_xsf_framework
245
+	wx::base
246
+	wx::core
247
+	zlibstatic)
... ...
@@ -110,6 +110,9 @@
110 110
     <ClCompile Include="zlib\uncompr.c" />
111 111
     <ClCompile Include="zlib\zutil.c" />
112 112
   </ItemGroup>
113
+  <ItemGroup>
114
+    <Text Include="CMakeLists.txt" />
115
+  </ItemGroup>
113 116
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
114 117
   <ImportGroup Label="ExtensionTargets">
115 118
   </ImportGroup>
... ...
@@ -123,4 +123,7 @@
123 123
       <Filter>Source Files\zlib</Filter>
124 124
     </ClCompile>
125 125
   </ItemGroup>
126
+  <ItemGroup>
127
+    <Text Include="CMakeLists.txt" />
128
+  </ItemGroup>
126 129
 </Project>
127 130
\ No newline at end of file