2019-07-24 22:19:43 +02:00
|
|
|
cmake_minimum_required(VERSION 3.8)
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 21:09:31 +01:00
|
|
|
project(Skyline VERSION 0.3)
|
2019-06-29 15:35:24 +02:00
|
|
|
|
2019-12-05 16:35:34 +01:00
|
|
|
set(BUILD_TESTS OFF)
|
2019-09-05 14:42:19 +02:00
|
|
|
set(BUILD_TESTING OFF)
|
2019-07-24 22:19:43 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 21:09:31 +01:00
|
|
|
set(source_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp)
|
2019-10-18 12:52:38 +02:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-Ofast -flto=full -Wno-unused-command-line-argument")
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 21:09:31 +01:00
|
|
|
if (uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE")
|
|
|
|
add_compile_definitions(NDEBUG)
|
|
|
|
endif()
|
|
|
|
|
2019-12-05 16:35:34 +01:00
|
|
|
set(CMAKE_POLICY_DEFAULT_CMP0048 OLD)
|
2019-07-24 22:19:43 +02:00
|
|
|
add_subdirectory("libraries/tinyxml2")
|
|
|
|
add_subdirectory("libraries/fmt")
|
2019-12-05 16:35:34 +01:00
|
|
|
set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)
|
2019-07-24 22:19:43 +02:00
|
|
|
|
2019-10-13 10:04:47 +02:00
|
|
|
include_directories(${source_DIR}/skyline)
|
2019-06-29 18:13:36 +02:00
|
|
|
|
2019-09-24 22:54:27 +02:00
|
|
|
add_library(skyline SHARED
|
|
|
|
${source_DIR}/main.cpp
|
|
|
|
${source_DIR}/skyline/common.cpp
|
|
|
|
${source_DIR}/skyline/nce.cpp
|
2019-12-05 16:35:34 +01:00
|
|
|
${source_DIR}/skyline/jvm.cpp
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 21:09:31 +01:00
|
|
|
${source_DIR}/skyline/gpu.cpp
|
|
|
|
${source_DIR}/skyline/gpu/display.cpp
|
|
|
|
${source_DIR}/skyline/gpu/parcel.cpp
|
|
|
|
${source_DIR}/skyline/gpu/devices/nvhost_ctrl.cpp
|
|
|
|
${source_DIR}/skyline/gpu/devices/nvhost_ctrl_gpu.cpp
|
|
|
|
${source_DIR}/skyline/gpu/devices/nvhost_channel.cpp
|
|
|
|
${source_DIR}/skyline/gpu/devices/nvmap.cpp
|
|
|
|
${source_DIR}/skyline/gpu/devices/nvhost_as_gpu.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/os.cpp
|
|
|
|
${source_DIR}/skyline/loader/nro.cpp
|
|
|
|
${source_DIR}/skyline/kernel/ipc.cpp
|
|
|
|
${source_DIR}/skyline/kernel/svc.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KSyncObject.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KProcess.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KThread.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KSharedMemory.cpp
|
2019-10-13 10:04:47 +02:00
|
|
|
${source_DIR}/skyline/kernel/types/KTransferMemory.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/kernel/types/KPrivateMemory.cpp
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 21:09:31 +01:00
|
|
|
${source_DIR}/skyline/services/serviceman.cpp
|
|
|
|
${source_DIR}/skyline/services/sm/sm.cpp
|
|
|
|
${source_DIR}/skyline/services/fatal/fatal.cpp
|
|
|
|
${source_DIR}/skyline/services/set/sys.cpp
|
|
|
|
${source_DIR}/skyline/services/apm/apm.cpp
|
|
|
|
${source_DIR}/skyline/services/am/applet.cpp
|
|
|
|
${source_DIR}/skyline/services/am/appletController.cpp
|
|
|
|
${source_DIR}/skyline/services/hid/hid.cpp
|
|
|
|
${source_DIR}/skyline/services/time/time.cpp
|
|
|
|
${source_DIR}/skyline/services/fs/fs.cpp
|
|
|
|
${source_DIR}/skyline/services/nvdrv/nvdrv.cpp
|
|
|
|
${source_DIR}/skyline/services/nvnflinger/dispdrv.cpp
|
|
|
|
${source_DIR}/skyline/services/vi/vi_m.cpp
|
2019-07-24 22:19:43 +02:00
|
|
|
)
|
Framebuffer and NativeActivity
What was added:
* Framebuffer
* NativeActivity
* NV Services
* IOCTL Handler
* NV Devices:
* * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E
* * /dev/nvhost-as-gpu
* * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714
* * /dev/nvhost-ctrl
* * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714
* SVCs:
* * SetMemoryAttribute
* * CreateTransferMemory
* * ResetSignal
* * GetSystemTick
* Addition of Compact Logger
What was fixed:
* SVCs:
* * SetHeapSize
* * SetMemoryAttribute
* * QueryMemory
* A release build would not set CMAKE_BUILD_TYPE to "RELEASE"
* The logger code was simplified
2019-11-13 21:09:31 +01:00
|
|
|
|
|
|
|
target_link_libraries(skyline vulkan GLESv3 EGL android fmt tinyxml2)
|
2019-09-24 22:54:27 +02:00
|
|
|
target_compile_options(skyline PRIVATE -Wno-c++17-extensions)
|