-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tdf#114635: reimplement TWAIN-based scan using 32-bit shim on Windows
Since TWAIN is only actually available as 32-bit component on Windows, to use it in a 64-bit program, we need a 32-bit shim program that does all actual communication with TWAIN subsystem. This change reimplements TWAIN implementation to be a separate 32-bit process. Image is transfered from the shim to main program using file mapping API. This reverts most of commit 585d980. 64-bit LibreOffice doesn't bundle TWAIN DSM library now. TWAIN DSM source code is still used for TWAIN headers. Change-Id: I46f178ad36acd97a9eff156624b99036fcbb83f8 Reviewed-on: https://gerrit.libreoffice.org/65688 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
- Loading branch information
1 parent
c3c2ac6
commit 648f24f
Showing
20 changed files
with
1,095 additions
and
1,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- | ||
# | ||
# This file is part of the LibreOffice project. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
|
||
$(eval $(call gb_Executable_Executable,twain32shim)) | ||
|
||
$(eval $(call gb_Executable_set_targettype_gui,twain32shim,YES)) | ||
|
||
$(eval $(call gb_Executable_set_x86,twain32shim,YES)) | ||
|
||
$(eval $(call gb_Executable_use_externals,twain32shim,\ | ||
sane_headers \ | ||
)) | ||
|
||
$(eval $(call gb_Executable_set_include,twain32shim,\ | ||
-I$(SRCDIR)/extensions/inc \ | ||
$$(INCLUDE) \ | ||
)) | ||
|
||
$(eval $(call gb_Executable_add_exception_objects,twain32shim,\ | ||
extensions/source/scanner/twain32shim \ | ||
)) | ||
|
||
$(eval $(call gb_Executable_use_system_win32_libs,twain32shim,\ | ||
shell32 \ | ||
)) | ||
|
||
# vim:set noet sw=4 ts=4: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.