mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-10-30 18:17:15 +00:00 
			
		
		
		
	ZoneLoading: Extract all obj dumping relevant parts to ObjWriting component
This commit is contained in:
		
							
								
								
									
										44
									
								
								src/ObjWriting.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								src/ObjWriting.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| ObjWriting = {} | ||||
|  | ||||
| function ObjWriting:include() | ||||
| 	ZoneCommon:include() | ||||
| 	includedirs { | ||||
| 		path.join(ProjectFolder(), "ObjWriting") | ||||
| 	} | ||||
| end | ||||
|  | ||||
| function ObjWriting:link() | ||||
|     Utils:link() | ||||
| 	ZoneCommon:link() | ||||
| 	links { | ||||
| 		"ObjWriting" | ||||
| 	} | ||||
| end | ||||
|  | ||||
| function ObjWriting:use() | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function ObjWriting:project() | ||||
| 	local folder = ProjectFolder(); | ||||
|  | ||||
| 	project "ObjWriting" | ||||
|         targetdir(TargetDirectoryLib) | ||||
| 		location "%{wks.location}/src/%{prj.name}" | ||||
| 		kind "StaticLib" | ||||
| 		language "C++" | ||||
| 		 | ||||
| 		files { | ||||
| 			path.join(folder, "ObjWriting/**.h"),  | ||||
| 			path.join(folder, "ObjWriting/**.cpp") | ||||
| 		} | ||||
| 		 | ||||
|         vpaths { | ||||
| 			["*"] = { | ||||
| 				path.join(folder, "ObjWriting") | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
|         self:include() | ||||
| 		Utils:include() | ||||
| end | ||||
		Reference in New Issue
	
	Block a user