Skip to content

Commit

Permalink
fix: windows build & cleanup stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Nov 4, 2024
1 parent 555dc38 commit 1df0223
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 31 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ elseif(UNIX)
endif()

# Force static runtime on Windows
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX ${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_flag_overrides.cmake)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

project(blur LANGUAGES CXX)
Expand Down
6 changes: 0 additions & 6 deletions cmake/c_flag_overrides.cmake

This file was deleted.

6 changes: 0 additions & 6 deletions cmake/cxx_flag_overrides.cmake

This file was deleted.

19 changes: 11 additions & 8 deletions src/common/common_pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,24 @@
#include <regex>
#include <unordered_set>

#ifdef _WIN32
# include <conio.h>
# include <shobjidl.h>
# include <Windows.h>
#elif defined(__APPLE__)
# include <mach-o/dyld.h>
#endif

// libs
#include <fmt/format.h>
#include <fmt/xchar.h>
#include <nlohmann/json.hpp>

#include <boost/process.hpp>
#include <boost/asio.hpp>
#ifdef _WIN32
# include <boost/process/v1/windows.hpp>
#endif

#ifdef _WIN32
# include <conio.h>
# include <shobjidl.h>
# include <Windows.h>
#elif defined(__APPLE__)
# include <mach-o/dyld.h>
#endif

// blur
#include "blur.h"
Expand Down
8 changes: 0 additions & 8 deletions src/gui/console.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
#include "console.h"

#ifdef _WIN32
# include <windows.h>
#elif defined(__APPLE__) || defined(__linux__)
# include <unistd.h>
# include <termios.h>
# include <sys/ioctl.h>
#endif

#ifdef _WIN32
void console::cleanup() {
console::close();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui_pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "os/os.h"

#include "os/skia/skia_helpers.h"
#include "os/skia/skia_surface.h"
#include "os/skia/skia_surface.h"

#include "include/core/SkTextBlob.h"
#include "include/utils/SkTextUtils.h"
Expand Down

0 comments on commit 1df0223

Please sign in to comment.