-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This update took way way too long to create. However, it was worthwhile. :)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "app/libraries/tinyxml2"] | ||
path = app/libraries/tinyxml2 | ||
url = https://github.com/leethomason/tinyxml2 | ||
[submodule "app/libraries/fmt"] | ||
path = app/libraries/fmt | ||
url = https://github.com/fmtlib/fmt |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
cmake_minimum_required (VERSION 3.2) | ||
cmake_minimum_required(VERSION 3.8) | ||
project(Lightswitch VERSION 1 LANGUAGES CXX) | ||
set_property(GLOBAL PROPERTY CMAKE_CXX_STANDARD 17 PROPERTY CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
|
||
set(BUILD_TESTS FALSE) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
add_subdirectory("libraries/tinyxml2") | ||
add_subdirectory("libraries/fmt") | ||
|
||
set(source_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp) | ||
|
||
include_directories(${source_DIR}/include) | ||
include_directories(libraries/unicorn/include) | ||
include_directories(${source_DIR}) | ||
|
||
add_library(lightswitch SHARED | ||
${source_DIR}/lightswitch.cpp | ||
${source_DIR}/core/arm/cpu.cpp | ||
${source_DIR}/core/arm/memory.cpp | ||
|
||
${source_DIR}/core/hos/kernel/ipc.cpp | ||
${source_DIR}/core/hos/kernel/kernel.cpp | ||
${source_DIR}/core/hos/kernel/svc.cpp | ||
${source_DIR}/core/hos/loaders/nro.cpp | ||
) | ||
target_link_libraries(lightswitch ${source_DIR}/lib/${ANDROID_ABI}/libunicorn.a) | ||
${source_DIR}/switch/os/os.cpp | ||
${source_DIR}/switch/os/ipc.cpp | ||
${source_DIR}/switch/os/kernel.cpp | ||
${source_DIR}/switch/os/svc.cpp | ||
${source_DIR}/switch/hw/cpu.cpp | ||
${source_DIR}/switch/hw/memory.cpp | ||
${source_DIR}/switch/common.cpp | ||
${source_DIR}/switch/loader/nro.cpp | ||
) | ||
target_link_libraries(lightswitch ${CMAKE_SOURCE_DIR}/libraries/unicorn/libunicorn.a fmt tinyxml2) | ||
target_compile_options(lightswitch PRIVATE -Wno-c++17-extensions) |
This file was deleted.
This file was deleted.