| 
									
										
										
										
											2020-10-22 02:33:40 +02:00
										 |  |  | #!/usr/bin/env python | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Import("env") | 
					
						
							|  |  |  | Import("env_modules") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | env_minimp3 = env_modules.Clone() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | thirdparty_dir = "#thirdparty/minimp3/" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-19 13:34:56 +02:00
										 |  |  | # Treat minimp3 headers as system headers to avoid raising warnings. Not supported on MSVC. | 
					
						
							|  |  |  | if not env.msvc: | 
					
						
							|  |  |  |     env_minimp3.Append(CPPFLAGS=["-isystem", Dir(thirdparty_dir).path]) | 
					
						
							|  |  |  | else: | 
					
						
							|  |  |  |     env_minimp3.Prepend(CPPPATH=[thirdparty_dir]) | 
					
						
							| 
									
										
										
										
											2020-10-22 02:33:40 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-05 17:09:11 -05:00
										 |  |  | # Godot source files | 
					
						
							| 
									
										
										
										
											2023-06-19 13:34:56 +02:00
										 |  |  | env_minimp3.add_source_files(env.modules_sources, "*.cpp") |