CMakeLists.txt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # SPDX-FileCopyrightText: 2018 yuzu Emulator Project
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. add_library(hid_core STATIC
  4. frontend/emulated_console.cpp
  5. frontend/emulated_console.h
  6. frontend/emulated_controller.cpp
  7. frontend/emulated_controller.h
  8. frontend/emulated_devices.cpp
  9. frontend/emulated_devices.h
  10. frontend/input_converter.cpp
  11. frontend/input_converter.h
  12. frontend/input_interpreter.cpp
  13. frontend/input_interpreter.h
  14. frontend/motion_input.cpp
  15. frontend/motion_input.h
  16. hidbus/hidbus_base.cpp
  17. hidbus/hidbus_base.h
  18. hidbus/ringcon.cpp
  19. hidbus/ringcon.h
  20. hidbus/starlink.cpp
  21. hidbus/starlink.h
  22. hidbus/stubbed.cpp
  23. hidbus/stubbed.h
  24. irsensor/clustering_processor.cpp
  25. irsensor/clustering_processor.h
  26. irsensor/image_transfer_processor.cpp
  27. irsensor/image_transfer_processor.h
  28. irsensor/ir_led_processor.cpp
  29. irsensor/ir_led_processor.h
  30. irsensor/moment_processor.cpp
  31. irsensor/moment_processor.h
  32. irsensor/pointing_processor.cpp
  33. irsensor/pointing_processor.h
  34. irsensor/processor_base.cpp
  35. irsensor/processor_base.h
  36. irsensor/tera_plugin_processor.cpp
  37. irsensor/tera_plugin_processor.h
  38. resources/abstracted_pad/abstract_battery_handler.cpp
  39. resources/abstracted_pad/abstract_battery_handler.h
  40. resources/abstracted_pad/abstract_button_handler.cpp
  41. resources/abstracted_pad/abstract_button_handler.h
  42. resources/abstracted_pad/abstract_ir_sensor_handler.cpp
  43. resources/abstracted_pad/abstract_ir_sensor_handler.h
  44. resources/abstracted_pad/abstract_led_handler.cpp
  45. resources/abstracted_pad/abstract_led_handler.h
  46. resources/abstracted_pad/abstract_mcu_handler.cpp
  47. resources/abstracted_pad/abstract_mcu_handler.h
  48. resources/abstracted_pad/abstract_nfc_handler.cpp
  49. resources/abstracted_pad/abstract_nfc_handler.h
  50. resources/abstracted_pad/abstract_pad.cpp
  51. resources/abstracted_pad/abstract_pad.h
  52. resources/abstracted_pad/abstract_pad_holder.cpp
  53. resources/abstracted_pad/abstract_pad_holder.h
  54. resources/abstracted_pad/abstract_palma_handler.cpp
  55. resources/abstracted_pad/abstract_palma_handler.h
  56. resources/abstracted_pad/abstract_properties_handler.cpp
  57. resources/abstracted_pad/abstract_properties_handler.h
  58. resources/abstracted_pad/abstract_sixaxis_handler.cpp
  59. resources/abstracted_pad/abstract_sixaxis_handler.h
  60. resources/abstracted_pad/abstract_vibration_handler.cpp
  61. resources/abstracted_pad/abstract_vibration_handler.h
  62. resources/debug_pad/debug_pad.cpp
  63. resources/debug_pad/debug_pad.h
  64. resources/debug_pad/debug_pad_types.h
  65. resources/digitizer/digitizer.cpp
  66. resources/digitizer/digitizer.h
  67. resources/keyboard/keyboard.cpp
  68. resources/keyboard/keyboard.h
  69. resources/keyboard/keyboard_types.h
  70. resources/mouse/debug_mouse.cpp
  71. resources/mouse/debug_mouse.h
  72. resources/mouse/mouse.cpp
  73. resources/mouse/mouse.h
  74. resources/mouse/mouse_types.h
  75. resources/npad/npad.cpp
  76. resources/npad/npad.h
  77. resources/npad/npad_data.cpp
  78. resources/npad/npad_data.h
  79. resources/npad/npad_resource.cpp
  80. resources/npad/npad_resource.h
  81. resources/npad/npad_types.h
  82. resources/npad/npad_vibration.cpp
  83. resources/npad/npad_vibration.h
  84. resources/palma/palma.cpp
  85. resources/palma/palma.h
  86. resources/six_axis/console_six_axis.cpp
  87. resources/six_axis/console_six_axis.h
  88. resources/six_axis/seven_six_axis.cpp
  89. resources/six_axis/seven_six_axis.h
  90. resources/six_axis/six_axis.cpp
  91. resources/six_axis/six_axis.h
  92. resources/system_buttons/capture_button.cpp
  93. resources/system_buttons/capture_button.h
  94. resources/system_buttons/home_button.cpp
  95. resources/system_buttons/home_button.h
  96. resources/system_buttons/sleep_button.cpp
  97. resources/system_buttons/sleep_button.h
  98. resources/touch_screen/gesture.cpp
  99. resources/touch_screen/gesture.h
  100. resources/touch_screen/gesture_types.h
  101. resources/touch_screen/touch_screen.cpp
  102. resources/touch_screen/touch_screen.h
  103. resources/touch_screen/touch_types.h
  104. resources/unique_pad/unique_pad.cpp
  105. resources/unique_pad/unique_pad.h
  106. resources/vibration/gc_vibration_device.h
  107. resources/vibration/gc_vibration_device.cpp
  108. resources/vibration/n64_vibration_device.h
  109. resources/vibration/n64_vibration_device.cpp
  110. resources/vibration/vibration_base.h
  111. resources/vibration/vibration_base.cpp
  112. resources/vibration/vibration_device.h
  113. resources/vibration/vibration_device.cpp
  114. resources/applet_resource.cpp
  115. resources/applet_resource.h
  116. resources/controller_base.cpp
  117. resources/controller_base.h
  118. resources/hid_firmware_settings.cpp
  119. resources/hid_firmware_settings.h
  120. resources/irs_ring_lifo.h
  121. resources/ring_lifo.h
  122. resources/shared_memory_format.h
  123. resources/shared_memory_holder.cpp
  124. resources/shared_memory_holder.h
  125. hid_core.cpp
  126. hid_core.h
  127. hid_result.h
  128. hid_types.h
  129. hid_util.h
  130. precompiled_headers.h
  131. resource_manager.cpp
  132. resource_manager.h
  133. )
  134. if (MSVC)
  135. target_compile_options(hid_core PRIVATE
  136. /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
  137. /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data
  138. /we4245 # 'conversion': conversion from 'type1' to 'type2', signed/unsigned mismatch
  139. /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data
  140. /we4800 # Implicit conversion from 'type' to bool. Possible information loss
  141. )
  142. else()
  143. target_compile_options(hid_core PRIVATE
  144. -Werror=conversion
  145. -Wno-sign-conversion
  146. -Wno-cast-function-type
  147. $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>
  148. )
  149. endif()
  150. create_target_directory_groups(hid_core)
  151. target_link_libraries(hid_core PUBLIC core)
  152. if (YUZU_USE_PRECOMPILED_HEADERS)
  153. target_precompile_headers(hid_core PRIVATE precompiled_headers.h)
  154. endif()