Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[[ emscripten ]] Add code stubs for missing symbols in emscripten build
This patch adds source code stubs to resolve reported missing symbols while
compiling & linking the emscripten standalone engine.
  • Loading branch information
Ian Macphail committed Apr 21, 2020
commit e8ffba71440d40c19517b0d6e65eb752cdaa3f3c
6 changes: 6 additions & 0 deletions engine/src/em-dc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,12 @@ MCScreenDC::popupaskdialog(uint32_t p_type, MCStringRef p_title, MCStringRef p_m
}


/* ================================================================
* Mouse state
* ================================================================ */

Boolean tripleclick = False;

void
MCScreenDC::update_mouse_press_state(MCMousePressState p_state, int32_t p_button)
{
Expand Down
11 changes: 11 additions & 0 deletions libbrowser/libbrowser.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
'src/libbrowser_win_factories.cpp',
'src/libbrowser_osx_factories.cpp',
'src/libbrowser_ios_factories.cpp',
'src/libbrowser_emscripten_factories.cpp',
],

'target_conditions':
Expand Down Expand Up @@ -157,6 +158,16 @@
],
},
],

[
'toolset_os != "emscripten"',
{
'sources!':
[
'src/libbrowser_emscripten_factories',
],
},
],
],

'link_settings':
Expand Down
25 changes: 25 additions & 0 deletions libbrowser/src/libbrowser_emscripten_factories.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* Copyright (C) 2020 LiveCode Ltd.

This file is part of LiveCode.

LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.

LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */

#include <core.h>

#include "libbrowser_internal.h"

////////////////////////////////////////////////////////////////////////////////

MCBrowserFactoryMap* s_factory_list = nil;

////////////////////////////////////////////////////////////////////////////////