Commits

zougloub  committed 5fc8cad

ticgt: support stlib

  • Participants
  • Parent commits 8323d7d

Comments (0)

Files changed (2)

File playground/ti/wscript

 # Jérôme Carretero, 2012 (zougloub)
 # Put this file in ti-dsplink-tree/dsplink/dsp/src/samples/message
 
-
-import os, sys
-
-opj = os.path.join
-
 def options(opt):
 	opt.load('ticgt')
 
 	)
 
 	bld(
-	 target='message-demo',
-	 features='c cprogram',
+	 target='messagelib',
+	 features='c cstlib',
 	 source=bld.path.ant_glob('*.c'),
 	 use=[
 	  'DSPBIOS', 'DSPLINK',
-	  'message',
 	 ],
 	 # Taken from DSP/Link generated _defines.txt files, replaced a -D by a -d
 	 defines=' -dTSK_MODE -dDDSP_DEBUG -dMAX_DSPS=1 -dMAX_PROCESSORS=2 -dID_GPP=1 -dOMAPL138 -dPROC_COMPONENT -dPOOL_COMPONENT -dNOTIFY_COMPONENT -dMPCS_COMPONENT -dRINGIO_COMPONENT -dMPLIST_COMPONENT -dMSGQ_COMPONENT -dMSGQ_ZCPY_LINK -dCHNL_COMPONENT -dCHNL_ZCPY_LINK -dZCPY_LINK -dPROCID=0 -dDA8XXGEM -dDA8XXGEM_INTERFACE=SHMEM_INTERFACE -dPHYINTERFACE=SHMEM_INTERFACE -dDSP_SWI_MODE'.split(" -d")[1:] + [
 	 ],
 	)
 
+	bld(
+	 target='message-demo',
+	 features='c cprogram',
+	 use=[
+	  'messagelib',
+	  'message',
+	 ],
+	)
+

File waflib/extras/ticgt.py

 	ar = conf.cmd_to_list(ar)
 	conf.env.AR = ar
 	conf.env.AR_NAME = 'tiar'
-	conf.env.ARFLAGS = 'rcs'
+	conf.env.ARFLAGS = 'qru'
 
 @conf
 def ticc_common_flags(conf):
 
 	v['LIB_ST']	      = '-l%s' # template for adding libs
 	v['LIBPATH_ST']	  = '-i%s' # template for adding libpaths
-	v['STLIB_ST']	    = '-l%s'
+	v['STLIB_ST']	    = '-l=%s.lib'
 	v['STLIBPATH_ST']	= '-i%s'
 
 	# program
 
 	# static lib
 	#v['LINKFLAGS_cstlib']    = ['-Wl,-Bstatic']
-	v['cstlib_PATTERN']      = 'lib%s.a'
+	v['cstlib_PATTERN']      = '%s.lib'
 
 def configure(conf):
 	v = conf.env