1 Star 0 Fork 0

yukelab/sparrow_No1

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
SConstruct 1.15 KB
Copy Edit Raw Blame History
yukelab authored 2020-04-15 21:19 . project init
import os
import sys
import rtconfig
from rtconfig import RTT_ROOT
# set RTT_ROOT
if not os.getenv('RTT_ROOT'):
RTT_ROOT='rt-thread'
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *
# set RTT_ROOT
if not os.getenv('RTT_ROOT'):
RTT_ROOT='rt-thread'
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
CXX = rtconfig.CC, CXXFLAGS = rtconfig.CXXFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
# add --start-group and --end-group for GNU GCC
if rtconfig.PLATFORM == 'gcc':
env['LINKCOM'] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS -Wl,--start-group $_LIBFLAGS -Wl,--end-group'
Export('RTT_ROOT')
Export('rtconfig')
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=True)
# help(objs[0])
# for item in objs:
# print(item.name)
# make a building
DoBuilding(TARGET, objs)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yukelab/sparrow_No1.git
git@gitee.com:yukelab/sparrow_No1.git
yukelab
sparrow_No1
sparrow_No1
master

Search

0d507c66 1850385 C8b1a773 1850385