mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-11-04 07:00:39 +01:00 
			
		
		
		
	meson: relocate add_project_arguments() for IS_WINDOWS
Change-Id: I6afb65fabf858449f2706bf250588225a94c1871 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/63827 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Heijligen
					
				
			
			
				
	
			
			
			
						parent
						
							c287de2e09
						
					
				
				
					commit
					f5d33e26e0
				
			
							
								
								
									
										11
									
								
								meson.build
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								meson.build
									
									
									
									
									
								
							@@ -36,12 +36,6 @@ add_project_arguments('-D_POSIX_C_SOURCE=200809L', language : 'c') # required fo
 | 
			
		||||
add_project_arguments('-D_BSD_SOURCE', language : 'c') # required for glibc < v2.19
 | 
			
		||||
add_project_arguments('-DFLASHROM_VERSION="' + meson.project_version() + '"', language : 'c')
 | 
			
		||||
 | 
			
		||||
if host_machine.system() in ['cygwin', 'windows']
 | 
			
		||||
  add_project_arguments('-DIS_WINDOWS=1', language : 'c')
 | 
			
		||||
else
 | 
			
		||||
  add_project_arguments('-DIS_WINDOWS=0', language : 'c')
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# get defaults from configure
 | 
			
		||||
config_atahpt = get_option('config_atahpt')
 | 
			
		||||
config_atapromise = get_option('config_atapromise')
 | 
			
		||||
@@ -174,6 +168,11 @@ endif
 | 
			
		||||
if cc.check_header('sys/utsname.h')
 | 
			
		||||
  add_project_arguments('-DHAVE_UTSNAME=1', language : 'c')
 | 
			
		||||
endif
 | 
			
		||||
if host_machine.system() in ['cygwin', 'windows']
 | 
			
		||||
  add_project_arguments('-DIS_WINDOWS=1', language : 'c')
 | 
			
		||||
else
 | 
			
		||||
  add_project_arguments('-DIS_WINDOWS=0', language : 'c')
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
srcs += 'platform/memaccess.c'
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user