Browse Source

Make Windows build copy DLLs to output directory

master
C. J. Howard 5 years ago
parent
commit
ac946660dc
Signed by: cjhoward GPG Key ID: 03E1FABA9C3EC195
43 changed files with 24 additions and 10 deletions
  1. +0
    -0
      .gitignore
  2. +15
    -1
      CMakeLists.txt
  3. +0
    -0
      COPYING
  4. +0
    -0
      src/dpi-aware.manifest
  5. +0
    -0
      src/entity/systems/particle-system.cpp
  6. +0
    -0
      src/entity/systems/particle-system.hpp
  7. +7
    -5
      src/game.cpp
  8. +2
    -4
      src/game.hpp
  9. +0
    -0
      src/game/brush.cpp
  10. +0
    -0
      src/game/brush.hpp
  11. +0
    -0
      src/game/camera-rig.cpp
  12. +0
    -0
      src/game/camera-rig.hpp
  13. +0
    -0
      src/game/curl-noise.cpp
  14. +0
    -0
      src/game/curl-noise.hpp
  15. +0
    -0
      src/game/forceps.cpp
  16. +0
    -0
      src/game/forceps.hpp
  17. +0
    -0
      src/game/lens.cpp
  18. +0
    -0
      src/game/lens.hpp
  19. +0
    -0
      src/game/tool.cpp
  20. +0
    -0
      src/game/tool.hpp
  21. +0
    -0
      src/graphics/clear-render-pass.cpp
  22. +0
    -0
      src/graphics/clear-render-pass.hpp
  23. +0
    -0
      src/graphics/final-render-pass.cpp
  24. +0
    -0
      src/graphics/final-render-pass.hpp
  25. +0
    -0
      src/graphics/lighting-render-pass.cpp
  26. +0
    -0
      src/graphics/lighting-render-pass.hpp
  27. +0
    -0
      src/graphics/shadow-map-render-pass.cpp
  28. +0
    -0
      src/graphics/shadow-map-render-pass.hpp
  29. +0
    -0
      src/graphics/silhouette-render-pass.cpp
  30. +0
    -0
      src/graphics/silhouette-render-pass.hpp
  31. +0
    -0
      src/graphics/sky-render-pass.cpp
  32. +0
    -0
      src/graphics/sky-render-pass.hpp
  33. +0
    -0
      src/graphics/ui-render-pass.cpp
  34. +0
    -0
      src/graphics/ui-render-pass.hpp
  35. +0
    -0
      src/main.cpp
  36. +0
    -0
      src/resources/material-loader.cpp
  37. +0
    -0
      src/resources/model-loader.cpp
  38. +0
    -0
      src/states/game-state.cpp
  39. +0
    -0
      src/states/game-state.hpp
  40. +0
    -0
      src/states/sandbox-state.cpp
  41. +0
    -0
      src/states/sandbox-state.hpp
  42. +0
    -0
      src/ui/ui.cpp
  43. +0
    -0
      src/ui/ui.hpp

+ 0
- 0
.gitignore View File


+ 15
- 1
CMakeLists.txt View File

