2013-01-11 09:23:08 +00:00
|
|
|
# Copyright 2013 Ben Vanik. All Rights Reserved.
|
|
|
|
{
|
|
|
|
'default_configuration': 'release',
|
|
|
|
|
|
|
|
'variables': {
|
|
|
|
'configurations': {
|
|
|
|
'debug': {
|
|
|
|
},
|
|
|
|
'release': {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-02-02 10:50:56 +00:00
|
|
|
'library%': 'static_library',
|
|
|
|
'target_arch%': 'x64',
|
2013-01-11 09:23:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
'target_defaults': {
|
|
|
|
'include_dirs': [
|
|
|
|
'include/',
|
|
|
|
],
|
|
|
|
|
2013-01-13 07:25:41 +00:00
|
|
|
'defines': [
|
|
|
|
'__STDC_LIMIT_MACROS=1',
|
|
|
|
'__STDC_CONSTANT_MACROS=1',
|
|
|
|
'_ISOC99_SOURCE=1',
|
|
|
|
],
|
2013-02-07 03:57:45 +00:00
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
|
|
|
'defines': [
|
|
|
|
'_WIN64=1',
|
2013-05-21 23:08:56 +00:00
|
|
|
'_AMD64_=1',
|
2013-05-21 23:19:11 +00:00
|
|
|
|
|
|
|
# HACK: it'd be nice to use the proper functions, when available.
|
|
|
|
'_CRT_SECURE_NO_WARNINGS=1',
|
2013-02-07 03:57:45 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
2013-01-13 07:25:41 +00:00
|
|
|
'cflags': [
|
2013-02-10 20:21:56 +00:00
|
|
|
#'-std=c99',
|
2013-01-13 07:25:41 +00:00
|
|
|
],
|
|
|
|
|
2013-01-11 09:23:08 +00:00
|
|
|
'configurations': {
|
2013-01-30 10:19:38 +00:00
|
|
|
'common_base': {
|
|
|
|
'abstract': 1,
|
|
|
|
|
|
|
|
'msvs_configuration_platform': 'x64',
|
|
|
|
'msvs_configuration_attributes': {
|
|
|
|
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
|
|
|
|
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
|
|
|
|
'CharacterSet': '1',
|
|
|
|
},
|
|
|
|
'msvs_disabled_warnings': [],
|
|
|
|
'msvs_configuration_platform': 'x64',
|
|
|
|
'msvs_cygwin_shell': '0',
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
2013-05-21 23:08:56 +00:00
|
|
|
#'MinimalRebuild': 'true',
|
2013-01-30 10:19:38 +00:00
|
|
|
'BufferSecurityCheck': 'true',
|
|
|
|
'EnableFunctionLevelLinking': 'true',
|
|
|
|
'RuntimeTypeInfo': 'false',
|
|
|
|
'WarningLevel': '3',
|
|
|
|
#'WarnAsError': 'true',
|
|
|
|
'DebugInformationFormat': '3',
|
|
|
|
'ExceptionHandling': '1', # /EHsc
|
2013-02-07 03:57:45 +00:00
|
|
|
'AdditionalOptions': [
|
2013-05-21 23:08:56 +00:00
|
|
|
'/MP', # Multiprocessor build
|
2013-05-21 23:19:11 +00:00
|
|
|
#'/TP', # Compile as C++
|
2013-05-21 23:08:56 +00:00
|
|
|
'/EHsc', # C++ exception handling,
|
2013-02-07 03:57:45 +00:00
|
|
|
],
|
2013-01-30 10:19:38 +00:00
|
|
|
},
|
|
|
|
#'VCLibrarianTool': {
|
|
|
|
# 'AdditionalLibraryDirectories!':
|
|
|
|
# ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
|
|
|
|
# 'AdditionalLibraryDirectories':
|
|
|
|
# ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
|
|
|
|
#},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'GenerateDebugInformation': 'true',
|
|
|
|
#'LinkIncremental': '1', # 1 = NO, 2 = YES
|
|
|
|
'TargetMachine': '17', # x86 - 64
|
|
|
|
'AdditionalLibraryDirectories': [
|
|
|
|
],
|
|
|
|
#'AdditionalLibraryDirectories!':
|
|
|
|
# ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
|
|
|
|
#'AdditionalLibraryDirectories':
|
|
|
|
# ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'scons_settings': {
|
|
|
|
'sconsbuild_dir': '<(DEPTH)/build/xenia/',
|
|
|
|
},
|
|
|
|
|
|
|
|
'xcode_settings': {
|
|
|
|
'SYMROOT': '<(DEPTH)/build/xenia/',
|
|
|
|
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
|
|
|
'ARCHS': ['x86_64'],
|
2013-01-30 19:03:19 +00:00
|
|
|
#'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x',
|
|
|
|
'COMBINE_HIDPI_IMAGES': 'YES',
|
2013-02-02 10:50:56 +00:00
|
|
|
'GCC_C_LANGUAGE_STANDARD': 'gnu99',
|
2013-01-30 19:03:19 +00:00
|
|
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
2013-02-02 10:50:56 +00:00
|
|
|
#'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
|
2013-01-30 10:19:38 +00:00
|
|
|
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
|
2013-01-30 19:03:19 +00:00
|
|
|
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
2013-01-30 10:19:38 +00:00
|
|
|
'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
|
2013-01-30 19:03:19 +00:00
|
|
|
'LIBRARY_SEARCH_PATHS': [
|
|
|
|
],
|
2013-01-30 10:19:38 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
'defines': [
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2013-01-11 09:23:08 +00:00
|
|
|
'debug': {
|
2013-01-30 10:19:38 +00:00
|
|
|
'inherit_from': ['common_base',],
|
2013-01-11 09:23:08 +00:00
|
|
|
'defines': [
|
|
|
|
'DEBUG',
|
2013-05-25 07:28:04 +00:00
|
|
|
'ASMJIT_DEBUG=',
|
2013-01-11 09:23:08 +00:00
|
|
|
],
|
|
|
|
'msvs_configuration_attributes': {
|
|
|
|
'OutputDirectory': '<(DEPTH)\\build\\xenia\\debug',
|
|
|
|
},
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
2013-01-30 10:48:34 +00:00
|
|
|
'Optimization': '0',
|
2013-01-11 09:23:08 +00:00
|
|
|
'BasicRuntimeChecks': '0', # disable /RTC1 when compiling /O2
|
|
|
|
'DebugInformationFormat': '3',
|
|
|
|
'ExceptionHandling': '0',
|
|
|
|
'RuntimeTypeInfo': 'false',
|
|
|
|
'OmitFramePointers': 'false',
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': '2',
|
|
|
|
'GenerateDebugInformation': 'true',
|
|
|
|
'StackReserveSize': '2097152',
|
|
|
|
},
|
|
|
|
},
|
2013-01-18 07:17:49 +00:00
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
|
|
|
},
|
2013-01-11 09:23:08 +00:00
|
|
|
},
|
2013-01-30 10:19:38 +00:00
|
|
|
'debug_x64': {
|
|
|
|
'inherit_from': ['debug',],
|
|
|
|
},
|
|
|
|
|
2013-01-11 09:23:08 +00:00
|
|
|
'release': {
|
2013-01-30 10:19:38 +00:00
|
|
|
'inherit_from': ['common_base',],
|
2013-01-11 09:23:08 +00:00
|
|
|
'defines': [
|
|
|
|
'RELEASE',
|
2013-01-24 05:31:23 +00:00
|
|
|
'NDEBUG',
|
2013-01-11 09:23:08 +00:00
|
|
|
],
|
|
|
|
'msvs_configuration_attributes': {
|
|
|
|
'OutputDirectory': '<(DEPTH)\\build\\xenia\\release',
|
|
|
|
},
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'Optimization': '2',
|
|
|
|
'InlineFunctionExpansion': '2',
|
|
|
|
'EnableIntrinsicFunctions': 'true',
|
|
|
|
'FavorSizeOrSpeed': '0',
|
|
|
|
'ExceptionHandling': '0',
|
|
|
|
'RuntimeTypeInfo': 'false',
|
|
|
|
'OmitFramePointers': 'false',
|
|
|
|
'StringPooling': 'true',
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': '1',
|
|
|
|
'GenerateDebugInformation': 'true',
|
|
|
|
'OptimizeReferences': '2',
|
|
|
|
'EnableCOMDATFolding': '2',
|
|
|
|
'StackReserveSize': '2097152',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2013-01-30 10:19:38 +00:00
|
|
|
'release_x64': {
|
|
|
|
'inherit_from': ['release',],
|
|
|
|
},
|
2013-01-11 09:23:08 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|