summaryrefslogtreecommitdiffstats
path: root/src/core/CMakeLists.txt
blob: 95081f26088362b8d256307b6e07459fafcb8d05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
set(SRCS
            arm/dynarmic/arm_dynarmic.cpp
            arm/dynarmic/arm_dynarmic_cp15.cpp
            arm/dyncom/arm_dyncom.cpp
            arm/dyncom/arm_dyncom_dec.cpp
            arm/dyncom/arm_dyncom_interpreter.cpp
            arm/dyncom/arm_dyncom_thumb.cpp
            arm/dyncom/arm_dyncom_trans.cpp
            arm/unicorn/arm_unicorn.cpp
            arm/unicorn/unicorn_dynload.c
            arm/skyeye_common/armstate.cpp
            arm/skyeye_common/armsupp.cpp
            arm/skyeye_common/vfp/vfp.cpp
            arm/skyeye_common/vfp/vfpdouble.cpp
            arm/skyeye_common/vfp/vfpinstr.cpp
            arm/skyeye_common/vfp/vfpsingle.cpp
            core.cpp
            core_timing.cpp
            file_sys/archive_backend.cpp
            file_sys/disk_archive.cpp
            file_sys/ivfc_archive.cpp
            file_sys/path_parser.cpp
            file_sys/savedata_archive.cpp
            file_sys/title_metadata.cpp
            frontend/emu_window.cpp
            frontend/framebuffer_layout.cpp
            gdbstub/gdbstub.cpp
            hle/config_mem.cpp
            hle/kernel/address_arbiter.cpp
            hle/kernel/client_port.cpp
            hle/kernel/client_session.cpp
            hle/kernel/event.cpp
            hle/kernel/handle_table.cpp
            hle/kernel/hle_ipc.cpp
            hle/kernel/kernel.cpp
            hle/kernel/memory.cpp
            hle/kernel/mutex.cpp
            hle/kernel/process.cpp
            hle/kernel/resource_limit.cpp
            hle/kernel/semaphore.cpp
            hle/kernel/server_port.cpp
            hle/kernel/server_session.cpp
            hle/kernel/shared_memory.cpp
            hle/kernel/thread.cpp
            hle/kernel/timer.cpp
            hle/kernel/vm_manager.cpp
            hle/kernel/wait_object.cpp
            hle/lock.cpp
            hle/romfs.cpp
            hle/service/am/am.cpp
            hle/service/am/applet_oe.cpp
            hle/service/apm/apm.cpp
            hle/service/dsp_dsp.cpp
            hle/service/gsp_gpu.cpp
            hle/service/hid/hid.cpp
            hle/service/lm/lm.cpp
            hle/service/service.cpp
            hle/service/sm/controller.cpp
            hle/service/sm/sm.cpp
            hle/shared_page.cpp
            hle/svc.cpp
            hw/aes/arithmetic128.cpp
            hw/aes/ccm.cpp
            hw/aes/key.cpp
            hw/gpu.cpp
            hw/hw.cpp
            hw/lcd.cpp
            loader/elf.cpp
            loader/linker.cpp
            loader/loader.cpp
            loader/nro.cpp
            loader/nso.cpp
            tracer/recorder.cpp
            memory.cpp
            perf_stats.cpp
            settings.cpp
            telemetry_session.cpp
            )

set(HEADERS
            3ds.h
            arm/arm_interface.h
            arm/dynarmic/arm_dynarmic.h
            arm/dynarmic/arm_dynarmic_cp15.h
            arm/dyncom/arm_dyncom.h
            arm/dyncom/arm_dyncom_dec.h
            arm/dyncom/arm_dyncom_interpreter.h
            arm/dyncom/arm_dyncom_run.h
            arm/dyncom/arm_dyncom_thumb.h
            arm/dyncom/arm_dyncom_trans.h
            arm/unicorn/arm_unicorn.h
            arm/unicorn/unicorn_dynload.h
            arm/skyeye_common/arm_regformat.h
            arm/skyeye_common/armstate.h
            arm/skyeye_common/armsupp.h
            arm/skyeye_common/vfp/asm_vfp.h
            arm/skyeye_common/vfp/vfp.h
            arm/skyeye_common/vfp/vfp_helper.h
            core.h
            core_timing.h
            file_sys/archive_backend.h
            file_sys/directory_backend.h
            file_sys/disk_archive.h
            file_sys/errors.h
            file_sys/file_backend.h
            file_sys/ivfc_archive.h
            file_sys/path_parser.h
            file_sys/savedata_archive.h
            frontend/emu_window.h
            frontend/framebuffer_layout.h
            frontend/input.h
            gdbstub/gdbstub.h
            hle/config_mem.h
            hle/function_wrappers.h
            hle/ipc.h
            hle/ipc_helpers.h
            hle/kernel/address_arbiter.h
            hle/kernel/client_port.h
            hle/kernel/client_session.h
            hle/kernel/errors.h
            hle/kernel/event.h
            hle/kernel/handle_table.h
            hle/kernel/hle_ipc.h
            hle/kernel/kernel.h
            hle/kernel/memory.h
            hle/kernel/mutex.h
            hle/kernel/process.h
            hle/kernel/resource_limit.h
            hle/kernel/semaphore.h
            hle/kernel/server_port.h
            hle/kernel/server_session.h
            hle/kernel/session.h
            hle/kernel/shared_memory.h
            hle/kernel/thread.h
            hle/kernel/timer.h
            hle/kernel/vm_manager.h
            hle/kernel/wait_object.h
            hle/lock.h
            hle/result.h
            hle/romfs.h
            hle/service/am/am.h
            hle/service/am/applet_oe.h
            hle/service/apm/apm.h
            hle/service/dsp_dsp.h
            hle/service/gsp_gpu.h
            hle/service/hid/hid.h
            hle/service/lm/lm.h
            hle/service/service.h
            hle/service/sm/controller.h
            hle/service/sm/sm.h
            hle/shared_page.h
            hle/svc.h
            hw/aes/arithmetic128.h
            hw/aes/ccm.h
            hw/aes/key.h
            hw/gpu.h
            hw/hw.h
            hw/lcd.h
            loader/elf.h
            loader/linker.h
            loader/loader.h
            loader/nro.h
            loader/nso.h
            tracer/recorder.h
            tracer/citrace.h
            memory.h
            memory_setup.h
            mmio.h
            perf_stats.h
            settings.h
            telemetry_session.h
            )

create_directory_groups(${SRCS} ${HEADERS})
add_library(core STATIC ${SRCS} ${HEADERS})
target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core)
target_link_libraries(core PUBLIC Boost::boost PRIVATE cryptopp dynarmic fmt lz4_static)
if (ENABLE_WEB_SERVICE)
    target_link_libraries(core PUBLIC json-headers web_service)
endif()