1 # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 'includes': [ 'common_defines.gypi', ],
9 'angle_build_tests%': '1',
10 'angle_build_samples%': '1',
11 # angle_code is set to 1 for the core ANGLE targets defined in src/build_angle.gyp.
12 # angle_code is set to 0 for test code, sample code, and third party code.
13 # When angle_code is 1, we build with additional warning flags on Mac and Linux.
15 'release_symbols%': 'true',
16 'gcc_or_clang_warnings':
25 '-Wno-unused-function',
26 '-Wno-unused-parameter',
27 '-Wno-unknown-pragmas',
33 '-Wno-format-nonliteral',
38 'default_configuration': 'Debug',
45 ['warn_as_error == 1',
51 'WarnAsError': 'true',
61 'msvs_configuration_attributes':
63 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)_$(Platform)',
64 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
65 'CharacterSet': '0', # ASCII
71 'AdditionalOptions': ['/MP'],
72 'BufferSecurityCheck': 'true',
73 'DebugInformationFormat': '3',
74 'ExceptionHandling': '0',
75 'EnableFunctionLevelLinking': 'true',
76 'MinimalRebuild': 'false',
77 'RuntimeTypeInfo': 'true',
82 'FixedBaseAddress': '1',
83 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
84 'MapFileName': '$(OutDir)\\$(TargetName).map',
85 # Most of the executables we'll ever create are tests
86 # and utilities with console output.
87 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
89 'VCResourceCompilerTool':
103 'Optimization': '0', # /Od
104 'BasicRuntimeChecks': '3',
105 'RuntimeLibrary': '1', # /MTd (debug static)
109 'GenerateDebugInformation': 'true',
110 'LinkIncremental': '2',
115 'COPY_PHASE_STRIP': 'NO',
116 'GCC_OPTIMIZATION_LEVEL': '0',
127 'Optimization': '2', # /Os
128 'RuntimeLibrary': '0', # /MT (static)
132 'GenerateDebugInformation': '<(release_symbols)',
133 'LinkIncremental': '1',
141 'msvs_configuration_platform': 'Win32',
146 'TargetMachine': '1',
147 'AdditionalLibraryDirectories':
149 '<(windows_sdk_path)/Lib/win8/um/x86',
154 'AdditionalLibraryDirectories':
156 '<(windows_sdk_path)/Lib/win8/um/x86',
165 'msvs_configuration_platform': 'x64',
170 'TargetMachine': '17', # x86 - 64
171 'AdditionalLibraryDirectories':
173 '<(windows_sdk_path)/Lib/win8/um/x64',
178 'AdditionalLibraryDirectories':
180 '<(windows_sdk_path)/Lib/win8/um/x64',
186 # Concrete configurations
189 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
193 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
197 [ 'OS == "win" and MSVS_VERSION != "2010e"',
201 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
205 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
217 'msvs_cygwin_dirs': ['../third_party/cygwin'],
223 'cflags': [ '-fPIC' ],
226 ['OS != "win" and OS != "mac"',
245 'debug_optimize%': '0',
253 '-O>(debug_optimize)',
270 'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
273 ['OS != "win" and OS != "mac"',
275 'cflags': ['<@(gcc_or_clang_warnings)']