[nostalgia/core] Cleanup CMake config

This commit is contained in:
2019-10-31 00:22:58 -05:00
parent 3a0b41d2cc
commit 73377068c6
8 changed files with 80 additions and 49 deletions
+22
View File
@@ -0,0 +1,22 @@
add_library(
NostalgiaCore-GBA
core.cpp
gfx.cpp
media.cpp
mem.cpp
panic.cpp
)
target_link_libraries(
NostalgiaCore-GBA PUBLIC
GbaStartup
OxFS
OxStd
)
install(
TARGETS
NostalgiaCore-GBA
DESTINATION
include/nostalgia/core
)
+19
View File
@@ -0,0 +1,19 @@
/*
* Copyright 2016 - 2019 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <nostalgia/core/core.hpp>
namespace nostalgia::core {
ox::Error run() {
while (1) {
}
return OxError(0);
}
}
+1 -1
View File
@@ -215,7 +215,7 @@ ox::Error loadTileSheet(Context*,
ox::FileAddress) {
auto inode = tilesheetPath.getInode().value;
ox::Error err(0);
const auto PaletteStart = sizeof(GbaImageDataHeader);
constexpr auto PaletteStart = sizeof(GbaImageDataHeader);
GbaImageDataHeader imgData;
ox::FileStore32 fs(loadRom(), 32 * 1024 * 1024);