mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:42:45 +00:00 
			
		
		
		
	HackStudio: Project templates and New Project dialog
This commit adds a simple project template system to HackStudio, as well as a pretty New Project dialog, inspired by early VS.NET and MS Office.
This commit is contained in:
		
							parent
							
								
									a6fdc17f3f
								
							
						
					
					
						commit
						b671577223
					
				
					 24 changed files with 1178 additions and 1 deletions
				
			
		
							
								
								
									
										19
									
								
								Base/res/devel/templates/cpp-basic.postcreate
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								Base/res/devel/templates/cpp-basic.postcreate
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| echo "PROGRAM = $1" >> $2/Makefile | ||||
| echo "OBJS = main.o" >> $2/Makefile | ||||
| echo "CXXFLAGS = -g -std=c++2a" >> $2/Makefile | ||||
| echo "" >> $2/Makefile | ||||
| echo "all: \$(PROGRAM)" >> $2/Makefile | ||||
| echo "" >> $2/Makefile | ||||
| echo "\$(PROGRAM): \$(OBJS)" >> $2/Makefile | ||||
| echo "	\$(CXX) -o \$@ \$(OBJS)" >> $2/Makefile | ||||
| echo "" >> $2/Makefile | ||||
| echo "%.o: %.cpp" >> $2/Makefile | ||||
| echo "	\$(CXX) \$(CXXFLAGS) -o \$@ -c \$< " >> $2/Makefile | ||||
| echo "" >> $2/Makefile | ||||
| echo "clean:" >> $2/Makefile | ||||
| echo "	rm \$(OBJS) \$(PROGRAM)" >> $2/Makefile | ||||
| echo "" >> $2/Makefile | ||||
| echo "run:" >> $2/Makefile | ||||
| echo "	./\$(PROGRAM)" >> $2/Makefile | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Vella
						Nick Vella