gfx/angle/build/common.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 {
michael@0 6 'variables': {
michael@0 7 'component%': 'static_library',
michael@0 8 # angle_code is set to 1 for the core ANGLE targets defined in src/build_angle.gyp.
michael@0 9 # angle_code is set to 0 for test code, sample code, and third party code.
michael@0 10 # When angle_code is 1, we build with additional warning flags on Mac and Linux.
michael@0 11 'angle_code%': 0,
michael@0 12 'gcc_or_clang_warnings': [
michael@0 13 '-Wall',
michael@0 14 '-Wchar-subscripts',
michael@0 15 '-Werror',
michael@0 16 '-Wextra',
michael@0 17 '-Wformat=2',
michael@0 18 '-Winit-self',
michael@0 19 '-Wno-sign-compare',
michael@0 20 '-Wno-unused-function',
michael@0 21 '-Wno-unused-parameter',
michael@0 22 '-Wno-unknown-pragmas',
michael@0 23 '-Wpacked',
michael@0 24 '-Wpointer-arith',
michael@0 25 '-Wundef',
michael@0 26 '-Wwrite-strings',
michael@0 27 ],
michael@0 28 },
michael@0 29 'target_defaults': {
michael@0 30 'default_configuration': 'Debug',
michael@0 31 'variables': {
michael@0 32 'warn_as_error%': 1,
michael@0 33 },
michael@0 34 'target_conditions': [
michael@0 35 ['warn_as_error == 1', {
michael@0 36 'msvs_settings': {
michael@0 37 'VCCLCompilerTool': {
michael@0 38 'WarnAsError': 'true',
michael@0 39 },
michael@0 40 },
michael@0 41 }],
michael@0 42 ],
michael@0 43 'configurations': {
michael@0 44 'Common': {
michael@0 45 'abstract': 1,
michael@0 46 'msvs_configuration_attributes': {
michael@0 47 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
michael@0 48 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
michael@0 49 'CharacterSet': '1', # UNICODE
michael@0 50 },
michael@0 51 'msvs_configuration_platform': 'Win32',
michael@0 52 'msvs_settings': {
michael@0 53 'VCCLCompilerTool': {
michael@0 54 'BufferSecurityCheck': 'true',
michael@0 55 'DebugInformationFormat': '3',
michael@0 56 # TODO(alokp): Disable exceptions before integrating with chromium.
michael@0 57 #'ExceptionHandling': '0',
michael@0 58 'EnableFunctionLevelLinking': 'true',
michael@0 59 'MinimalRebuild': 'false',
michael@0 60 'PreprocessorDefinitions': [
michael@0 61 '_CRT_SECURE_NO_DEPRECATE',
michael@0 62 '_HAS_EXCEPTIONS=0',
michael@0 63 '_WIN32_WINNT=0x0600',
michael@0 64 '_WINDOWS',
michael@0 65 'NOMINMAX',
michael@0 66 'WIN32',
michael@0 67 'WIN32_LEAN_AND_MEAN',
michael@0 68 'WINVER=0x0600',
michael@0 69 ],
michael@0 70 'RuntimeTypeInfo': 'false',
michael@0 71 'WarningLevel': '4',
michael@0 72 'DisableSpecificWarnings': [4100, 4127, 4189, 4239, 4244, 4245, 4512, 4702],
michael@0 73 },
michael@0 74 'VCLinkerTool': {
michael@0 75 'FixedBaseAddress': '1',
michael@0 76 'GenerateDebugInformation': 'true',
michael@0 77 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
michael@0 78 'MapFileName': '$(OutDir)\\$(TargetName).map',
michael@0 79 # Most of the executables we'll ever create are tests
michael@0 80 # and utilities with console output.
michael@0 81 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
michael@0 82 'AdditionalLibraryDirectories': [
michael@0 83 '$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x86',
michael@0 84 ],
michael@0 85 },
michael@0 86 'VCLibrarianTool': {
michael@0 87 'AdditionalLibraryDirectories': [
michael@0 88 '$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x86',
michael@0 89 ],
michael@0 90 },
michael@0 91 'VCResourceCompilerTool': {
michael@0 92 'Culture': '1033',
michael@0 93 },
michael@0 94 },
michael@0 95 'msvs_system_include_dirs': [
michael@0 96 '$(ProgramFiles)/Windows Kits/8.0/Include/shared',
michael@0 97 '$(ProgramFiles)/Windows Kits/8.0/Include/um',
michael@0 98 ],
michael@0 99 }, # Common
michael@0 100 'Debug': {
michael@0 101 'inherit_from': ['Common'],
michael@0 102 'msvs_settings': {
michael@0 103 'VCCLCompilerTool': {
michael@0 104 'Optimization': '0', # /Od
michael@0 105 'PreprocessorDefinitions': ['_DEBUG'],
michael@0 106 'BasicRuntimeChecks': '3',
michael@0 107 'RuntimeLibrary': '1', # /MTd (debug static)
michael@0 108 },
michael@0 109 'VCLinkerTool': {
michael@0 110 'LinkIncremental': '2',
michael@0 111 },
michael@0 112 },
michael@0 113 'xcode_settings': {
michael@0 114 'COPY_PHASE_STRIP': 'NO',
michael@0 115 'GCC_OPTIMIZATION_LEVEL': '0',
michael@0 116 },
michael@0 117 }, # Debug
michael@0 118 'Release': {
michael@0 119 'inherit_from': ['Common'],
michael@0 120 'msvs_settings': {
michael@0 121 'VCCLCompilerTool': {
michael@0 122 'Optimization': '2', # /Os
michael@0 123 'PreprocessorDefinitions': ['NDEBUG'],
michael@0 124 'RuntimeLibrary': '0', # /MT (static)
michael@0 125 },
michael@0 126 'VCLinkerTool': {
michael@0 127 'LinkIncremental': '1',
michael@0 128 },
michael@0 129 },
michael@0 130 }, # Release
michael@0 131 }, # configurations
michael@0 132 'conditions': [
michael@0 133 ['component=="shared_library"', {
michael@0 134 'defines': ['COMPONENT_BUILD'],
michael@0 135 }],
michael@0 136 ],
michael@0 137 }, # target_defaults
michael@0 138 'conditions': [
michael@0 139 ['OS=="win"', {
michael@0 140 'target_defaults': {
michael@0 141 'msvs_cygwin_dirs': ['../third_party/cygwin'],
michael@0 142 },
michael@0 143 }],
michael@0 144 ['OS!="win" and OS!="mac"', {
michael@0 145 'target_defaults': {
michael@0 146 'cflags': [
michael@0 147 '-pthread',
michael@0 148 '-fno-exceptions',
michael@0 149 ],
michael@0 150 'ldflags': [
michael@0 151 '-pthread',
michael@0 152 ],
michael@0 153 'configurations': {
michael@0 154 'Debug': {
michael@0 155 'variables': {
michael@0 156 'debug_optimize%': '0',
michael@0 157 },
michael@0 158 'defines': [
michael@0 159 '_DEBUG',
michael@0 160 ],
michael@0 161 'cflags': [
michael@0 162 '-O>(debug_optimize)',
michael@0 163 '-g',
michael@0 164 ],
michael@0 165 }
michael@0 166 },
michael@0 167 },
michael@0 168 }],
michael@0 169 ['angle_code==1', {
michael@0 170 'target_defaults': {
michael@0 171 'conditions': [
michael@0 172 ['OS=="mac"', {
michael@0 173 'xcode_settings': {
michael@0 174 'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
michael@0 175 },
michael@0 176 }],
michael@0 177 ['OS!="win" and OS!="mac"', {
michael@0 178 'cflags': ['<@(gcc_or_clang_warnings)']
michael@0 179 }],
michael@0 180 ]
michael@0 181 }
michael@0 182 }],
michael@0 183 ],
michael@0 184 }
michael@0 185
michael@0 186 # Local Variables:
michael@0 187 # tab-width:2
michael@0 188 # indent-tabs-mode:nil
michael@0 189 # End:
michael@0 190 # vim: set expandtab tabstop=2 shiftwidth=2:

mercurial