Mess up with dll on windows
This commit is contained in:
parent
c0a00e4e4a
commit
aa871b8b76
@ -64,7 +64,7 @@ target_sources(${PROJECT_NAME} PRIVATE
|
||||
# target_compile_options(${PROJECT_NAME} PRIVATE -pg -no-pie)
|
||||
# target_link_options(${PROJECT_NAME} PRIVATE -pg -no-pie)
|
||||
#endif()
|
||||
target_link_libraries(${PROJECT_NAME} sfml::sfml)
|
||||
target_link_libraries(${PROJECT_NAME} -static gcc stdc++ pthread -dynamic sfml::sfml)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
OUTPUT_NAME ${PROJECT_NAME}${BUILDNAME_SUFFIX}
|
||||
CXX_STANDARD 17
|
||||
|
@ -87,19 +87,22 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)) {
|
||||
mainWindow->close();
|
||||
status = GAME_QUIT;
|
||||
} else if ((sf::Keyboard::isKeyPressed(sf::Keyboard::LAlt) || sf::Keyboard::isKeyPressed(sf::Keyboard::RAlt)) && sf::Keyboard::isKeyPressed(sf::Keyboard::Enter)) {
|
||||
wndParams.wndFullscreen = !wndParams.wndFullscreen;
|
||||
try {
|
||||
CreateWindow(mainWindow, wndParams);
|
||||
} catch (const std::exception& ex) {
|
||||
log.PrintCritical(std::string(ex.what()));
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
// Focused-only keys actions
|
||||
if (mainWindow->hasFocus()) {
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)) {
|
||||
mainWindow->close();
|
||||
status = GAME_QUIT;
|
||||
} else if ((sf::Keyboard::isKeyPressed(sf::Keyboard::LAlt) || sf::Keyboard::isKeyPressed(sf::Keyboard::RAlt)) && sf::Keyboard::isKeyPressed(sf::Keyboard::Enter)) {
|
||||
wndParams.wndFullscreen = !wndParams.wndFullscreen;
|
||||
try {
|
||||
CreateWindow(mainWindow, wndParams);
|
||||
} catch (const std::exception& ex) {
|
||||
log.PrintCritical(std::string(ex.what()));
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
arcadeGame.EventWindowSizeChanged(mainWindow->getSize().x, mainWindow->getSize().y);
|
||||
arcadeGame.EventWindowSizeChanged(mainWindow->getSize().x, mainWindow->getSize().y);
|
||||
}
|
||||
}
|
||||
|
||||
status = arcadeGame.Tick();
|
||||
|
@ -21,7 +21,7 @@ class ProtoTank(ConanFile):
|
||||
|
||||
|
||||
def configure(self):
|
||||
self.options["sfml"].audio = True
|
||||
self.options["sfml"].audio = False
|
||||
self.options["sfml"].window = True
|
||||
self.options["sfml"].network = False
|
||||
self.options["sfml"].graphics = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user