[nostalgia] Move modules into modules directory
This commit is contained in:
parent
dd54e7363f
commit
ecde759bec
@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
#project packages
|
#project packages
|
||||||
|
|
||||||
add_subdirectory(appmodules)
|
add_subdirectory(modules)
|
||||||
add_subdirectory(core)
|
|
||||||
add_subdirectory(scene)
|
|
||||||
|
|
||||||
if(NOSTALGIA_BUILD_PLAYER)
|
if(NOSTALGIA_BUILD_PLAYER)
|
||||||
add_subdirectory(player)
|
add_subdirectory(player)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
# module dir list
|
||||||
|
|
||||||
|
add_subdirectory(core)
|
||||||
|
add_subdirectory(scene)
|
||||||
|
|
||||||
|
|
||||||
|
# module libraries
|
||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
NostalgiaKeelModules OBJECT
|
NostalgiaKeelModules OBJECT
|
||||||
keelmodules.cpp
|
keelmodules.cpp
|
8
src/nostalgia/modules/core/CMakeLists.txt
Normal file
8
src/nostalgia/modules/core/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
install(
|
||||||
|
DIRECTORY
|
||||||
|
include/nostalgia
|
||||||
|
DESTINATION
|
||||||
|
include
|
||||||
|
)
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
@ -12,4 +12,3 @@
|
|||||||
#include "palette.hpp"
|
#include "palette.hpp"
|
||||||
#include "ptidxconv.hpp"
|
#include "ptidxconv.hpp"
|
||||||
#include "tilesheet.hpp"
|
#include "tilesheet.hpp"
|
||||||
#include "typeconv.hpp"
|
|
@ -16,6 +16,11 @@ if(NOT MSVC)
|
|||||||
target_compile_options(NostalgiaCore PRIVATE -Wconversion)
|
target_compile_options(NostalgiaCore PRIVATE -Wconversion)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(
|
||||||
|
NostalgiaCore PUBLIC
|
||||||
|
../include
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
NostalgiaCore PUBLIC
|
NostalgiaCore PUBLIC
|
||||||
Turbine
|
Turbine
|
||||||
@ -25,26 +30,10 @@ if(NOSTALGIA_BUILD_STUDIO)
|
|||||||
add_subdirectory(studio)
|
add_subdirectory(studio)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(
|
|
||||||
FILES
|
|
||||||
color.hpp
|
|
||||||
config.hpp
|
|
||||||
consts.hpp
|
|
||||||
context.hpp
|
|
||||||
core.hpp
|
|
||||||
gfx.hpp
|
|
||||||
initparams.hpp
|
|
||||||
ptidxconv.hpp
|
|
||||||
tilesheet.hpp
|
|
||||||
typeconv.hpp
|
|
||||||
DESTINATION
|
|
||||||
include/nostalgia/core
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS
|
TARGETS
|
||||||
NostalgiaCore
|
NostalgiaCore
|
||||||
DESTINATION
|
DESTINATION
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION lib
|
||||||
)
|
)
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../gfx.hpp"
|
#include <nostalgia/core/gfx.hpp>
|
||||||
|
|
||||||
#include "context.hpp"
|
#include "context.hpp"
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../context.hpp"
|
#include <nostalgia/core/context.hpp>
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../context.hpp"
|
#include <nostalgia/core/context.hpp>
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
ox::Error initGfx(Context *ctx, const InitParams&) noexcept;
|
ox::Error initGfx(Context *ctx, const InitParams&) noexcept;
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "gfx.hpp"
|
#include <nostalgia/core/gfx.hpp>
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
@ -7,10 +7,11 @@
|
|||||||
#include <keel/asset.hpp>
|
#include <keel/asset.hpp>
|
||||||
#include <keel/module.hpp>
|
#include <keel/module.hpp>
|
||||||
|
|
||||||
#include "gfx.hpp"
|
#include <nostalgia/core/gfx.hpp>
|
||||||
#include "typeconv.hpp"
|
|
||||||
|
|
||||||
#include "keelmodule.hpp"
|
#include <nostalgia/core/keelmodule.hpp>
|
||||||
|
|
||||||
|
#include "typeconv.hpp"
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
#include <glutils/glutils.hpp>
|
#include <glutils/glutils.hpp>
|
||||||
|
|
||||||
#include "gfx.hpp"
|
#include <nostalgia/core/gfx.hpp>
|
||||||
|
#include <nostalgia/core/context.hpp>
|
||||||
|
|
||||||
#include "../gfx.hpp"
|
#include "gfx.hpp"
|
||||||
#include "../context.hpp"
|
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <glutils/glutils.hpp>
|
#include <glutils/glutils.hpp>
|
||||||
|
|
||||||
#include "../context.hpp"
|
#include <nostalgia/core/context.hpp>
|
||||||
|
|
||||||
namespace nostalgia::core::renderer {
|
namespace nostalgia::core::renderer {
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "paletteeditor.hpp"
|
#include "paletteeditor.hpp"
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
#include <ox/std/memory.hpp>
|
#include <ox/std/memory.hpp>
|
||||||
|
|
||||||
|
#include <studio/studio.hpp>
|
||||||
|
|
||||||
#include "paletteeditor-imgui.hpp"
|
#include "paletteeditor-imgui.hpp"
|
||||||
#include "tilesheeteditor-imgui.hpp"
|
#include "tilesheeteditor-imgui.hpp"
|
||||||
|
|
||||||
#include "studiomodule.hpp"
|
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
||||||
class StudioModule: public studio::Module {
|
class StudioModule: public studio::Module {
|
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#include <keel/typeconv.hpp>
|
#include <keel/typeconv.hpp>
|
||||||
|
|
||||||
#include "context.hpp"
|
#include <nostalgia/core/context.hpp>
|
||||||
#include "gfx.hpp"
|
#include <nostalgia/core/gfx.hpp>
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
13
src/nostalgia/modules/scene/CMakeLists.txt
Normal file
13
src/nostalgia/modules/scene/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
target_include_directories(
|
||||||
|
NostalgiaScene PUBLIC
|
||||||
|
include
|
||||||
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
DIRECTORY
|
||||||
|
include/nostalgia
|
||||||
|
DESTINATION
|
||||||
|
include
|
||||||
|
)
|
@ -7,20 +7,16 @@ add_library(
|
|||||||
typeconv.cpp
|
typeconv.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_include_directories(
|
||||||
|
NostalgiaScene PUBLIC
|
||||||
|
../include
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
NostalgiaScene PUBLIC
|
NostalgiaScene PUBLIC
|
||||||
NostalgiaCore
|
NostalgiaCore
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
|
||||||
FILES
|
|
||||||
scenestatic.hpp
|
|
||||||
keelmodule.hpp
|
|
||||||
typeconv.hpp
|
|
||||||
DESTINATION
|
|
||||||
include/nostalgia/scene
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOSTALGIA_BUILD_STUDIO)
|
if(NOSTALGIA_BUILD_STUDIO)
|
||||||
add_subdirectory(studio)
|
add_subdirectory(studio)
|
||||||
endif()
|
endif()
|
@ -2,10 +2,11 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "scenestatic.hpp"
|
#include <keel/module.hpp>
|
||||||
#include "typeconv.hpp"
|
|
||||||
|
|
||||||
#include "keelmodule.hpp"
|
#include <nostalgia/scene/scenestatic.hpp>
|
||||||
|
|
||||||
|
#include "typeconv.hpp"
|
||||||
|
|
||||||
namespace nostalgia::scene {
|
namespace nostalgia::scene {
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include <nostalgia/core/gfx.hpp>
|
#include <nostalgia/core/gfx.hpp>
|
||||||
|
|
||||||
#include "scene.hpp"
|
#include <nostalgia/scene/scene.hpp>
|
||||||
|
|
||||||
namespace nostalgia::scene {
|
namespace nostalgia::scene {
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "scenestatic.hpp"
|
#include <nostalgia/scene/scenestatic.hpp>
|
||||||
|
|
||||||
namespace nostalgia::scene {
|
namespace nostalgia::scene {
|
||||||
|
|
@ -2,8 +2,9 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <studio/studio.hpp>
|
||||||
|
|
||||||
#include "sceneeditor-imgui.hpp"
|
#include "sceneeditor-imgui.hpp"
|
||||||
#include "studiomodule.hpp"
|
|
||||||
|
|
||||||
namespace nostalgia::scene {
|
namespace nostalgia::scene {
|
||||||
|
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <keel/typeconv.hpp>
|
#include <keel/typeconv.hpp>
|
||||||
|
|
||||||
#include "scenestatic.hpp"
|
#include <nostalgia/scene/scenestatic.hpp>
|
||||||
|
|
||||||
namespace nostalgia::scene {
|
namespace nostalgia::scene {
|
||||||
|
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <keel/media.hpp>
|
#include <keel/media.hpp>
|
||||||
|
|
||||||
#include <nostalgia/appmodules/keelmodules.hpp>
|
#include <nostalgia/modules/keelmodules.hpp>
|
||||||
|
|
||||||
#include "app.hpp"
|
#include "app.hpp"
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <nostalgia/appmodules/keelmodules.hpp>
|
#include <nostalgia/modules/keelmodules.hpp>
|
||||||
#include <nostalgia/appmodules/studiomodules.hpp>
|
#include <nostalgia/modules/studiomodules.hpp>
|
||||||
|
|
||||||
#include <studioapp/studioapp.hpp>
|
#include <studioapp/studioapp.hpp>
|
||||||
|
|
||||||
|
@ -10,9 +10,7 @@
|
|||||||
|
|
||||||
#include <keel/keel.hpp>
|
#include <keel/keel.hpp>
|
||||||
|
|
||||||
#include <nostalgia/appmodules/keelmodules.hpp>
|
#include <nostalgia/modules/keelmodules.hpp>
|
||||||
|
|
||||||
using namespace nostalgia;
|
|
||||||
|
|
||||||
static ox::Error writeFileBuff(ox::CRStringView path, const ox::Buffer &buff) noexcept {
|
static ox::Error writeFileBuff(ox::CRStringView path, const ox::Buffer &buff) noexcept {
|
||||||
try {
|
try {
|
||||||
@ -52,7 +50,7 @@ static ox::Error generateTypes(ox::TypeStore *ts) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ox::Error run(const ox::ClArgs &args) noexcept {
|
static ox::Error run(const ox::ClArgs &args) noexcept {
|
||||||
registerKeelModules();
|
nostalgia::registerKeelModules();
|
||||||
const auto argSrc = args.getString("src", "");
|
const auto argSrc = args.getString("src", "");
|
||||||
const auto argRomBin = args.getString("rom-bin", "");
|
const auto argRomBin = args.getString("rom-bin", "");
|
||||||
if (argSrc == "") {
|
if (argSrc == "") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user