2011-05-16 13:12:07 +00:00
|
|
|
|
2014-10-17 20:41:58 +00:00
|
|
|
list(APPEND _keyboard_layouts
|
|
|
|
kbda1
|
|
|
|
kbda2
|
|
|
|
kbda3
|
|
|
|
kbdal
|
|
|
|
kbdarme
|
|
|
|
kbdarmw
|
|
|
|
kbdaze
|
|
|
|
kbdazel
|
|
|
|
kbdbe
|
|
|
|
kbdbga
|
|
|
|
kbdbgt
|
|
|
|
kbdblr
|
|
|
|
kbdbr
|
2022-08-05 23:03:46 +00:00
|
|
|
kbdbu
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdbur
|
|
|
|
kbdcan
|
|
|
|
kbdcr
|
|
|
|
kbdcz
|
|
|
|
kbdcz1
|
|
|
|
kbdda
|
|
|
|
kbddv
|
2017-07-19 20:33:58 +00:00
|
|
|
kbdeo
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdest
|
|
|
|
kbdfc
|
|
|
|
kbdfi
|
|
|
|
kbdfr
|
|
|
|
kbdgeo
|
|
|
|
kbdgerg
|
|
|
|
kbdgneo
|
|
|
|
kbdgr
|
2022-08-05 23:03:46 +00:00
|
|
|
kbdgr1
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdhe
|
|
|
|
kbdheb
|
|
|
|
kbdhu
|
|
|
|
kbdic
|
|
|
|
kbdinasa
|
|
|
|
kbdinben
|
|
|
|
kbdindev
|
|
|
|
kbdinguj
|
|
|
|
kbdinmal
|
|
|
|
kbdir
|
|
|
|
kbdit
|
2022-08-05 23:03:46 +00:00
|
|
|
kbdjpn
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdkaz
|
2022-08-05 23:03:46 +00:00
|
|
|
kbdkor
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdla
|
|
|
|
kbdlt1
|
|
|
|
kbdlv
|
|
|
|
kbdmac
|
|
|
|
kbdne
|
|
|
|
kbdno
|
|
|
|
kbdpl
|
|
|
|
kbdpl1
|
|
|
|
kbdpo
|
|
|
|
kbdro
|
2018-09-15 18:01:04 +00:00
|
|
|
kbdrost
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdru
|
|
|
|
kbdru1
|
2020-12-30 20:19:22 +00:00
|
|
|
kbdsf
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdsg
|
2022-08-05 23:03:46 +00:00
|
|
|
kbdsl
|
|
|
|
kbdsl1
|
|
|
|
kbdsp
|
2014-10-17 20:41:58 +00:00
|
|
|
kbdsw
|
|
|
|
kbdtat
|
|
|
|
kbdth0
|
|
|
|
kbdth1
|
|
|
|
kbdth2
|
|
|
|
kbdth3
|
|
|
|
kbdtuf
|
|
|
|
kbdtuq
|
|
|
|
kbduk
|
|
|
|
kbdur
|
|
|
|
kbdurs
|
|
|
|
kbdus
|
|
|
|
kbdusa
|
|
|
|
kbdusl
|
|
|
|
kbdusr
|
|
|
|
kbdusx
|
|
|
|
kbduzb
|
|
|
|
kbdvntc
|
|
|
|
kbdycc
|
|
|
|
kbdycl)
|
|
|
|
|
|
|
|
foreach(_keyboard_layout ${_keyboard_layouts})
|
|
|
|
spec2def(${_keyboard_layout}.dll ${_keyboard_layout}/${_keyboard_layout}.spec)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(${_keyboard_layout} MODULE
|
2014-10-17 20:41:58 +00:00
|
|
|
${_keyboard_layout}/${_keyboard_layout}.c
|
|
|
|
${_keyboard_layout}/${_keyboard_layout}.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/${_keyboard_layout}.def)
|
|
|
|
|
|
|
|
target_include_directories(${_keyboard_layout} PRIVATE ${REACTOS_SOURCE_DIR}/ntoskrnl/include)
|
|
|
|
set_entrypoint(${_keyboard_layout} 0)
|
|
|
|
set_image_base(${_keyboard_layout} 0x5FFF0000)
|
|
|
|
set_subsystem(${_keyboard_layout} native)
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
# Merge the .text and .rdata section into the .data section
|
2021-09-13 16:51:08 +00:00
|
|
|
target_link_options(${_keyboard_layout} PRIVATE "/ignore:4254;/SECTION:.data,ER;/MERGE:.text=.data;/MERGE:.rdata=.data;/MERGE:.bss=.data;/MERGE:.edata=.data")
|
2014-10-17 20:41:58 +00:00
|
|
|
else()
|
|
|
|
# Use a custom linker script
|
2021-09-13 16:51:08 +00:00
|
|
|
target_link_options(${_keyboard_layout} PRIVATE "-Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/kbdlayout.lds")
|
2014-10-17 20:41:58 +00:00
|
|
|
endif()
|
|
|
|
|
2020-04-09 01:40:17 +00:00
|
|
|
# dynamic analysis switches
|
2020-05-26 18:24:02 +00:00
|
|
|
if(STACK_PROTECTOR)
|
2020-12-31 16:56:39 +00:00
|
|
|
target_compile_options(${_keyboard_layout} PRIVATE -fno-stack-protector)
|
2014-10-21 10:45:36 +00:00
|
|
|
endif()
|
|
|
|
|
2014-10-18 14:22:09 +00:00
|
|
|
if(RUNTIME_CHECKS)
|
|
|
|
target_link_libraries(${_keyboard_layout} runtmchk)
|
|
|
|
endif()
|
|
|
|
|
2014-10-17 20:41:58 +00:00
|
|
|
add_dependencies(${_keyboard_layout} psdk)
|
|
|
|
add_cd_file(TARGET ${_keyboard_layout} DESTINATION reactos/system32 FOR all)
|
|
|
|
endforeach()
|