CMakeLists.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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/debug_pad/debug_pad.cpp
  39. resources/debug_pad/debug_pad.h
  40. resources/debug_pad/debug_pad_types.h
  41. resources/digitizer/digitizer.cpp
  42. resources/digitizer/digitizer.h
  43. resources/keyboard/keyboard.cpp
  44. resources/keyboard/keyboard.h
  45. resources/keyboard/keyboard_types.h
  46. resources/mouse/debug_mouse.cpp
  47. resources/mouse/debug_mouse.h
  48. resources/mouse/mouse.cpp
  49. resources/mouse/mouse.h
  50. resources/mouse/mouse_types.h
  51. resources/npad/npad.cpp
  52. resources/npad/npad.h
  53. resources/npad/npad_data.cpp
  54. resources/npad/npad_data.h
  55. resources/npad/npad_resource.cpp
  56. resources/npad/npad_resource.h
  57. resources/npad/npad_types.h
  58. resources/palma/palma.cpp
  59. resources/palma/palma.h
  60. resources/six_axis/console_six_axis.cpp
  61. resources/six_axis/console_six_axis.h
  62. resources/six_axis/seven_six_axis.cpp
  63. resources/six_axis/seven_six_axis.h
  64. resources/six_axis/six_axis.cpp
  65. resources/six_axis/six_axis.h
  66. resources/system_buttons/capture_button.cpp
  67. resources/system_buttons/capture_button.h
  68. resources/system_buttons/home_button.cpp
  69. resources/system_buttons/home_button.h
  70. resources/system_buttons/sleep_button.cpp
  71. resources/system_buttons/sleep_button.h
  72. resources/touch_screen/gesture.cpp
  73. resources/touch_screen/gesture.h
  74. resources/touch_screen/gesture_types.h
  75. resources/touch_screen/touch_screen.cpp
  76. resources/touch_screen/touch_screen.h
  77. resources/touch_screen/touch_types.h
  78. resources/unique_pad/unique_pad.cpp
  79. resources/unique_pad/unique_pad.h
  80. resources/applet_resource.cpp
  81. resources/applet_resource.h
  82. resources/controller_base.cpp
  83. resources/controller_base.h
  84. resources/hid_firmware_settings.cpp
  85. resources/hid_firmware_settings.h
  86. resources/irs_ring_lifo.h
  87. resources/ring_lifo.h
  88. resources/shared_memory_format.h
  89. resources/shared_memory_holder.cpp
  90. resources/shared_memory_holder.h
  91. hid_core.cpp
  92. hid_core.h
  93. hid_result.h
  94. hid_types.h
  95. hid_util.h
  96. precompiled_headers.h
  97. resource_manager.cpp
  98. resource_manager.h
  99. )
  100. if (MSVC)
  101. target_compile_options(hid_core PRIVATE
  102. /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
  103. /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data
  104. /we4245 # 'conversion': conversion from 'type1' to 'type2', signed/unsigned mismatch
  105. /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data
  106. /we4800 # Implicit conversion from 'type' to bool. Possible information loss
  107. )
  108. else()
  109. target_compile_options(hid_core PRIVATE
  110. -Werror=conversion
  111. -Wno-sign-conversion
  112. -Wno-cast-function-type
  113. $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>
  114. )
  115. endif()
  116. create_target_directory_groups(hid_core)
  117. target_link_libraries(hid_core PUBLIC core)
  118. if (YUZU_USE_PRECOMPILED_HEADERS)
  119. target_precompile_headers(hid_core PRIVATE precompiled_headers.h)
  120. endif()