1# SPDX-License-Identifier: Apache-2.0 2 3# lorawan.c depends on the include directories exposed by the loramac-node 4# library. Hence, if it exists then the source files are added to that otherwise 5# a library with same name is created. 6if(TARGET loramac-node) 7 set(ZEPHYR_CURRENT_LIBRARY loramac-node) 8else() 9 zephyr_library_named(loramac-node) 10endif() 11 12zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_AS923 REGION_AS923) 13zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_AU915 REGION_AU915) 14zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_CN470 REGION_CN470) 15zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_CN779 REGION_CN779) 16zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_EU433 REGION_EU433) 17zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_EU868 REGION_EU868) 18zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_KR920 REGION_KR920) 19zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_IN865 REGION_IN865) 20zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_US915 REGION_US915) 21zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_RU864 REGION_RU864) 22 23zephyr_library_sources_ifdef(CONFIG_LORAWAN lorawan.c) 24zephyr_library_sources_ifdef(CONFIG_LORAWAN lw_priv.c) 25