del
@@ -1,99 +0,0 @@ | ||
1 | -set(PACKAGE_NAME "ttpset") | |
2 | - | |
3 | -project(${PACKAGE_NAME}) | |
4 | - | |
5 | -add_library( | |
6 | - ${PACKAGE_NAME} SHARED | |
7 | - ttset.c | |
8 | -# ttset_keyboard.c | |
9 | - ttset_keyboard_entry.c | |
10 | - ttpset-version.rc | |
11 | - ttpset.def | |
12 | - ) | |
13 | - | |
14 | -if(SUPPORT_OLD_WINDOWS) | |
15 | - if(MSVC) | |
16 | - if(${CMAKE_VERSION} VERSION_LESS "3.12.0") | |
17 | - set(CMAKE_C_STANDARD_LIBRARIES "") | |
18 | - set(CMAKE_CXX_STANDARD_LIBRARIES "") | |
19 | - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB") | |
20 | - else() | |
21 | - target_link_options( | |
22 | - ${PACKAGE_NAME} | |
23 | - PRIVATE | |
24 | - /NODEFAULTLIB | |
25 | - ) | |
26 | - endif() | |
27 | - target_sources( | |
28 | - ${PACKAGE_NAME} | |
29 | - PRIVATE | |
30 | - ../../teraterm/common/compat_w95_vs2005.c | |
31 | - ) | |
32 | - endif() | |
33 | - if(MINGW) | |
34 | - target_link_libraries( | |
35 | - ${PACKAGE_NAME} | |
36 | - PRIVATE | |
37 | - -Wl,--whole-archive | |
38 | - mingw_msvcrt | |
39 | - -Wl,--no-whole-archive | |
40 | - ) | |
41 | - endif() | |
42 | -endif(SUPPORT_OLD_WINDOWS) | |
43 | - | |
44 | -target_sources( | |
45 | - ${PACKAGE_NAME} | |
46 | - PRIVATE | |
47 | - ../common/tttypes.h | |
48 | - ../common/ttlib.c | |
49 | - ../common/ttlib.h | |
50 | - ../common/servicenames.h | |
51 | - ) | |
52 | - | |
53 | -source_group( | |
54 | - "common" | |
55 | - REGULAR_EXPRESSION | |
56 | - "..\/common\/" | |
57 | - ) | |
58 | - | |
59 | -set_target_properties( | |
60 | - ${PACKAGE_NAME} | |
61 | - PROPERTIES | |
62 | - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/" | |
63 | - ) | |
64 | - | |
65 | -target_include_directories( | |
66 | - ${PACKAGE_NAME} | |
67 | - PRIVATE | |
68 | - ${CMAKE_CURRENT_SOURCE_DIR}/../common | |
69 | - ) | |
70 | - | |
71 | -if(MINGW) | |
72 | - set_target_properties( | |
73 | - ${PACKAGE_NAME} | |
74 | - PROPERTIES PREFIX "" | |
75 | - SUFFIX ".dll" | |
76 | - ) | |
77 | -endif() | |
78 | - | |
79 | -target_link_libraries( | |
80 | - ${PACKAGE_NAME} | |
81 | - PRIVATE | |
82 | - common_static | |
83 | - ttpcmn | |
84 | - ) | |
85 | - | |
86 | -if(SUPPORT_OLD_WINDOWS) | |
87 | - target_link_libraries( | |
88 | - ${PACKAGE_NAME} | |
89 | - PRIVATE | |
90 | - layer_for_unicode | |
91 | -# ${CRT_LIB} | |
92 | - ) | |
93 | -endif() | |
94 | - | |
95 | -install( | |
96 | - TARGETS ${PACKAGE_NAME} | |
97 | - RUNTIME | |
98 | - DESTINATION . | |
99 | - ) |
@@ -1,44 +0,0 @@ | ||
1 | -/* | |
2 | - * (C) 2021- TeraTerm Project | |
3 | - * All rights reserved. | |
4 | - * | |
5 | - * Redistribution and use in source and binary forms, with or without | |
6 | - * modification, are permitted provided that the following conditions | |
7 | - * are met: | |
8 | - * | |
9 | - * 1. Redistributions of source code must retain the above copyright | |
10 | - * notice, this list of conditions and the following disclaimer. | |
11 | - * 2. Redistributions in binary form must reproduce the above copyright | |
12 | - * notice, this list of conditions and the following disclaimer in the | |
13 | - * documentation and/or other materials provided with the distribution. | |
14 | - * 3. The name of the author may not be used to endorse or promote products | |
15 | - * derived from this software without specific prior written permission. | |
16 | - * | |
17 | - * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR | |
18 | - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
19 | - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
20 | - * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, | |
21 | - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
22 | - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
23 | - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
24 | - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
25 | - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
26 | - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
27 | - */ | |
28 | - | |
29 | -#include <windows.h> | |
30 | - | |
31 | -#include "teraterm.h" | |
32 | -#include "dllutil.h" | |
33 | -#include "../teraterm/keyboard_i.h" | |
34 | - | |
35 | -void PASCAL ReadKeyboardCnf(const wchar_t *FName, PKeyMap KeyMap, BOOL ShowWarning) | |
36 | -{ | |
37 | - void (*ReadKeyboardCnfExe)(const wchar_t *FName, PKeyMap KeyMap, BOOL ShowWarning); | |
38 | - DWORD r = DLLGetApiAddress(L"ttermpro.exe", DLL_LOAD_LIBRARY_CURRENT, "ReadKeyboardCnfExe", (void **)&ReadKeyboardCnfExe); | |
39 | - if (r != NO_ERROR) { | |
40 | - return; | |
41 | - } | |
42 | - | |
43 | - ReadKeyboardCnfExe(FName, KeyMap, ShowWarning); | |
44 | -} |