-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
145 lines (133 loc) · 4.38 KB
/
CMakeLists.txt
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
# Require CMake 3.16
cmake_minimum_required(VERSION 3.16)
# Require C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options(-Wall -Werror -Wextra)
# Default to debug build
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
project(Nozomi CXX)
# Set include directories
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/android)
include_directories(${PROJECT_SOURCE_DIR}/include/common)
include_directories(${PROJECT_SOURCE_DIR}/include/hle)
include_directories(${PROJECT_SOURCE_DIR}/include/hle/service)
include_directories(${PROJECT_SOURCE_DIR}/include/hle/service/applet)
include_directories(${PROJECT_SOURCE_DIR}/include/loader)
include_directories(${PROJECT_SOURCE_DIR}/include/nvidia)
include_directories(${PROJECT_SOURCE_DIR}/include/nvidia/channel)
include_directories(${PROJECT_SOURCE_DIR}/include/nvidia/dev)
include_directories(${PROJECT_SOURCE_DIR}/include/renderer)
include_directories(${PROJECT_SOURCE_DIR}/include/sys)
include_directories(${PROJECT_SOURCE_DIR}/include/sys/gpu)
include_directories(${PROJECT_SOURCE_DIR}/external/dynarmic)
include_directories(${PROJECT_SOURCE_DIR}/external/plog)
add_subdirectory(${PROJECT_SOURCE_DIR}/external/dynarmic)
add_subdirectory(${PROJECT_SOURCE_DIR}/external/plog)
set(DYNARMIC_TESTS OFF)
set(DYNARMIC_FRONTENDS "A64")
# Set source files
set(SOURCES
src/main.cpp
src/android/buffer_queue.cpp
src/android/parcel.cpp
src/hle/handle_table.cpp
src/hle/ipc_manager.cpp
src/hle/kernel.cpp
src/hle/object.cpp
src/hle/svc.cpp
src/hle/service/apm.cpp
src/hle/service/applet_oe.cpp
src/hle/service/audren.cpp
src/hle/service/fatal.cpp
src/hle/service/fsp_srv.cpp
src/hle/service/hid.cpp
src/hle/service/nvdrv.cpp
src/hle/service/psm.cpp
src/hle/service/set_sys.cpp
src/hle/service/sm.cpp
src/hle/service/time.cpp
src/hle/service/vi.cpp
src/hle/service/applet/applet.cpp
src/hle/service/applet/error_applet.cpp
src/loader/loader.cpp
src/loader/nro.cpp
src/nvidia/host1x.cpp
src/nvidia/nvfile.cpp
src/nvidia/nvflinger.cpp
src/nvidia/channel/nvhost_gpu.cpp
src/nvidia/dev/nvhost_as_gpu.cpp
src/nvidia/dev/nvhost_ctrl.cpp
src/nvidia/dev/nvhost_ctrl_gpu.cpp
src/nvidia/dev/nvmap.cpp
src/renderer/renderer.cpp
src/renderer/window.cpp
src/sys/cpu.cpp
src/sys/emulator.cpp
src/sys/memory.cpp
src/sys/gpu/compute.cpp
src/sys/gpu/fermi.cpp
src/sys/gpu/kepler.cpp
src/sys/gpu/maxwell.cpp
src/sys/gpu/memory_manager.cpp
src/sys/gpu/pfifo.cpp
)
# Set header files
set(HEADERS
include/android/buffer_queue.hpp
include/android/parcel.hpp
include/common/file.hpp
include/common/types.hpp
include/hle/handle.hpp
include/hle/handle_table.hpp
include/hle/ipc.hpp
include/hle/ipc_manager.hpp
include/hle/kernel.hpp
include/hle/object.hpp
include/hle/result.hpp
include/hle/svc.hpp
include/hle/service/apm.hpp
include/hle/service/applet_oe.hpp
include/hle/service/audren.hpp
include/hle/service/fatal.hpp
include/hle/service/fsp_srv.hpp
include/hle/service/hid.hpp
include/hle/service/nvdrv.hpp
include/hle/service/psm.hpp
include/hle/service/set_sys.hpp
include/hle/service/sm.hpp
include/hle/service/time.hpp
include/hle/service/vi.hpp
include/hle/service/applet/applet.hpp
include/hle/service/applet/error_applet.hpp
include/loader/loader.hpp
include/loader/nro.hpp
include/nvidia/host1x.hpp
include/nvidia/nvfence.hpp
include/nvidia/nvfile.hpp
include/nvidia/nvflinger.hpp
include/nvidia/channel/nvhost_gpu.hpp
include/nvidia/dev/nvhost_as_gpu.hpp
include/nvidia/dev/nvhost_ctrl.hpp
include/nvidia/dev/nvhost_ctrl_gpu.hpp
include/nvidia/dev/nvmap.hpp
include/renderer/renderer.hpp
include/renderer/window.hpp
include/sys/cpu.hpp
include/sys/emulator.hpp
include/sys/memory.hpp
include/sys/gpu/compute.hpp
include/sys/gpu/fermi.hpp
include/sys/gpu/kepler.hpp
include/sys/gpu/maxwell.hpp
include/sys/gpu/maxwell_registers.hpp
include/sys/gpu/memory_manager.hpp
include/sys/gpu/pfifo.hpp
)
find_package(glfw3 REQUIRED)
find_package(Vulkan REQUIRED)
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
target_link_libraries(${PROJECT_NAME} PRIVATE dynarmic plog glfw Vulkan::Vulkan)