Commit 3cd50f7e by Geoff Lang

Fix remaining discrepencies between master and es3proto project files.

Change-Id: I335c9346ac268beab25184e2b18ccfdd0b15c7b1 Reviewed-on: https://chromium-review.googlesource.com/182150Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 91382e55
...@@ -3,31 +3,23 @@ ...@@ -3,31 +3,23 @@
# found in the LICENSE file. # found in the LICENSE file.
{ {
'targets': [ 'targets':
[
{ {
'target_name': 'All', 'target_name': 'All',
'type': 'none', 'type': 'none',
'dependencies': [ 'dependencies': [ '../src/angle.gyp:*', ],
'../src/angle.gyp:*', 'conditions':
], [
'conditions': [ ['angle_build_samples==1',
['angle_build_samples==1', { {
'dependencies': [ 'dependencies': [ '../samples/samples.gyp:*', ],
'../samples/samples.gyp:*',
],
}], }],
['angle_build_tests==1', { ['angle_build_tests==1',
'dependencies': [ {
'../tests/tests.gyp:*', 'dependencies': [ '../tests/tests.gyp:*', ],
],
}], }],
], ],
}, },
], ],
} }
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
# found in the LICENSE file. # found in the LICENSE file.
{ {
'variables': { 'variables':
{
'component%': 'static_library', 'component%': 'static_library',
'angle_build_tests%': '1', 'angle_build_tests%': '1',
'angle_build_samples%': '1', 'angle_build_samples%': '1',
...@@ -12,7 +13,8 @@ ...@@ -12,7 +13,8 @@
# When angle_code is 1, we build with additional warning flags on Mac and Linux. # When angle_code is 1, we build with additional warning flags on Mac and Linux.
'angle_code%': 0, 'angle_code%': 0,
'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
'gcc_or_clang_warnings': [ 'gcc_or_clang_warnings':
[
'-Wall', '-Wall',
'-Wchar-subscripts', '-Wchar-subscripts',
'-Werror', '-Werror',
...@@ -29,30 +31,41 @@ ...@@ -29,30 +31,41 @@
'-Wwrite-strings', '-Wwrite-strings',
], ],
}, },
'target_defaults': { 'target_defaults':
{
'default_configuration': 'Debug', 'default_configuration': 'Debug',
'variables': { 'variables':
{
'warn_as_error%': 1, 'warn_as_error%': 1,
}, },
'target_conditions': [ 'target_conditions':
['warn_as_error == 1', { [
'msvs_settings': { ['warn_as_error == 1',
'VCCLCompilerTool': { {
'msvs_settings':
{
'VCCLCompilerTool':
{
'WarnAsError': 'true', 'WarnAsError': 'true',
}, },
}, },
}], }],
], ],
'configurations': { 'configurations':
'Common_Base': { {
'Common_Base':
{
'abstract': 1, 'abstract': 1,
'msvs_configuration_attributes': { 'msvs_configuration_attributes':
{
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)_$(Platform)', 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)_$(Platform)',
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
'CharacterSet': '1', # UNICODE 'CharacterSet': '1', # UNICODE
}, },
'msvs_settings': { 'msvs_settings':
'VCCLCompilerTool': { {
'VCCLCompilerTool':
{
'AdditionalOptions': ['/MP'], 'AdditionalOptions': ['/MP'],
'BufferSecurityCheck': 'true', 'BufferSecurityCheck': 'true',
'DebugInformationFormat': '3', 'DebugInformationFormat': '3',
...@@ -60,7 +73,8 @@ ...@@ -60,7 +73,8 @@
#'ExceptionHandling': '0', #'ExceptionHandling': '0',
'EnableFunctionLevelLinking': 'true', 'EnableFunctionLevelLinking': 'true',
'MinimalRebuild': 'false', 'MinimalRebuild': 'false',
'PreprocessorDefinitions': [ 'PreprocessorDefinitions':
[
'_CRT_SECURE_NO_DEPRECATE', '_CRT_SECURE_NO_DEPRECATE',
'_SCL_SECURE_NO_WARNINGS', '_SCL_SECURE_NO_WARNINGS',
'_HAS_EXCEPTIONS=0', '_HAS_EXCEPTIONS=0',
...@@ -74,7 +88,8 @@ ...@@ -74,7 +88,8 @@
'RuntimeTypeInfo': 'false', 'RuntimeTypeInfo': 'false',
'WarningLevel': '4', 'WarningLevel': '4',
}, },
'VCLinkerTool': { 'VCLinkerTool':
{
'FixedBaseAddress': '1', 'FixedBaseAddress': '1',
'GenerateDebugInformation': 'true', 'GenerateDebugInformation': 'true',
'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib', 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
...@@ -82,7 +97,8 @@ ...@@ -82,7 +97,8 @@
# Most of the executables we'll ever create are tests # Most of the executables we'll ever create are tests
# and utilities with console output. # and utilities with console output.
'SubSystem': '1', # /SUBSYSTEM:CONSOLE 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
'AdditionalDependencies': [ 'AdditionalDependencies':
[
'kernel32.lib', 'kernel32.lib',
'gdi32.lib', 'gdi32.lib',
'winspool.lib', 'winspool.lib',
...@@ -98,80 +114,102 @@ ...@@ -98,80 +114,102 @@
'delayimp.lib', 'delayimp.lib',
], ],
}, },
'VCResourceCompilerTool': { 'VCResourceCompilerTool':
{
'Culture': '1033', 'Culture': '1033',
}, },
}, },
'msvs_disabled_warnings': [4100, 4127, 4189, 4239, 4244, 4245, 4512, 4702, 4530, 4718], 'msvs_disabled_warnings': [ 4100, 4127, 4189, 4239, 4244, 4245, 4512, 4702, 4530, 4718 ],
'msvs_system_include_dirs': [ 'msvs_system_include_dirs':
[
'<(windows_sdk_path)/Include/shared', '<(windows_sdk_path)/Include/shared',
'<(windows_sdk_path)/Include/um', '<(windows_sdk_path)/Include/um',
], ],
}, # Common_Base }, # Common_Base
'Debug_Base': { 'Debug_Base':
{
'abstract': 1, 'abstract': 1,
'msvs_settings': { 'msvs_settings':
'VCCLCompilerTool': { {
'VCCLCompilerTool':
{
'Optimization': '0', # /Od 'Optimization': '0', # /Od
'PreprocessorDefinitions': ['_DEBUG'], 'PreprocessorDefinitions': [ '_DEBUG' ],
'BasicRuntimeChecks': '3', 'BasicRuntimeChecks': '3',
'RuntimeLibrary': '1', # /MTd (debug static) 'RuntimeLibrary': '1', # /MTd (debug static)
}, },
'VCLinkerTool': { 'VCLinkerTool':
{
'LinkIncremental': '2', 'LinkIncremental': '2',
}, },
}, },
'xcode_settings': { 'xcode_settings':
{
'COPY_PHASE_STRIP': 'NO', 'COPY_PHASE_STRIP': 'NO',
'GCC_OPTIMIZATION_LEVEL': '0', 'GCC_OPTIMIZATION_LEVEL': '0',
}, },
}, # Debug_Base }, # Debug_Base
'Release_Base': { 'Release_Base':
{
'abstract': 1, 'abstract': 1,
'msvs_settings': { 'msvs_settings':
'VCCLCompilerTool': { {
'VCCLCompilerTool':
{
'Optimization': '2', # /Os 'Optimization': '2', # /Os
'PreprocessorDefinitions': ['NDEBUG'], 'PreprocessorDefinitions': ['NDEBUG'],
'RuntimeLibrary': '0', # /MT (static) 'RuntimeLibrary': '0', # /MT (static)
}, },
'VCLinkerTool': { 'VCLinkerTool':
{
'LinkIncremental': '1', 'LinkIncremental': '1',
}, },
}, },
}, # Release_Base }, # Release_Base
'x86_Base': { 'x86_Base':
{
'abstract': 1, 'abstract': 1,
'msvs_configuration_platform': 'Win32', 'msvs_configuration_platform': 'Win32',
'msvs_settings': { 'msvs_settings':
'VCLinkerTool': { {
'VCLinkerTool':
{
'TargetMachine': '1', 'TargetMachine': '1',
'AdditionalLibraryDirectories': [ 'AdditionalLibraryDirectories':
[
'<(windows_sdk_path)/Lib/win8/um/x86', '<(windows_sdk_path)/Lib/win8/um/x86',
], ],
}, },
'VCLibrarianTool': { 'VCLibrarianTool':
'AdditionalLibraryDirectories': [ {
'AdditionalLibraryDirectories':
[
'<(windows_sdk_path)/Lib/win8/um/x86', '<(windows_sdk_path)/Lib/win8/um/x86',
], ],
}, },
}, },
}, # x86_Base }, # x86_Base
'x64_Base': { 'x64_Base':
{
'abstract': 1, 'abstract': 1,
'msvs_configuration_platform': 'x64', 'msvs_configuration_platform': 'x64',
'msvs_settings': { 'msvs_settings':
'VCLinkerTool': { {
'VCLinkerTool':
{
'TargetMachine': '17', # x86 - 64 'TargetMachine': '17', # x86 - 64
'AdditionalLibraryDirectories': [ 'AdditionalLibraryDirectories':
[
'<(windows_sdk_path)/Lib/win8/um/x64', '<(windows_sdk_path)/Lib/win8/um/x64',
], ],
}, },
'VCLibrarianTool': { 'VCLibrarianTool': {
'AdditionalLibraryDirectories': [ 'AdditionalLibraryDirectories':
[
'<(windows_sdk_path)/Lib/win8/um/x64', '<(windows_sdk_path)/Lib/win8/um/x64',
], ],
}, },
...@@ -179,53 +217,73 @@ ...@@ -179,53 +217,73 @@
}, # x64_Base }, # x64_Base
# Concrete configurations # Concrete configurations
'Debug': { 'Debug':
{
'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'], 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
}, },
'Release': { 'Release':
{
'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
}, },
'conditions': [ 'conditions':
[ 'OS=="win" and MSVS_VERSION != "2010e" and MSVS_VERSION != "2012e"', { [
'Debug_x64': { [ 'OS == "win" and MSVS_VERSION != "2010e" and MSVS_VERSION != "2012e"',
{
'Debug_x64':
{
'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
}, },
'Release_x64': { 'Release_x64':
{
'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
}, },
}], }],
], ],
}, # configurations }, # configurations
'conditions': [ 'conditions':
['component=="shared_library"', { [
'defines': ['COMPONENT_BUILD'], ['component=="shared_library"',
{
'defines': [ 'COMPONENT_BUILD' ],
}], }],
], ],
}, # target_defaults }, # target_defaults
'conditions': [ 'conditions':
['OS=="win"', { [
'target_defaults': { ['OS == "win"',
{
'target_defaults':
{
'msvs_cygwin_dirs': ['../third_party/cygwin'], 'msvs_cygwin_dirs': ['../third_party/cygwin'],
}, },
}], }],
['OS!="win" and OS!="mac"', { ['OS != "win" and OS != "mac"',
'target_defaults': { {
'cflags': [ 'target_defaults':
{
'cflags':
[
'-pthread', '-pthread',
'-fno-exceptions', '-fno-exceptions',
], ],
'ldflags': [ 'ldflags':
[
'-pthread', '-pthread',
], ],
'configurations': { 'configurations':
'Debug': { {
'variables': { 'Debug':
{
'variables':
{
'debug_optimize%': '0', 'debug_optimize%': '0',
}, },
'defines': [ 'defines':
[
'_DEBUG', '_DEBUG',
], ],
'cflags': [ 'cflags':
[
'-O>(debug_optimize)', '-O>(debug_optimize)',
'-g', '-g',
], ],
...@@ -233,15 +291,21 @@ ...@@ -233,15 +291,21 @@
}, },
}, },
}], }],
['angle_code==1', { ['angle_code==1',
'target_defaults': { {
'conditions': [ 'target_defaults':
['OS=="mac"', { {
'xcode_settings': { 'conditions':
[
['OS == "mac"',
{
'xcode_settings':
{
'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)'] 'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
}, },
}], }],
['OS!="win" and OS!="mac"', { ['OS != "win" and OS != "mac"',
{
'cflags': ['<@(gcc_or_clang_warnings)'] 'cflags': ['<@(gcc_or_clang_warnings)']
}], }],
] ]
...@@ -249,9 +313,3 @@ ...@@ -249,9 +313,3 @@
}], }],
], ],
} }
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
...@@ -14,7 +14,6 @@ script_dir = os.path.dirname(__file__) ...@@ -14,7 +14,6 @@ script_dir = os.path.dirname(__file__)
angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir)) angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir))
sys.path.append(os.path.join(angle_dir, 'third_party', 'gyp', 'pylib')) sys.path.append(os.path.join(angle_dir, 'third_party', 'gyp', 'pylib'))
print os.path.join(angle_dir, 'third_party', 'gyp', 'pylib')
import gyp import gyp
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -35,7 +35,7 @@ if __name__ == '__main__': ...@@ -35,7 +35,7 @@ if __name__ == '__main__':
gyp_cmd += ' -D angle_relative_src_path=..\\..\\src\\' gyp_cmd += ' -D angle_relative_src_path=..\\..\\src\\'
gyp_cmd += ' ' + os.path.join(script_dir, 'all.gyp') gyp_cmd += ' ' + os.path.join(script_dir, 'all.gyp')
print 'Generating projects to' + generation_dir + ' from gyp files...' print 'Generating projects to ' + generation_dir + ' from gyp files...'
print gyp_cmd print gyp_cmd
sys.stdout.flush() sys.stdout.flush()
os.system(gyp_cmd) os.system(gyp_cmd)
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.h"> <ClInclude Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.h">
<Filter>..\..\src\compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClInclude> </ClInclude>
<ClCompile Include="..\..\src\compiler\translator\ValidateLimitations.cpp"> <ClCompile Include="..\..\src\compiler\translator\ValidateLimitations.cpp">
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClInclude> </ClInclude>
<ClCompile Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.cpp"> <ClCompile Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.cpp">
<Filter>..\..\src\compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClCompile> </ClCompile>
<ClInclude Include="..\..\src\compiler\translator\MMap.h"> <ClInclude Include="..\..\src\compiler\translator\MMap.h">
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.h"> <ClInclude Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.h">
<Filter>..\..\src\compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClInclude> </ClInclude>
<ClCompile Include="..\..\src\compiler\translator\ValidateLimitations.cpp"> <ClCompile Include="..\..\src\compiler\translator\ValidateLimitations.cpp">
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClInclude> </ClInclude>
<ClCompile Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.cpp"> <ClCompile Include="..\..\src\compiler\translator\UnfoldShortCircuitAST.cpp">
<Filter>..\..\src\compiler\translator</Filter> <Filter>compiler\translator</Filter>
</ClCompile> </ClCompile>
<ClInclude Include="..\..\src\compiler\translator\MMap.h"> <ClInclude Include="..\..\src\compiler\translator\MMap.h">
<Filter>compiler\translator</Filter> <Filter>compiler\translator</Filter>
......
...@@ -8,9 +8,3 @@ ...@@ -8,9 +8,3 @@
'angle.gypi', 'angle.gypi',
], ],
} }
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
...@@ -88,12 +88,3 @@ ...@@ -88,12 +88,3 @@
] ]
] # conditions ] # conditions
} }
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
# Copyright (c) 2012 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.
...@@ -8,9 +8,3 @@ ...@@ -8,9 +8,3 @@
'angle.gypi', 'angle.gypi',
], ],
} }
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
# Copyright (c) 2012 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':
[
'build_tests.gypi',
],
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment