Skip to content

Commit 9e61411

Browse files
committed
Update wxWidgets, fix Linux compile
1 parent 3b0d628 commit 9e61411

File tree

2,769 files changed

+171859
-149840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,769 files changed

+171859
-149840
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
build-mac:
2727
name: Build App for macOS
28-
runs-on: macos-latest
28+
runs-on: macos-11
2929
steps:
3030
- name: Checkout code
3131
uses: actions/checkout@v2

source/create_dialog_derived.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void CreateProjectDialogD::OnCreate(wxCommandEvent& event){
9090
auto fullTemplate = std::filesystem::path("\"") / executableTemplatesPath / (templatePrefix + "." + templateName + "\"");
9191
string command = "\"" + executablePath.string() + "\" -createproject " + fullProj.string() + " -cloneFromTemplate \"" + fullTemplate.string();
9292
#elif defined __linux__
93-
string command = "\"" + executablePath + "\" -createproject \"" + projPath + dirsep + projName + "\" -cloneFromTemplate \"" + executableTemplatesPath + templatePrefix + "." + templateName + "\"";
93+
string command = "\"" + executablePath.string() + "\" -createproject \"" + (filesystem::path(projPath) / projName).string() + "\" -cloneFromTemplate \"" + executableTemplatesPath.string() + templatePrefix + "." + templateName + "\"";
9494
#endif
9595
//TODO: return this command to what summoned this dialog
9696
project p = {projName,e.name,"",filesystem::path(projPath) / filesystem::path(projName)};

source/globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct editor{
122122
static const std::string null_device = ">/dev/null 2>&1";
123123
static const char dirsep = '/';
124124

125-
static const std::filesyste::path executable = "Editor/Unity";
125+
static const std::filesystem::path executable = "Editor/Unity";
126126
static const std::vector<std::filesystem::path> defaultInstall = {std::filesystem::path(getpwuid(getuid())->pw_dir) / "Unity/Hub/Editor"};
127127
//TODO: make this a preference?
128128
static const std::filesystem::path hubDefault = "";

source/interface_derived.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class MainFrameDerived : public MainFrame{
167167
Defines the functionality for the project creation dialog
168168
*/
169169
typedef std::function<void(const std::string&,const project&)> DialogCallback;
170-
class CreateProjectDialogD : CreateProjectDialog{
170+
class CreateProjectDialogD : public CreateProjectDialog{
171171
public:
172172
CreateProjectDialogD(wxWindow* parent, const std::vector<editor>& versions, const DialogCallback& callback);
173173
void show(){
@@ -192,7 +192,7 @@ class CreateProjectDialogD : CreateProjectDialog{
192192
};
193193

194194
typedef std::function<void(const project&, const editor&)> OpenWithCallback;
195-
class OpenWithDlg : OpenWithEditorDlgBase{
195+
class OpenWithDlg : public OpenWithEditorDlgBase{
196196
public:
197197
OpenWithDlg(wxWindow* parent, const project& project, const std::vector<editor>& versions, const OpenWithCallback& callback);
198198
void show(){
@@ -219,7 +219,7 @@ class OpenWithDlg : OpenWithEditorDlgBase{
219219
wxDECLARE_EVENT_TABLE();
220220
};
221221

222-
class AddNewInstallDlg : AddNewInstallDlgBase{
222+
class AddNewInstallDlg : public AddNewInstallDlgBase{
223223
public:
224224
AddNewInstallDlg(wxWindow* parent);
225225

wxWidgets/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
2626
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
2727
endif()
2828

29+
# This block, particularly the versions used, should be kept in sync with
30+
# samples/minimal/CMakeLists.txt.
2931
if(APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET)
3032
# If no deployment target has been set default to the minimum supported
31-
# OS X version (this has to be set before the first project() call)
32-
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10 CACHE STRING "macOS Deployment Target")
33+
# OS version (this has to be set before the first project() call)
34+
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
35+
set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0 CACHE STRING "iOS Deployment Target")
36+
else()
37+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10 CACHE STRING "macOS Deployment Target")
38+
endif()
3339
endif()
3440

3541
include(build/cmake/policies.cmake NO_POLICY_SCOPE)
@@ -62,7 +68,7 @@ else()
6268
endif()
6369

6470
set(wxVERSION ${wxMAJOR_VERSION}.${wxMINOR_VERSION}.${wxRELEASE_NUMBER})
65-
set(wxCOPYRIGHT "1992-2020 wxWidgets")
71+
set(wxCOPYRIGHT "1992-2021 wxWidgets")
6672

6773
project(wxWidgets VERSION ${wxVERSION})
6874

0 commit comments

Comments
 (0)