2019-07-24 22:19:43 +02:00
|
|
|
cmake_minimum_required(VERSION 3.8)
|
2020-03-23 17:12:37 +01:00
|
|
|
project(Skyline LANGUAGES CXX ASM 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)
|
2020-03-29 21:07:11 +02:00
|
|
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build Shared Libraries" FORCE)
|
|
|
|
|
2019-07-24 22:19:43 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
2020-03-29 21:07:11 +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
|
|
|
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")
|
2020-01-02 21:19:34 +01:00
|
|
|
add_subdirectory("libraries/oboe")
|
2020-06-25 17:51:05 +02:00
|
|
|
add_subdirectory("libraries/lz4/contrib/cmake_unofficial")
|
|
|
|
include_directories("libraries/lz4/lib")
|
2020-04-22 23:33:49 +02:00
|
|
|
include_directories("libraries/oboe/include")
|
|
|
|
include_directories("libraries/vkhpp/include")
|
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
|
2020-06-19 22:18:33 +02:00
|
|
|
${source_DIR}/emu_jni.cpp
|
|
|
|
${source_DIR}/loader_jni.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/common.cpp
|
2020-01-07 03:36:08 +01:00
|
|
|
${source_DIR}/skyline/nce/guest.S
|
|
|
|
${source_DIR}/skyline/nce/guest.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/nce.cpp
|
2019-12-05 16:35:34 +01:00
|
|
|
${source_DIR}/skyline/jvm.cpp
|
2020-04-17 23:23:38 +02:00
|
|
|
${source_DIR}/skyline/audio.cpp
|
|
|
|
${source_DIR}/skyline/audio/track.cpp
|
|
|
|
${source_DIR}/skyline/audio/resampler.cpp
|
2020-07-07 16:35:34 +02:00
|
|
|
${source_DIR}/skyline/audio/adpcm_decoder.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
|
2020-08-09 16:02:38 +02:00
|
|
|
${source_DIR}/skyline/gpu/macro_interpreter.cpp
|
2020-07-14 16:15:28 +02:00
|
|
|
${source_DIR}/skyline/gpu/memory_manager.cpp
|
2020-07-23 21:46:04 +02:00
|
|
|
${source_DIR}/skyline/gpu/gpfifo.cpp
|
2020-08-09 16:02:38 +02:00
|
|
|
${source_DIR}/skyline/gpu/syncpoint.cpp
|
2020-03-24 21:17:31 +01:00
|
|
|
${source_DIR}/skyline/gpu/texture.cpp
|
2020-08-09 16:02:38 +02:00
|
|
|
${source_DIR}/skyline/gpu/engines/maxwell_3d.cpp
|
2020-04-26 01:34:35 +02:00
|
|
|
${source_DIR}/skyline/input.cpp
|
|
|
|
${source_DIR}/skyline/input/npad.cpp
|
2020-04-30 23:53:45 +02:00
|
|
|
${source_DIR}/skyline/input/npad_device.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/os.cpp
|
2020-06-25 17:29:35 +02:00
|
|
|
${source_DIR}/skyline/loader/loader.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/loader/nro.cpp
|
2020-06-25 17:51:05 +02:00
|
|
|
${source_DIR}/skyline/loader/nso.cpp
|
2020-06-29 20:23:33 +02:00
|
|
|
${source_DIR}/skyline/loader/nca.cpp
|
2020-06-29 22:19:32 +02:00
|
|
|
${source_DIR}/skyline/loader/nsp.cpp
|
2020-01-21 08:16:57 +01:00
|
|
|
${source_DIR}/skyline/kernel/memory.cpp
|
2019-09-24 22:54:27 +02:00
|
|
|
${source_DIR}/skyline/kernel/ipc.cpp
|
|
|
|
${source_DIR}/skyline/kernel/svc.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
|
2020-03-24 21:17:31 +01:00
|
|
|
${source_DIR}/skyline/services/common/parcel.cpp
|
2020-02-16 20:11:43 +01:00
|
|
|
${source_DIR}/skyline/services/sm/IUserInterface.cpp
|
2020-02-17 15:50:53 +01:00
|
|
|
${source_DIR}/skyline/services/fatalsrv/IService.cpp
|
2020-02-17 20:11:59 +01:00
|
|
|
${source_DIR}/skyline/services/audio/IAudioOutManager.cpp
|
|
|
|
${source_DIR}/skyline/services/audio/IAudioOut.cpp
|
2020-07-09 15:48:14 +02:00
|
|
|
${source_DIR}/skyline/services/audio/IAudioDevice.cpp
|
2020-02-17 20:11:59 +01:00
|
|
|
${source_DIR}/skyline/services/audio/IAudioRendererManager.cpp
|
|
|
|
${source_DIR}/skyline/services/audio/IAudioRenderer/IAudioRenderer.cpp
|
|
|
|
${source_DIR}/skyline/services/audio/IAudioRenderer/voice.cpp
|
2020-03-26 15:20:08 +01:00
|
|
|
${source_DIR}/skyline/services/audio/IAudioRenderer/memory_pool.cpp
|
2020-07-04 22:22:35 +02:00
|
|
|
${source_DIR}/skyline/services/settings/ISettingsServer.cpp
|
2020-02-16 20:25:18 +01:00
|
|
|
${source_DIR}/skyline/services/settings/ISystemSettingsServer.cpp
|
2020-02-18 12:41:22 +01:00
|
|
|
${source_DIR}/skyline/services/apm/IManager.cpp
|
|
|
|
${source_DIR}/skyline/services/apm/ISession.cpp
|
2020-02-19 21:35:54 +01:00
|
|
|
${source_DIR}/skyline/services/am/IAllSystemAppletProxiesService.cpp
|
|
|
|
${source_DIR}/skyline/services/am/IApplicationProxyService.cpp
|
|
|
|
${source_DIR}/skyline/services/am/proxy/base_proxy.cpp
|
|
|
|
${source_DIR}/skyline/services/am/proxy/IApplicationProxy.cpp
|
|
|
|
${source_DIR}/skyline/services/am/proxy/ILibraryAppletProxy.cpp
|
|
|
|
${source_DIR}/skyline/services/am/proxy/IOverlayAppletProxy.cpp
|
|
|
|
${source_DIR}/skyline/services/am/proxy/ISystemAppletProxy.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/IAppletCommonFunctions.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/IApplicationFunctions.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/IAudioController.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/ICommonStateGetter.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/IDebugFunctions.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/IDisplayController.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/ILibraryAppletCreator.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/ISelfController.cpp
|
|
|
|
${source_DIR}/skyline/services/am/controller/IWindowController.cpp
|
2020-07-04 21:15:33 +02:00
|
|
|
${source_DIR}/skyline/services/am/storage/IStorage.cpp
|
|
|
|
${source_DIR}/skyline/services/am/storage/IStorageAccessor.cpp
|
2020-07-07 16:58:38 +02:00
|
|
|
${source_DIR}/skyline/services/am/applet/ILibraryAppletAccessor.cpp
|
2020-02-16 20:42:32 +01:00
|
|
|
${source_DIR}/skyline/services/hid/IHidServer.cpp
|
|
|
|
${source_DIR}/skyline/services/hid/IAppletResource.cpp
|
2020-02-16 19:42:38 +01:00
|
|
|
${source_DIR}/skyline/services/timesrv/IStaticService.cpp
|
|
|
|
${source_DIR}/skyline/services/timesrv/ISystemClock.cpp
|
2020-07-09 20:36:28 +02:00
|
|
|
${source_DIR}/skyline/services/timesrv/ISteadyClock.cpp
|
2020-02-16 19:42:38 +01:00
|
|
|
${source_DIR}/skyline/services/timesrv/ITimeZoneService.cpp
|
2020-02-16 21:05:22 +01:00
|
|
|
${source_DIR}/skyline/services/fssrv/IFileSystemProxy.cpp
|
|
|
|
${source_DIR}/skyline/services/fssrv/IFileSystem.cpp
|
2020-08-08 21:38:51 +02:00
|
|
|
${source_DIR}/skyline/services/fssrv/IFile.cpp
|
2020-06-23 20:49:06 +02:00
|
|
|
${source_DIR}/skyline/services/fssrv/IStorage.cpp
|
2020-03-24 21:17:31 +01:00
|
|
|
${source_DIR}/skyline/services/nvdrv/INvDrvServices.cpp
|
|
|
|
${source_DIR}/skyline/services/nvdrv/devices/nvmap.cpp
|
|
|
|
${source_DIR}/skyline/services/nvdrv/devices/nvhost_ctrl_gpu.cpp
|
|
|
|
${source_DIR}/skyline/services/nvdrv/devices/nvhost_ctrl.cpp
|
|
|
|
${source_DIR}/skyline/services/nvdrv/devices/nvhost_channel.cpp
|
|
|
|
${source_DIR}/skyline/services/nvdrv/devices/nvhost_as_gpu.cpp
|
2020-07-23 21:20:42 +02:00
|
|
|
${source_DIR}/skyline/services/nvdrv/devices/nvhost_syncpoint.cpp
|
2020-03-24 21:17:31 +01:00
|
|
|
${source_DIR}/skyline/services/hosbinder/IHOSBinderDriver.cpp
|
|
|
|
${source_DIR}/skyline/services/visrv/IDisplayService.cpp
|
|
|
|
${source_DIR}/skyline/services/visrv/IApplicationDisplayService.cpp
|
|
|
|
${source_DIR}/skyline/services/visrv/IManagerDisplayService.cpp
|
|
|
|
${source_DIR}/skyline/services/visrv/IManagerRootService.cpp
|
|
|
|
${source_DIR}/skyline/services/visrv/ISystemDisplayService.cpp
|
2020-07-04 22:52:07 +02:00
|
|
|
${source_DIR}/skyline/services/pl/IPlatformServiceManager.cpp
|
2020-07-04 21:58:16 +02:00
|
|
|
${source_DIR}/skyline/services/aocsrv/IAddOnContentManager.cpp
|
2020-07-04 22:06:58 +02:00
|
|
|
${source_DIR}/skyline/services/pctl/IParentalControlServiceFactory.cpp
|
2020-07-08 12:59:02 +02:00
|
|
|
${source_DIR}/skyline/services/pctl/IParentalControlService.cpp
|
2020-07-04 20:56:33 +02:00
|
|
|
${source_DIR}/skyline/services/lm/ILogService.cpp
|
|
|
|
${source_DIR}/skyline/services/lm/ILogger.cpp
|
2020-07-04 21:35:07 +02:00
|
|
|
${source_DIR}/skyline/services/account/IAccountServiceForApplication.cpp
|
2020-07-09 15:16:51 +02:00
|
|
|
${source_DIR}/skyline/services/account/IManagerForApplication.cpp
|
2020-07-19 22:35:50 +02:00
|
|
|
${source_DIR}/skyline/services/account/IProfile.cpp
|
2020-07-09 15:22:49 +02:00
|
|
|
${source_DIR}/skyline/services/friends/IServiceCreator.cpp
|
|
|
|
${source_DIR}/skyline/services/friends/IFriendService.cpp
|
2020-08-09 16:02:38 +02:00
|
|
|
${source_DIR}/skyline/services/friends/INotificationService.cpp
|
2020-07-09 15:28:26 +02:00
|
|
|
${source_DIR}/skyline/services/nfp/IUserManager.cpp
|
|
|
|
${source_DIR}/skyline/services/nfp/IUser.cpp
|
2020-07-09 15:31:04 +02:00
|
|
|
${source_DIR}/skyline/services/nifm/IStaticService.cpp
|
|
|
|
${source_DIR}/skyline/services/nifm/IGeneralService.cpp
|
|
|
|
${source_DIR}/skyline/services/nifm/IRequest.cpp
|
2020-07-09 15:35:51 +02:00
|
|
|
${source_DIR}/skyline/services/socket/bsd/IClient.cpp
|
2020-07-09 15:38:18 +02:00
|
|
|
${source_DIR}/skyline/services/ssl/ISslService.cpp
|
2020-08-09 16:02:38 +02:00
|
|
|
${source_DIR}/skyline/services/ssl/ISslContext.cpp
|
2020-07-09 15:41:30 +02:00
|
|
|
${source_DIR}/skyline/services/prepo/IPrepoService.cpp
|
2020-08-08 21:38:51 +02:00
|
|
|
${source_DIR}/skyline/vfs/os_filesystem.cpp
|
2020-06-29 20:12:19 +02:00
|
|
|
${source_DIR}/skyline/vfs/partition_filesystem.cpp
|
|
|
|
${source_DIR}/skyline/vfs/rom_filesystem.cpp
|
2020-06-19 22:00:28 +02:00
|
|
|
${source_DIR}/skyline/vfs/os_backing.cpp
|
2020-06-19 22:13:29 +02:00
|
|
|
${source_DIR}/skyline/vfs/nacp.cpp
|
2020-06-29 20:23:33 +02:00
|
|
|
${source_DIR}/skyline/vfs/nca.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
|
|
|
|
2020-06-25 17:51:05 +02:00
|
|
|
target_link_libraries(skyline vulkan android fmt tinyxml2 oboe lz4_static)
|
2020-07-23 21:25:02 +02:00
|
|
|
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std=c++2a")
|
2020-06-15 17:43:22 +02:00
|
|
|
target_compile_options(skyline PRIVATE -Wno-c++17-extensions -Wall -Wno-reorder -Wno-missing-braces -Wno-unused-variable -Wno-unused-private-field)
|