forked from kiibohd/controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cmake
More file actions
77 lines (59 loc) · 1.17 KB
/
setup.cmake
File metadata and controls
77 lines (59 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
###| CMake Kiibohd Controller Output Module |###
#
# Written by Jacob Alexander in 2011-2018 for the Kiibohd Controller
#
# Released into the Public Domain
#
###
###
# Required Sub-modules
#
AddModule ( Output HID-IO )
AddModule ( Output Interface )
###
# Module C files
#
#| AVR Compiler
if ( ${COMPILER_FAMILY} MATCHES "avr" )
set ( Module_SRCS
output_com.c
output_usb.c
avr/usb_keyboard_serial.c
)
#| ARM Compiler
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
set ( Module_SRCS
output_com.c
output_usb.c
arm/usb_desc.c
arm/usb_dev.c
arm/usb_joystick.c
arm/usb_keyboard.c
arm/usb_mem.c
arm/usb_mouse.c
arm/usb_rawio.c
arm/usb_serial.c
)
if ( "${CHIP}" MATCHES "^sam.*$" )
list(APPEND Module_SRCS
../../Lib/ASF/sam/drivers/udp/udp_device.c
../../Lib/ASF/common/services/usb/udc/udc.c
../../Lib/ASF/common/services/usb/class/cdc/device/udi_cdc.c
)
endif ( )
#| Host Mode
elseif ( ${COMPILER_FAMILY} MATCHES "host" )
set ( Module_SRCS
output_com.c
output_usb.c
)
endif ()
###
# Compiler Family Compatibility
#
# XXX (HaaTa) USB module only supports host family used as a TestOut submodule
set ( ModuleCompatibility
arm
avr
host
)