Rewrite the src SConscript
This commit is contained in:
		
							parent
							
								
									8a00e0a00d
								
							
						
					
					
						commit
						7266c24896
					
				
					 2 changed files with 9 additions and 21 deletions
				
			
		|  | @ -1,25 +1,5 @@ | ||||||
| # SConscript | # SConscript | ||||||
| # vim: set ft=python: | # vim: set ft=python: | ||||||
| # |  | ||||||
| # Eryn Wells <eryn@erynwells.me> | # Eryn Wells <eryn@erynwells.me> | ||||||
| 
 | 
 | ||||||
| import os.path | Program('hello', ['hello.cc']) | ||||||
| 
 |  | ||||||
| Import('env') |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| subdirs = [ |  | ||||||
|     # TODO: Put subdirectories here. |  | ||||||
| ] |  | ||||||
| 
 |  | ||||||
| for d in subdirs: |  | ||||||
|     env.SConscript(os.path.join(d, 'SConscript'), {'env': env}) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| files = [ |  | ||||||
|     # TODO: Put files here. |  | ||||||
| ] |  | ||||||
| 
 |  | ||||||
| objs = [] |  | ||||||
| for f in files: |  | ||||||
|     objs.append(env.Object(f)) |  | ||||||
|  |  | ||||||
							
								
								
									
										8
									
								
								src/hello.cc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/hello.cc
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | ||||||
|  | #include <iostream> | ||||||
|  | 
 | ||||||
|  | int | ||||||
|  | main() | ||||||
|  | { | ||||||
|  |     std::cout << "Hello world!" << std::endl; | ||||||
|  |     return 0; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue