Skip to content

Commit

Permalink
Move src/ to dog/. (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul authored Feb 5, 2024
1 parent 1d5393c commit f3ab96d
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions DogTales/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(generated_header_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
configure_file(src/build_version.hpp.in "${generated_header_dir}/src/build_version.hpp" @ONLY)
configure_file(dog/build_version.hpp.in "${generated_header_dir}/dog/build_version.hpp" @ONLY)

add_executable(${PROJECT_NAME})

Expand All @@ -13,6 +13,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${generated_header_dir}"
)

file(GLOB_RECURSE sources LIST_DIRECTORIES false CONFIGURE_DEPENDS "src/*.?pp")
file(GLOB_RECURSE sources LIST_DIRECTORIES false CONFIGURE_DEPENDS "dog/*.?pp")

target_sources(${PROJECT_NAME} PRIVATE ${sources})
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <src/components/physics.hpp>
#include <dog/components/physics.hpp>

namespace dog::component {

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion DogTales/src/dogtales.cpp → DogTales/dog/dogtales.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <src/dogtales.hpp>
#include <dog/dogtales.hpp>

namespace dog {
DogTales::DogTales(bave::App& app) : bave::Driver(app) {}
Expand Down
2 changes: 1 addition & 1 deletion DogTales/src/dogtales.hpp → DogTales/dog/dogtales.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <bave/driver.hpp>
#include <src/player.hpp>
#include <dog/player.hpp>

namespace dog {
class DogTales : public bave::Driver {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions DogTales/src/main.cpp → DogTales/dog/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <bave/clap/clap.hpp>
#include <bave/desktop_app.hpp>
#include <src/build_version.hpp>
#include <src/dogtales.hpp>
#include <src/tests/test.hpp>
#include <dog/build_version.hpp>
#include <dog/dogtales.hpp>
#include <dog/tests/test.hpp>
#include <iostream>

namespace {
Expand Down
2 changes: 1 addition & 1 deletion DogTales/src/player.cpp → DogTales/dog/player.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <src/player.hpp>
#include <dog/player.hpp>

namespace dog {
Player::Player(glm::vec2 const world_space) : m_world_space(world_space) { m_sprite.set_size(size_v); }
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once
#include <bave/core/not_null.hpp>
#include <bave/core/ptr.hpp>
#include <src/fatal_error.hpp>
#include <src/services/service.hpp>
#include <dog/fatal_error.hpp>
#include <dog/services/service.hpp>
#include <memory>
#include <mutex>
#include <typeindex>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <fmt/format.h>
#include <src/tests/test.hpp>
#include <dog/tests/test.hpp>
#include <filesystem>
#include <iostream>
#include <vector>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <bave/core/pinned.hpp>
#include <src/services/services.hpp>
#include <src/tests/test.hpp>
#include <dog/services/services.hpp>
#include <dog/tests/test.hpp>

namespace dog {
namespace {
Expand Down

0 comments on commit f3ab96d

Please sign in to comment.