Hash :
a55e4b7a
Author :
Date :
2015-06-09T13:30:25
Enable compilation of dEQP tests on Linux BUG=angleproject:1051 Change-Id: I158e59ca581b580825848e831d05064cdcc30d96 Reviewed-on: https://chromium-review.googlesource.com/276202 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Corentin Wallez <cwallez@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
# Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [ 'common_defines.gypi', ],
'variables':
{
'angle_path': '<(DEPTH)',
'angle_build_winrt%': '0',
'angle_build_winphone%': '0',
'angle_build_winrt_app_type_revision%': '8.1',
# angle_code is set to 1 for the core ANGLE targets defined in src/build_angle.gyp.
# angle_code is set to 0 for test code, sample code, and third party code.
# When angle_code is 1, we build with additional warning flags on Mac and Linux.
'angle_code%': 0,
'release_symbols%': 'true',
'gcc_or_clang_warnings':
[
'-Wall',
'-Wchar-subscripts',
'-Werror',
'-Wextra',
'-Wformat=2',
'-Winit-self',
'-Wno-unused-function',
'-Wno-unused-parameter',
'-Wno-unknown-pragmas',
'-Wpacked',
'-Wpointer-arith',
'-Wundef',
'-Wwrite-strings',
'-Wno-format-nonliteral',
],
},
'target_defaults':
{
'default_configuration': 'Debug',
'variables':
{
'warn_as_error%': 1,
},
'target_conditions':
[
['warn_as_error == 1',
{
'msvs_settings':
{
'VCCLCompilerTool':
{
'WarnAsError': 'true',
},
},
}],
],
'configurations':
{
'Common_Base':
{
'abstract': 1,
'msvs_configuration_attributes':
{
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)_$(Platform)',
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
'CharacterSet': '0', # ASCII
},
'msvs_settings':
{
'VCCLCompilerTool':
{
# Control Flow Guard is a security feature in Windows
# 8.1 and higher designed to prevent exploitation of
# indirect calls in executables.
# Control Flow Guard is enabled using the /d2guard4
# compiler setting in combination with the /guard:cf
# linker setting.
'AdditionalOptions': ['/MP', '/d2guard4'],
'BufferSecurityCheck': 'true',
'DebugInformationFormat': '3',
'ExceptionHandling': '0',
'EnableFunctionLevelLinking': 'true',
'MinimalRebuild': 'false',
'RuntimeTypeInfo': 'true',
'WarningLevel': '4',
},
'VCLinkerTool':
{
# Control Flow Guard is a security feature in Windows
# 8.1 and higher designed to prevent exploitation of
# indirect calls in executables.
# Control Flow Guard is enabled using the /d2guard4
# compiler setting in combination with the /guard:cf
# linker setting.
'AdditionalOptions': ['/guard:cf'],
'FixedBaseAddress': '1',
'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
'MapFileName': '$(OutDir)\\$(TargetName).map',
# Most of the executables we'll ever create are tests
# and utilities with console output.
'SubSystem': '1', # /SUBSYSTEM:CONSOLE
},
'VCResourceCompilerTool':
{
'Culture': '1033',
},
},
}, # Common_Base
'Debug_Base':
{
'abstract': 1,
'defines':
[
'_DEBUG'
],
'msvs_settings':
{
'VCCLCompilerTool':
{
'Optimization': '0', # /Od
'BasicRuntimeChecks': '3',
'conditions':
[
['angle_build_winrt==1',
{
# Use the dynamic C runtime to match
# Windows Application Store requirements
# The C runtime for Windows Store applications
# is a framework package that is managed by
# the Windows deployment model and can be
# shared by multiple packages.
'RuntimeLibrary': '3', # /MDd (debug dll)
},
{
# Use the static C runtime to
# match chromium and make sure
# we don't depend on the dynamic
# runtime's shared heaps
'RuntimeLibrary': '1', # /MTd (debug static)
}],
],
},
'VCLinkerTool':
{
'GenerateDebugInformation': 'true',
'LinkIncremental': '2',
'conditions':
[
['angle_build_winrt==1',
{
'AdditionalDependencies':
[
'dxgi.lib',
]
}],
],
},
},
'xcode_settings':
{
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'COPY_PHASE_STRIP': 'NO',
'GCC_OPTIMIZATION_LEVEL': '0',
},
}, # Debug_Base
'Release_Base':
{
'abstract': 1,
'defines':
[
'NDEBUG'
],
'msvs_settings':
{
'VCCLCompilerTool':
{
'Optimization': '2', # /Os
'conditions':
[
['angle_build_winrt==1',
{
# Use the dynamic C runtime to match
# Windows Application Store requirements
# The C runtime for Windows Store applications
# is a framework package that is managed by
# the Windows deployment model and can be
# shared by multiple packages.
'RuntimeLibrary': '2', # /MD (nondebug dll)
},
{
# Use the static C runtime to
# match chromium and make sure
# we don't depend on the dynamic
'RuntimeLibrary': '0', # /MT (nondebug static)
}],
],
},
'VCLinkerTool':
{
'GenerateDebugInformation': '<(release_symbols)',
'LinkIncremental': '1',
},
},
}, # Release_Base
'x86_Base':
{
'abstract': 1,
'msvs_configuration_platform': 'Win32',
'msvs_settings':
{
'VCLinkerTool':
{
'TargetMachine': '1', # x86
},
'VCLibrarianTool':
{
'TargetMachine': '1', # x86
},
},
}, # x86_Base
'x64_Base':
{
'abstract': 1,
'msvs_configuration_platform': 'x64',
'msvs_settings':
{
'VCLinkerTool':
{
'TargetMachine': '17', # x86 - 64
},
'VCLibrarianTool':
{
'TargetMachine': '17', # x86 - 64
},
},
}, # x64_Base
# Concrete configurations
'Debug':
{
'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
},
'Release':
{
'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
},
'conditions':
[
['angle_build_winrt==0 and OS == "win" and MSVS_VERSION != "2010e"',
{
'Debug_x64':
{
'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
},
'Release_x64':
{
'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
},
}],
['angle_build_winrt==1',
{
'arm_Base':
{
'abstract': 1,
'msvs_configuration_platform': 'ARM',
'msvs_settings':
{
'VCLinkerTool':
{
'TargetMachine': '3', # ARM
},
'VCLibrarianTool':
{
'TargetMachine': '3', # ARM
},
},
}, # arm_Base
}],
['angle_build_winrt==1 and angle_build_winphone==0',
{
'Debug_x64':
{
'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
},
'Release_x64':
{
'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
},
'Debug_ARM':
{
'inherit_from': ['Common_Base', 'arm_Base', 'Debug_Base'],
},
'Release_ARM':
{
'inherit_from': ['Common_Base', 'arm_Base', 'Release_Base'],
},
}],
['angle_build_winrt==1 and angle_build_winphone==1',
{
'Debug_ARM':
{
'inherit_from': ['Common_Base', 'arm_Base', 'Debug_Base'],
},
'Release_ARM':
{
'inherit_from': ['Common_Base', 'arm_Base', 'Release_Base'],
},
}],
],
}, # configurations
}, # target_defaults
'conditions':
[
['OS == "win"',
{
'target_defaults':
{
'msvs_cygwin_dirs': ['../third_party/cygwin'],
},
},
{ # OS != win
'target_defaults':
{
'cflags':
[
'-fPIC',
],
'cflags_cc':
[
'-std=c++0x',
],
},
}],
['OS != "win" and OS != "mac"',
{
'target_defaults':
{
'cflags':
[
'-pthread',
'-fno-exceptions',
],
'ldflags':
[
'-pthread',
],
'configurations':
{
'Debug':
{
'variables':
{
'debug_optimize%': '0',
},
'defines':
[
'_DEBUG',
],
'cflags':
[
'-O>(debug_optimize)',
'-g',
],
}
},
},
}],
['angle_code==1',
{
'target_defaults':
{
'conditions':
[
['OS == "mac"',
{
'xcode_settings':
{
'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
},
}],
['OS != "win" and OS != "mac"',
{
'cflags': ['<@(gcc_or_clang_warnings)']
}],
]
}
}],
],
}