1can_ss = ss.source_set() 2can_ss.add(files('can_core.c', 'can_host.c')) 3if host_os == 'linux' 4 can_ss.add(files('can_socketcan.c')) 5endif 6 7system_ss.add_all(when: 'CONFIG_CAN_BUS', if_true: can_ss) 8
1can_ss = ss.source_set() 2can_ss.add(files('can_core.c', 'can_host.c')) 3if host_os == 'linux' 4 can_ss.add(files('can_socketcan.c')) 5endif 6 7system_ss.add_all(when: 'CONFIG_CAN_BUS', if_true: can_ss) 8