Fixed compilation on Windows,
removed debugging menu and debugging output.
This commit is contained in:
parent
ca0f6131a1
commit
e26ccfc247
@ -174,7 +174,6 @@ sub _init_tabpanel {
|
|||||||
EVT_COMMAND($self, -1, $BUTTON_BROWSE_EVENT, sub {
|
EVT_COMMAND($self, -1, $BUTTON_BROWSE_EVENT, sub {
|
||||||
my ($self, $event) = @_;
|
my ($self, $event) = @_;
|
||||||
my $msg = $event->GetString;
|
my $msg = $event->GetString;
|
||||||
print "BUTTON_BROWSE_EVENT: ", $msg, "\n";
|
|
||||||
|
|
||||||
# look for devices
|
# look for devices
|
||||||
my $entries;
|
my $entries;
|
||||||
@ -197,7 +196,6 @@ sub _init_tabpanel {
|
|||||||
EVT_COMMAND($self, -1, $BUTTON_TEST_EVENT, sub {
|
EVT_COMMAND($self, -1, $BUTTON_TEST_EVENT, sub {
|
||||||
my ($self, $event) = @_;
|
my ($self, $event) = @_;
|
||||||
my $msg = $event->GetString;
|
my $msg = $event->GetString;
|
||||||
print "BUTTON_TEST_EVENT: ", $msg, "\n";
|
|
||||||
|
|
||||||
my $ua = LWP::UserAgent->new;
|
my $ua = LWP::UserAgent->new;
|
||||||
$ua->timeout(10);
|
$ua->timeout(10);
|
||||||
@ -410,13 +408,6 @@ sub _init_menubar {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
my $hokusMenu = Wx::Menu->new; # XXX: tmp
|
|
||||||
{
|
|
||||||
$self->_append_menu_item($hokusMenu, "Pokus", "Pokus", sub {
|
|
||||||
Slic3r::Http::pokus();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
# menubar
|
# menubar
|
||||||
# assign menubar to frame after appending items, otherwise special items
|
# assign menubar to frame after appending items, otherwise special items
|
||||||
# will not be handled correctly
|
# will not be handled correctly
|
||||||
@ -431,7 +422,6 @@ sub _init_menubar {
|
|||||||
# (Select application language from the list of installed languages)
|
# (Select application language from the list of installed languages)
|
||||||
Slic3r::GUI::add_debug_menu($menubar, $self->{lang_ch_event});
|
Slic3r::GUI::add_debug_menu($menubar, $self->{lang_ch_event});
|
||||||
$menubar->Append($helpMenu, L("&Help"));
|
$menubar->Append($helpMenu, L("&Help"));
|
||||||
$menubar->Append($hokusMenu, "Hoku&s");
|
|
||||||
# Add an optional debug menu. In production code, the add_debug_menu() call should do nothing.
|
# Add an optional debug menu. In production code, the add_debug_menu() call should do nothing.
|
||||||
$self->SetMenuBar($menubar);
|
$self->SetMenuBar($menubar);
|
||||||
}
|
}
|
||||||
|
@ -533,7 +533,13 @@ find_package(CURL REQUIRED)
|
|||||||
include_directories(${CURL_INCLUDE_DIRS})
|
include_directories(${CURL_INCLUDE_DIRS})
|
||||||
target_link_libraries(XS ${CURL_LIBRARIES})
|
target_link_libraries(XS ${CURL_LIBRARIES})
|
||||||
|
|
||||||
if (SLIC3R_STATIC AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if (SLIC3R_STATIC)
|
||||||
|
if (NOT APPLE)
|
||||||
|
# libcurl is always linked dynamically to the system libcurl on OSX.
|
||||||
|
# On other systems, libcurl is linked statically if SLIC3R_STATIC is set.
|
||||||
|
add_definitions(-DCURL_STATICLIB)
|
||||||
|
endif()
|
||||||
|
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
# As of now, our build system produces a statically linked libcurl,
|
# As of now, our build system produces a statically linked libcurl,
|
||||||
# which links the OpenSSL library dynamically.
|
# which links the OpenSSL library dynamically.
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
@ -542,6 +548,7 @@ if (SLIC3R_STATIC AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
target_link_libraries(XS ${OPENSSL_LIBRARIES})
|
target_link_libraries(XS ${OPENSSL_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
## OPTIONAL packages
|
## OPTIONAL packages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user