加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SConscript 10.68 KB
一键复制 编辑 原始数据 按行查看 历史
RobotFly 提交于 2022-09-25 17:26 . 新增天气涂鸦库
import os
import sys
import frconfig
from building import *
cwd = GetCurrentDir()
src = []
if frconfig.ARCH=='arm':
LIBPATH = [cwd+'/sdk_arm/lib']
elif frconfig.ARCH=='ubuntu':
LIBPATH = [cwd+'/sdk_ubuntu/lib']
else:
print("frconfig.ARCH!=arm or ubuntu, check arch")
exit(0)
tuya_root = cwd+'/sdk_'+frconfig.ARCH
# def scaner_file (url):
# file = os.listdir(url)
# for f in file:
# real_url = os.path.join (url , f)
# if os.path.isdir(real_url):
# #如果是目录,则是递归调研自定义函数 scaner_file (url)进行多次搜索
# CPPPATH.append(real_url)
# scaner_file(real_url)
# scaner_file(tuya_root+'/include')
CPPPATH=[
tuya_root+'/include',
tuya_root+'/include/gw_svc_engineer',
tuya_root+'/include/gw_svc_engineer/include',
tuya_root+'/include/svc_ctrl_center',
tuya_root+'/include/svc_ctrl_center/include',
tuya_root+'/include/speaker_cloud',
tuya_root+'/include/speaker_cloud/include',
tuya_root+'/include/tuya_base_event',
tuya_root+'/include/tuya_base_event/include',
tuya_root+'/include/svc_ir_control',
tuya_root+'/include/svc_ir_control/include',
tuya_root+'/include/ipc_stream_com',
tuya_root+'/include/ipc_stream_com/include',
tuya_root+'/include/bluetooth_mgr',
tuya_root+'/include/bluetooth_mgr/component',
tuya_root+'/include/bluetooth_mgr/component/tuya_gw_bt',
tuya_root+'/include/bluetooth_mgr/component/tuya_gw_bt/include',
tuya_root+'/include/base_os_adapter_bt',
tuya_root+'/include/base_os_adapter_bt/include',
tuya_root+'/include/tuya_avs_kv',
tuya_root+'/include/tuya_avs_kv/include',
tuya_root+'/include/gw_api_zig',
tuya_root+'/include/gw_api_zig/include',
tuya_root+'/include/home_ctrl_dev',
tuya_root+'/include/home_ctrl_dev/include',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_tv',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_airer',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_scene_switch',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_fanner',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_air_purifier',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_ir',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_common',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_temp_ctrl',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_fresh_air',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_light',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_sensor',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_socket',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_sofa',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_ac',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_switch',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_curtain',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_sockets',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_dev',
tuya_root+'/include/svc_api_wifi',
tuya_root+'/include/svc_api_wifi/include',
tuya_root+'/include/svc_gw_sdk_interface',
tuya_root+'/include/svc_gw_sdk_interface/include',
tuya_root+'/include/svc_devos',
tuya_root+'/include/svc_devos/include',
tuya_root+'/include/svc_api_wired',
tuya_root+'/include/svc_api_wired/include',
tuya_root+'/include/base_timeq',
tuya_root+'/include/base_timeq/include',
tuya_root+'/include/zigbee_gateway',
tuya_root+'/include/zigbee_gateway/include',
tuya_root+'/include/route_fast_join',
tuya_root+'/include/route_fast_join/include',
tuya_root+'/include/base_os_adapter',
tuya_root+'/include/base_os_adapter/OS_adapter_linux',
tuya_root+'/include/base_os_adapter/OS_adapter_linux/include',
tuya_root+'/include/base_os_adapter/OS_adapter_linux/include/system',
tuya_root+'/include/base_os_adapter/include',
tuya_root+'/include/svc_linux_crash_dump',
tuya_root+'/include/svc_linux_crash_dump/include',
tuya_root+'/include/sdk_adpt_com_api',
tuya_root+'/include/sdk_adpt_com_api/include',
tuya_root+'/include/iot_scene',
tuya_root+'/include/iot_scene/include',
tuya_root+'/include/iot_clock',
tuya_root+'/include/iot_clock/include',
tuya_root+'/include/gw_base_utilities',
tuya_root+'/include/gw_base_utilities/include',
tuya_root+'/include/base_media',
tuya_root+'/include/base_media/include',
tuya_root+'/include/route_service',
tuya_root+'/include/route_service/include',
tuya_root+'/include/svc_voice_capable',
tuya_root+'/include/svc_voice_capable/include',
tuya_root+'/include/svc_tmm_link',
tuya_root+'/include/svc_tmm_link/include',
tuya_root+'/include/gw_api_home_security',
tuya_root+'/include/gw_api_home_security/include',
tuya_root+'/include/svc_ipc_core',
tuya_root+'/include/svc_ipc_core/include',
tuya_root+'/include/svc_streaming_p2p',
tuya_root+'/include/svc_streaming_p2p/include',
tuya_root+'/include/tuya_multimedia_comm',
tuya_root+'/include/tuya_multimedia_comm/include',
tuya_root+'/include/base_security',
tuya_root+'/include/base_security/include',
tuya_root+'/include/base_iot_config',
tuya_root+'/include/base_iot_config/include',
tuya_root+'/include/svc_api_iot',
tuya_root+'/include/svc_api_iot/include',
tuya_root+'/include/svc_ai_speaker',
tuya_root+'/include/svc_ai_speaker/include',
tuya_root+'/include/svc_ring_buffer',
tuya_root+'/include/svc_ring_buffer/include',
tuya_root+'/include/svc_api_wired_wifi',
tuya_root+'/include/svc_api_wired_wifi/include',
tuya_root+'/include/tuya_voice_front',
tuya_root+'/include/tuya_voice_front/include',
tuya_root+'/include/speaker_upload',
tuya_root+'/include/speaker_upload/include',
tuya_root+'/include/base_log_mng',
tuya_root+'/include/base_log_mng/include',
tuya_root+'/include/tuya_avs',
tuya_root+'/include/tuya_avs/include',
tuya_root+'/include/gw_hotel_mgr',
tuya_root+'/include/gw_hotel_mgr/include',
tuya_root+'/include/sdk_adpt_voice',
tuya_root+'/include/sdk_adpt_voice/include',
tuya_root+'/include/base_utilities',
tuya_root+'/include/base_utilities/include',
tuya_root+'/include/gw_svc_sm',
tuya_root+'/include/gw_svc_sm/include',
tuya_root+'/include/base_msgq',
tuya_root+'/include/base_msgq/include',
tuya_root+'/include/gw_svc_engineer_zb',
tuya_root+'/include/gw_svc_engineer_zb/include',
tuya_root+'/include/gw_svc_engineer/include',
tuya_root+'/include/svc_ctrl_center/include',
tuya_root+'/include/speaker_cloud/include',
tuya_root+'/include/tuya_base_event/include',
tuya_root+'/include/svc_ir_control/include',
tuya_root+'/include/ipc_stream_com/include',
tuya_root+'/include/bluetooth_mgr/component/tuya_gw_bt/include',
tuya_root+'/include/base_os_adapter_bt/include',
tuya_root+'/include/tuya_avs_kv/include',
tuya_root+'/include/gw_api_zig/include',
tuya_root+'/include/home_ctrl_dev/include',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_tv',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_airer',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_scene_switch',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_fanner',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_air_purifier',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_ir',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_common',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_temp_ctrl',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_fresh_air',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_light',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_sensor',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_socket',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_sofa',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_ac',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_switch',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_curtain',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_sockets',
tuya_root+'/include/home_ctrl_dev/include/tuya_home_ctrl_dev',
tuya_root+'/include/svc_api_wifi/include',
tuya_root+'/include/svc_gw_sdk_interface/include',
tuya_root+'/include/svc_devos/include',
tuya_root+'/include/svc_api_wired/include',
tuya_root+'/include/base_timeq/include',
tuya_root+'/include/zigbee_gateway/include',
tuya_root+'/include/route_fast_join/include',
tuya_root+'/include/base_os_adapter/OS_adapter_linux/include',
tuya_root+'/include/base_os_adapter/OS_adapter_linux/include/system',
tuya_root+'/include/base_os_adapter/include',
tuya_root+'/include/svc_linux_crash_dump/include',
tuya_root+'/include/sdk_adpt_com_api/include',
tuya_root+'/include/iot_scene/include',
tuya_root+'/include/iot_clock/include',
tuya_root+'/include/gw_base_utilities/include',
tuya_root+'/include/base_media/include',
tuya_root+'/include/route_service/include',
tuya_root+'/include/svc_voice_capable/include',
tuya_root+'/include/svc_tmm_link/include',
tuya_root+'/include/gw_api_home_security/include',
tuya_root+'/include/svc_ipc_core/include',
tuya_root+'/include/svc_streaming_p2p/include',
tuya_root+'/include/tuya_multimedia_comm/include',
tuya_root+'/include/base_security/include',
tuya_root+'/include/base_iot_config/include',
tuya_root+'/include/svc_api_iot/include',
tuya_root+'/include/svc_ai_speaker/include',
tuya_root+'/include/svc_ring_buffer/include',
tuya_root+'/include/svc_api_wired_wifi/include',
tuya_root+'/include/tuya_voice_front/include',
tuya_root+'/include/speaker_upload/include',
tuya_root+'/include/base_log_mng/include',
tuya_root+'/include/tuya_avs/include',
tuya_root+'/include/gw_hotel_mgr/include',
tuya_root+'/include/sdk_adpt_voice/include',
tuya_root+'/include/base_utilities/include',
tuya_root+'/include/gw_svc_sm/include',
tuya_root+'/include/base_msgq/include',
tuya_root+'/include/gw_svc_engineer_zb/include',
tuya_root+'/include/zigbee_gateway/include',
tuya_root+'/include/tuya_weather/include'
]
LIBS = [
'ty_iot_sdk',
'ty_module_gw_base',
'ty_module_zigbee',
'ty_module_center_ctrl',
'ty_module_voice',
'ty_iot_voice_base',
'speex',
'opus',
'tuya_service_streaming',
'ty_module_multimedia_comm'
]
CPPDEFINES=[
]
group = DefineGroup('tuya_iot', src, depend = ['PKG_USING_TUYA'], CPPPATH = CPPPATH,LIBS=LIBS,LIBPATH=LIBPATH)
Return('group')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化