Changeset 9975

Show
Ignore:
Timestamp:
04/03/10 02:53:23 (3 years ago)
Author:
shereef
Message:

added autotools support to python components

Location:
ossiedev/trunk/tools/WaveDev/wavedev
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/tools/WaveDev/wavedev/ComponentFrame.py

    r9661 r9975  
    10211021                os.mkdir(self.path) 
    10221022 
    1023                 #if os.path.exists(self.path + '/aclocal.d') == False: 
    1024                 #    os.mkdir(self.path + '/aclocal.d') 
    1025                 #for f in os.listdir('generate/aclocal.d/'): 
    1026                 #    if not os.path.isdir(f): 
    1027                 #        shutil.copy('generate/aclocal.d/' + f,self.path + '/aclocal.d') 
    1028                 if self.template != "py_comp": 
    1029                     shutil.copy(self.wavedevPath + '/generate/reconf',self.path) 
    1030                     chmod(self.path + '/reconf', 0755) 
    1031                 if self.licensefile != "": 
     1023        #if os.path.exists(self.path + '/aclocal.d') == False: 
     1024        #    os.mkdir(self.path + '/aclocal.d') 
     1025        #for f in os.listdir('generate/aclocal.d/'): 
     1026        #    if not os.path.isdir(f): 
     1027        #        shutil.copy('generate/aclocal.d/' + f,self.path + '/aclocal.d') 
     1028        shutil.copy(self.wavedevPath + '/generate/reconf',self.path) 
     1029        chmod(self.path + '/reconf', 0755) 
     1030 
     1031        if self.licensefile != "": 
    10321032                    shutil.copy(self.licensefile,self.path + '/LICENSE') 
    10331033 
  • ossiedev/trunk/tools/WaveDev/wavedev/generate/templates/py_comp/genStructure.py

    r9974 r9975  
    8989    output.close()   #done creating the file 
    9090 
    91  
    92  
     91    output = open(compPath + 'Makefile.am', 'w') 
     92    ts = "ACLOCAL_AMFLAGS = -I m4\n" 
     93    ts = ts + "EXTRA_DIST = " + comp.name + ".prf.xml " + comp.name + ".scd.xml " + comp.name + ".spd.xml " + "setup.py\n" 
     94    ts = ts + "install-exec-hook:\n\tpython setup.py install\n" 
     95    output.writelines(ts) 
     96 
     97    output.close() 
    9398 
    9499 
     
    101106    ############################################################################## 
    102107    ''' 
    103     pass 
    104  
    105  
     108    if genPath[len(genPath)-1] != '/': 
     109        genPath = genPath + '/' 
     110 
     111    output = open(genPath + 'configure.ac', 'w') 
     112    ts = "AC_INIT(" + name + ", 0.8.1)\n" 
     113    ts = ts + "AM_INIT_AUTOMAKE\n" 
     114    ts = ts + "AM_PATH_PYTHON([2.5])\n" 
     115    ts = ts + "AC_CONFIG_FILES([Makefile])\n" 
     116    ts = ts + "AC_OUTPUT" 
     117    output.writelines(ts) 
     118    output.close() 
    106119 
    107120