mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
misc: get this crap building locally
Looks like my install via vcpkg sets up a different directory structure for hunspell
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: windows-build
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
# push:
|
||||
# branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -36,4 +36,4 @@ jobs:
|
||||
name: build
|
||||
path: |
|
||||
./build/magicseteditor*
|
||||
/mingw64/bin/libhunspell-1.7-0.dll
|
||||
/mingw64/bin/libhunspell-1.7-0.dll
|
||||
|
||||
+3
-1
@@ -14,8 +14,10 @@ find_package(PkgConfig)
|
||||
pkg_check_modules(HUNSPELL hunspell)
|
||||
if( NOT HUNSPELL_FOUND )
|
||||
message("-- Cannot find Hunspell via pkg-config, checking directly...")
|
||||
find_path(HUNSPELL_INCLUDE_DIRS hunspell/hunspell.hxx)
|
||||
find_path(HUNSPELL_INCLUDE_DIRS hunspell.hxx)
|
||||
message("-- HUNSPELL_INCLUDE_DIRS = ${HUNSPELL_INCLUDE_DIRS}")
|
||||
find_library(HUNSPELL_LIBRARIES NAMES hunspell libhunspell)
|
||||
message("-- HUNSPELL_LIBRARIES = ${HUNSPELL_LIBRARIES}")
|
||||
if ( ${HUNSPELL_INCLUDE_DIRS} STREQUAL "HUNSPELL_INCLUDE_DIRS-NOTFOUND" )
|
||||
message(FATAL_ERROR "Hunspell cannot be found")
|
||||
else()
|
||||
|
||||
+6
-10
@@ -9,8 +9,7 @@
|
||||
"cmakeCommandArgs": "",
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"inheritEnvironments": [ "msvc_x86" ],
|
||||
"variables": []
|
||||
"inheritEnvironments": [ "msvc_x86" ]
|
||||
},
|
||||
{
|
||||
"name": "x86-Release",
|
||||
@@ -22,7 +21,7 @@
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"inheritEnvironments": [ "msvc_x86" ],
|
||||
"variables": []
|
||||
"cmakeToolchain": "C:/git/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||
},
|
||||
{
|
||||
"name": "x64-Debug",
|
||||
@@ -33,8 +32,7 @@
|
||||
"cmakeCommandArgs": "",
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||
"variables": []
|
||||
"inheritEnvironments": [ "msvc_x64_x64" ]
|
||||
},
|
||||
{
|
||||
"name": "x64-Release",
|
||||
@@ -45,8 +43,7 @@
|
||||
"cmakeCommandArgs": "",
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||
"variables": []
|
||||
"inheritEnvironments": [ "msvc_x64_x64" ]
|
||||
},
|
||||
{
|
||||
"name": "x86-Release-static",
|
||||
@@ -58,7 +55,7 @@
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"inheritEnvironments": [ "msvc_x86" ],
|
||||
"variables": []
|
||||
"cmakeToolchain": "C:/git/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||
},
|
||||
{
|
||||
"name": "x64-Release-static",
|
||||
@@ -69,8 +66,7 @@
|
||||
"cmakeCommandArgs": "-DVCPKG_TARGET_TRIPLET=x64-windows-static",
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||
"variables": []
|
||||
"inheritEnvironments": [ "msvc_x64_x64" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -19,12 +19,13 @@ On windows, the program can be compiled with Visual Studio (recommended) or with
|
||||
* Download and install [vcpkg](https://github.com/microsoft/vcpkg)
|
||||
* Use vcpkg to install wxwidgets, boost, hunspell
|
||||
````
|
||||
vcpkg install wxwidgets
|
||||
vcpkg install boost-smart-ptr
|
||||
vcpkg install boost-regex
|
||||
vcpkg install boost-logic
|
||||
vcpkg install boost-pool
|
||||
vcpkg install hunspell
|
||||
vcpkg install wxwidgets:x86-windows-static
|
||||
vcpkg install boost-smart-ptr:x86-windows-static
|
||||
vcpkg install boost-regex:x86-windows-static
|
||||
vcpkg install boost-logic:x86-windows-static
|
||||
vcpkg install boost-pool:x86-windows-static
|
||||
vcpkg install boost-iterator:x86-windows-static
|
||||
vcpkg install hunspell:x86-windows-static
|
||||
vcpkg integrate install
|
||||
````
|
||||
* Then just use "Open Folder" from inside visual studio to open the Magic Set Editor source code root folder.
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <util/rotation.hpp>
|
||||
#include <wx/renderer.h>
|
||||
#include <wx/stdpaths.h>
|
||||
#include <wx/mstream.h>
|
||||
#include <gfx/gfx.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : Window related
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#undef near
|
||||
#include "hunspell/hunspell.hxx"
|
||||
#include "hunspell.hxx"
|
||||
|
||||
DECLARE_POINTER_TYPE(SpellChecker);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user