mirror of
https://github.com/xenia-project/xenia.git
synced 2024-11-27 13:30:44 +00:00
c18e94c5be
Now detecting a lot of functions via method hints and generating stub functions. A few holes (in the test xex), but enough to move forward with codegen.
105 lines
2.6 KiB
Python
105 lines
2.6 KiB
Python
# Copyright 2013 Ben Vanik. All Rights Reserved.
|
|
{
|
|
'default_configuration': 'release',
|
|
|
|
'variables': {
|
|
'configurations': {
|
|
'debug': {
|
|
},
|
|
'release': {
|
|
},
|
|
},
|
|
|
|
# LLVM paths.
|
|
'llvm_path': 'build/llvm/release/',
|
|
'llvm_config': '<(llvm_path)bin/llvm-config',
|
|
},
|
|
|
|
|
|
'target_defaults': {
|
|
'include_dirs': [
|
|
'include/',
|
|
],
|
|
|
|
'defines': [
|
|
'__STDC_LIMIT_MACROS=1',
|
|
'__STDC_CONSTANT_MACROS=1',
|
|
'_ISOC99_SOURCE=1',
|
|
],
|
|
'cflags': [
|
|
'-std=c99',
|
|
],
|
|
|
|
'configurations': {
|
|
'debug': {
|
|
'defines': [
|
|
'DEBUG',
|
|
],
|
|
'msvs_configuration_attributes': {
|
|
'OutputDirectory': '<(DEPTH)\\build\\xenia\\debug',
|
|
},
|
|
'msvs_settings': {
|
|
'VCCLCompilerTool': {
|
|
'Optimization': '2',
|
|
'BasicRuntimeChecks': '0', # disable /RTC1 when compiling /O2
|
|
'DebugInformationFormat': '3',
|
|
'ExceptionHandling': '0',
|
|
'RuntimeTypeInfo': 'false',
|
|
'OmitFramePointers': 'false',
|
|
},
|
|
'VCLinkerTool': {
|
|
'LinkIncremental': '2',
|
|
'GenerateDebugInformation': 'true',
|
|
'StackReserveSize': '2097152',
|
|
},
|
|
},
|
|
'xcode_settings': {
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
|
},
|
|
},
|
|
'release': {
|
|
'defines': [
|
|
'RELEASE',
|
|
],
|
|
'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',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
'msvs_configuration_platform': 'x64',
|
|
'msvs_cygwin_shell': '0',
|
|
'scons_settings': {
|
|
'sconsbuild_dir': '<(DEPTH)/build/xenia/',
|
|
},
|
|
'xcode_settings': {
|
|
'SYMROOT': '<(DEPTH)/build/xenia/',
|
|
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
|
'ARCHS': ['x86_64'],
|
|
'GCC_C_LANGUAGE_STANDARD': 'c99',
|
|
'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
|
|
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
|
|
'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
|
|
},
|
|
},
|
|
}
|