View Single Post
  #10   Spotlight this post!  
Unread 12-02-2011, 14:23
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Universal C++ Project - C++ programming for Linux, and more

Ah, just one more problem...

I keep all of my tasks in a separate folder in my root directory named Tasks. It looks like by default, UCPP is only looking for files in the root directory to add to the Makefile. Is there a way to add those files in the folder?


I solved my own problem. I created a file named .ucppdirs in my root directory of the code, then edited ucpp_gen_makefile.py as such:

Code:
# Find all the C++ files in the current directory

file_names = []

d = file(".ucppdirs", "r")
dirs = d.read()
d.close

for direc in dirs.split():
    for filename in os.listdir(direc):
        if filename[-4:]==".cpp":
	    file_names.append(direc + filename[:-4])
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.

Last edited by davidalln : 12-02-2011 at 15:38. Reason: problem solved!