@ -65,4 +65,18 @@ target_include_directories(${EXECUTABLE_TARGET}
target_link_libraries(${EXECUTABLE_TARGET} ${STATIC_LIBS} ${SHARED_LIBS})
# Install executable
install(TARGETS ${EXECUTABLE_TARGET} DESTINATION bin)
if(PACKAGE_PLATFORM MATCHES "linux")
install(TARGETS ${EXECUTABLE_TARGET} DESTINATION bin)
elseif(PACKAGE_PLATFORM MATCHES "win")
# Install executable
install(TARGETS ${EXECUTABLE_TARGET} DESTINATION .)
# Install OpenAL DLL
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
get_target_property(OPENAL_DLL OpenAL::OpenAL IMPORTED_LOCATION_DEBUG)
else()
get_target_property(OPENAL_DLL OpenAL::OpenAL IMPORTED_LOCATION_RELEASE)
endif()
install(FILES ${OPENAL_DLL} DESTINATION .)
endif()

+ 0
- 0
COPYING View File


+ 0
- 0
src/dpi-aware.manifest View File


+ 0
- 0
src/entity/systems/particle-system.cpp View File


+ 0
- 0
src/entity/systems/particle-system.hpp View File


+ 7
- 5
src/game.cpp View File

@ -18,7 +18,6 @@
*/
#include "game.hpp"
#include "game-states.hpp"
#include "resources/csv-table.hpp"
#include "states/game-state.hpp"
#include "states/sandbox-state.hpp"
@ -1814,7 +1813,7 @@ void Game::setupControls()
// Setup input mapper
inputMapper = new InputMapper(&eventDispatcher);
inputMapper->setCallback(std::bind(&Game::mapInput, this, std::placeholders::_1));
inputMapper->setCallback(std::bind(&Game::inputMapped, this, std::placeholders::_1));
inputMapper->setControl(nullptr);
inputMapper->setEnabled(false);
}
@ -1870,6 +1869,7 @@ void Game::loadSettings()
resetSettings();
// Load settings table
/*
try
{
settingsTable = resourceManager->load<CSVTable>("settings.csv");
@ -1878,6 +1878,8 @@ void Game::loadSettings()
{
settingsTable = new CSVTable();
}
*/
settingsTable = new CSVTable();
// Build settings map
for (std::size_t i = 0; i < settingsTable->size(); ++i)
@ -2759,7 +2761,7 @@ void Game::restringUI()
// Settings menu strings
settingsMenuControlsItem->setName(getString("controls"));
settingsMenuControlsItem->setValue(getString("dotdotdot"));
settingsMenuControlsItem->setValue(getString("ellipsis"));
settingsMenuFullscreenItem->setName(getString("fullscreen"));
settingsMenuFullscreenItem->setValue((fullscreen) ? onString : offString);
settingsMenuVSyncItem->setName(getString("v-sync"));
@ -2923,7 +2925,7 @@ void Game::screenshot()
glClear(GL_COLOR_BUFFER_BIT);
}
void Game::mapInput(const InputMapping& mapping)
void Game::inputMapped(const InputMapping& mapping)
{
// Skip mouse motion events
if (mapping.getType() == InputMappingType::MOUSE_MOTION)
@ -3032,7 +3034,7 @@ void Game::enterTitleState()
menuFadeAnimation.rewind();
menuFadeAnimation.play();
// Select the first menu item
// Open the main menu and select the first menu item
openMenu(mainMenu, 0);
}

+ 2
- 4
src/game.hpp View File

@ -173,6 +173,8 @@ private:
std::array<std::string, 3> getInputMappingStrings(const InputMapping* mapping);
void remapControl(Control* control);
void resetControls();
// Callback for the input mapper
void inputMapped(const InputMapping& mapping);
void resizeUI(int w, int h);
void restringUI();
@ -184,10 +186,6 @@ private:
void queueScreenshot();
void screenshot();
// Callback for the input mapper
void mapInput(const InputMapping& mapping);
// State functions
void enterSplashState();
void exitSplashState();

+ 0
- 0
src/game/brush.cpp View File


+ 0
- 0
src/game/brush.hpp View File


+ 0
- 0
src/game/camera-rig.cpp View File


+ 0
- 0
src/game/camera-rig.hpp View File


+ 0
- 0
src/game/curl-noise.cpp View File


+ 0
- 0
src/game/curl-noise.hpp View File


+ 0
- 0
src/game/forceps.cpp View File


+ 0
- 0
src/game/forceps.hpp View File


+ 0
- 0
src/game/lens.cpp View File


+ 0
- 0
src/game/lens.hpp View File


+ 0
- 0
src/game/tool.cpp View File


+ 0
- 0
src/game/tool.hpp View File


+ 0
- 0
src/graphics/clear-render-pass.cpp View File


+ 0
- 0
src/graphics/clear-render-pass.hpp View File


+ 0
- 0
src/graphics/final-render-pass.cpp View File


+ 0
- 0
src/graphics/final-render-pass.hpp View File


+ 0
- 0
src/graphics/lighting-render-pass.cpp View File


+ 0
- 0
src/graphics/lighting-render-pass.hpp View File


+ 0
- 0
src/graphics/shadow-map-render-pass.cpp View File


+ 0
- 0
src/graphics/shadow-map-render-pass.hpp View File


+ 0
- 0
src/graphics/silhouette-render-pass.cpp View File


+ 0
- 0
src/graphics/silhouette-render-pass.hpp View File


+ 0
- 0
src/graphics/sky-render-pass.cpp View File


+ 0
- 0
src/graphics/sky-render-pass.hpp View File


+ 0
- 0
src/graphics/ui-render-pass.cpp View File


+ 0
- 0
src/graphics/ui-render-pass.hpp View File


+ 0
- 0
src/main.cpp View File


+ 0
- 0
src/resources/material-loader.cpp View File


+ 0
- 0
src/resources/model-loader.cpp View File


+ 0
- 0
src/states/game-state.cpp View File


+ 0
- 0
src/states/game-state.hpp View File


+ 0
- 0
src/states/sandbox-state.cpp View File


+ 0
- 0
src/states/sandbox-state.hpp View File


+ 0
- 0
src/ui/ui.cpp View File


+ 0
- 0
src/ui/ui.hpp View File


Loading…
Cancel
Save