2013-01-11 09:23:08 +00:00
|
|
|
# Copyright 2013 Ben Vanik. All Rights Reserved.
|
|
|
|
{
|
|
|
|
'includes': [
|
2014-09-10 03:25:38 +00:00
|
|
|
'src/alloy/frontend/ppc/test/test.gypi',
|
|
|
|
'src/alloy/test/test.gypi',
|
2013-01-11 09:23:08 +00:00
|
|
|
'tools/tools.gypi',
|
2013-05-24 00:39:03 +00:00
|
|
|
'third_party/beaengine.gypi',
|
2013-01-24 05:31:23 +00:00
|
|
|
'third_party/gflags.gypi',
|
2014-12-20 21:55:05 +00:00
|
|
|
'third_party/glew.gypi',
|
2014-02-02 08:33:57 +00:00
|
|
|
'third_party/llvm.gypi',
|
2013-01-28 01:49:32 +00:00
|
|
|
'third_party/sparsehash.gypi',
|
2014-12-23 18:22:14 +00:00
|
|
|
'third_party/xxhash.gypi',
|
2013-01-11 09:23:08 +00:00
|
|
|
],
|
|
|
|
|
2013-11-16 09:41:51 +00:00
|
|
|
'default_configuration': 'release',
|
|
|
|
|
|
|
|
'variables': {
|
|
|
|
'configurations': {
|
2013-11-16 09:58:42 +00:00
|
|
|
'Debug': {
|
2013-11-16 09:41:51 +00:00
|
|
|
},
|
2013-11-16 09:58:42 +00:00
|
|
|
'Release': {
|
2013-11-16 09:41:51 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'library%': 'static_library',
|
|
|
|
'target_arch%': 'x64',
|
|
|
|
},
|
|
|
|
|
2014-05-27 03:28:21 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'variables': {
|
|
|
|
'move_command%': 'move'
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
'variables': {
|
|
|
|
'move_command%': 'mv'
|
|
|
|
},
|
|
|
|
}]
|
|
|
|
],
|
|
|
|
|
2013-11-16 09:41:51 +00:00
|
|
|
'target_defaults': {
|
|
|
|
'include_dirs': [
|
|
|
|
'include/',
|
2014-05-28 05:54:40 +00:00
|
|
|
'third_party/',
|
|
|
|
'.',
|
2013-11-16 09:41:51 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'defines': [
|
|
|
|
'__STDC_LIMIT_MACROS=1',
|
|
|
|
'__STDC_CONSTANT_MACROS=1',
|
|
|
|
'_ISOC99_SOURCE=1',
|
2014-08-22 03:49:47 +00:00
|
|
|
'_CRT_NONSTDC_NO_DEPRECATE=1',
|
2013-11-16 09:41:51 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
|
|
|
'defines': [
|
|
|
|
'_WIN64=1',
|
|
|
|
'_AMD64_=1',
|
|
|
|
|
|
|
|
# HACK: it'd be nice to use the proper functions, when available.
|
|
|
|
'_CRT_SECURE_NO_WARNINGS=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
|
|
|
'cflags': [
|
2014-08-01 04:56:51 +00:00
|
|
|
'-std=c++11',
|
2013-11-16 09:41:51 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'configurations': {
|
|
|
|
'common_base': {
|
|
|
|
'abstract': 1,
|
|
|
|
|
|
|
|
'msvs_configuration_platform': 'x64',
|
|
|
|
'msvs_configuration_attributes': {
|
|
|
|
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
|
|
|
|
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
|
|
|
|
'CharacterSet': '1',
|
|
|
|
},
|
2014-12-20 03:29:12 +00:00
|
|
|
'msvs_disabled_warnings': [
|
|
|
|
4458, # warning C4458: declaration of 'x' hides class member
|
|
|
|
],
|
2013-11-16 09:41:51 +00:00
|
|
|
'msvs_configuration_platform': 'x64',
|
|
|
|
'msvs_cygwin_shell': '0',
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
#'MinimalRebuild': 'true',
|
|
|
|
'BufferSecurityCheck': 'true',
|
|
|
|
'EnableFunctionLevelLinking': 'true',
|
|
|
|
'RuntimeTypeInfo': 'false',
|
|
|
|
'WarningLevel': '3',
|
|
|
|
#'WarnAsError': 'true',
|
|
|
|
'DebugInformationFormat': '3',
|
|
|
|
'ExceptionHandling': '1', # /EHsc
|
|
|
|
'AdditionalOptions': [
|
|
|
|
#'/TP', # Compile as C++
|
|
|
|
'/EHsc', # C++ exception handling,
|
2014-08-24 19:27:13 +00:00
|
|
|
'/MP',
|
2013-11-16 09:41:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'GenerateDebugInformation': 'true',
|
|
|
|
#'LinkIncremental': '1', # 1 = NO, 2 = YES
|
|
|
|
'TargetMachine': '17', # x86 - 64
|
|
|
|
'AdditionalLibraryDirectories': [
|
|
|
|
],
|
2014-08-16 23:34:04 +00:00
|
|
|
'EntryPointSymbol': 'wWinMainCRTStartup',
|
2013-11-16 09:41:51 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'scons_settings': {
|
|
|
|
'sconsbuild_dir': '<(DEPTH)/build/xenia/',
|
|
|
|
},
|
|
|
|
|
|
|
|
'xcode_settings': {
|
|
|
|
'SYMROOT': '<(DEPTH)/build/xenia/',
|
|
|
|
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
|
|
|
'ARCHS': ['x86_64'],
|
2014-08-19 05:01:55 +00:00
|
|
|
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1y',
|
2013-11-16 09:41:51 +00:00
|
|
|
'COMBINE_HIDPI_IMAGES': 'YES',
|
|
|
|
'GCC_C_LANGUAGE_STANDARD': 'gnu99',
|
|
|
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
|
|
|
#'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
|
|
|
|
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
|
|
|
'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
|
|
|
|
'LIBRARY_SEARCH_PATHS': [
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
'defines': [
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2013-11-16 09:58:42 +00:00
|
|
|
'Debug': {
|
2013-11-16 09:41:51 +00:00
|
|
|
'inherit_from': ['common_base',],
|
|
|
|
'defines': [
|
|
|
|
'DEBUG',
|
|
|
|
'ASMJIT_DEBUG=',
|
|
|
|
],
|
|
|
|
'msvs_configuration_attributes': {
|
2013-11-16 09:58:42 +00:00
|
|
|
'OutputDirectory': '<(DEPTH)\\build\\xenia\\Debug',
|
2013-11-16 09:41:51 +00:00
|
|
|
},
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'Optimization': '0',
|
|
|
|
'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',
|
|
|
|
},
|
|
|
|
},
|
2013-11-16 09:58:42 +00:00
|
|
|
'Debug_x64': {
|
|
|
|
'inherit_from': ['Debug',],
|
2013-11-16 09:41:51 +00:00
|
|
|
},
|
|
|
|
|
2013-11-16 09:58:42 +00:00
|
|
|
'Release': {
|
2013-11-16 09:41:51 +00:00
|
|
|
'inherit_from': ['common_base',],
|
|
|
|
'defines': [
|
|
|
|
'RELEASE',
|
|
|
|
'NDEBUG',
|
|
|
|
],
|
|
|
|
'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-11-16 09:58:42 +00:00
|
|
|
'Release_x64': {
|
|
|
|
'inherit_from': ['Release',],
|
2013-11-16 09:41:51 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-01-11 09:23:08 +00:00
|
|
|
'targets': [
|
2014-07-10 05:05:41 +00:00
|
|
|
{
|
2014-12-20 00:50:27 +00:00
|
|
|
'target_name': 'libpoly',
|
|
|
|
'product_name': 'libpoly',
|
2014-07-10 05:05:41 +00:00
|
|
|
'type': 'static_library',
|
|
|
|
|
|
|
|
'dependencies': [
|
|
|
|
'gflags',
|
|
|
|
],
|
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
['OS == "mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_CFLAGS': [
|
|
|
|
'-fno-operator-names',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['OS == "linux"', {
|
|
|
|
'cflags': [
|
|
|
|
'-fno-operator-names',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'gflags',
|
|
|
|
],
|
|
|
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'src/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'target_conditions': [
|
|
|
|
['_type=="shared_library"', {
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['_type=="executable"', {
|
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
|
|
|
'libraries': [
|
|
|
|
'kernel32',
|
|
|
|
'user32',
|
|
|
|
'ole32',
|
|
|
|
'ntdll',
|
|
|
|
'advapi32',
|
2014-08-22 04:23:35 +00:00
|
|
|
'Shell32',
|
2014-07-10 05:05:41 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS == "mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['OS == "linux"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lpthread',
|
|
|
|
'-ldl',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'src/',
|
|
|
|
'<(INTERMEDIATE_DIR)',
|
|
|
|
],
|
|
|
|
|
|
|
|
'includes': [
|
|
|
|
'src/poly/sources.gypi',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2013-12-07 06:57:16 +00:00
|
|
|
{
|
2014-12-20 00:50:27 +00:00
|
|
|
'target_name': 'liballoy',
|
|
|
|
'product_name': 'liballoy',
|
2013-12-07 06:57:16 +00:00
|
|
|
'type': 'static_library',
|
|
|
|
|
|
|
|
'dependencies': [
|
2014-01-02 08:00:14 +00:00
|
|
|
'beaengine',
|
2013-12-07 06:57:16 +00:00
|
|
|
'gflags',
|
2014-02-02 08:33:57 +00:00
|
|
|
'llvm',
|
2014-12-20 00:50:27 +00:00
|
|
|
'libpoly',
|
2013-12-07 06:57:16 +00:00
|
|
|
],
|
2014-05-14 05:20:42 +00:00
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
['OS == "mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_CFLAGS': [
|
|
|
|
'-fno-operator-names',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['OS == "linux"', {
|
|
|
|
'cflags': [
|
|
|
|
'-fno-operator-names',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
2013-12-07 06:57:16 +00:00
|
|
|
'export_dependent_settings': [
|
2014-01-02 08:00:14 +00:00
|
|
|
'beaengine',
|
2013-12-07 06:57:16 +00:00
|
|
|
'gflags',
|
2014-02-02 08:33:57 +00:00
|
|
|
'llvm',
|
2014-12-20 00:50:27 +00:00
|
|
|
'libpoly',
|
2013-12-07 06:57:16 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'src/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'target_conditions': [
|
|
|
|
['_type=="shared_library"', {
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['_type=="executable"', {
|
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
|
|
|
'libraries': [
|
|
|
|
'kernel32',
|
|
|
|
'user32',
|
|
|
|
'ole32',
|
2014-01-03 07:11:16 +00:00
|
|
|
'ntdll',
|
2014-05-28 05:54:40 +00:00
|
|
|
'advapi32',
|
2013-12-07 06:57:16 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS == "mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['OS == "linux"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lpthread',
|
|
|
|
'-ldl',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'src/',
|
2014-05-27 03:28:21 +00:00
|
|
|
'<(INTERMEDIATE_DIR)',
|
2013-12-07 06:57:16 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'includes': [
|
|
|
|
'src/alloy/sources.gypi',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2013-01-11 09:23:08 +00:00
|
|
|
{
|
2014-12-20 00:50:27 +00:00
|
|
|
'target_name': 'libxenia',
|
|
|
|
'product_name': 'libxenia',
|
2013-11-16 09:58:42 +00:00
|
|
|
'type': 'static_library',
|
2013-01-11 09:23:08 +00:00
|
|
|
|
2013-01-24 05:31:23 +00:00
|
|
|
'dependencies': [
|
|
|
|
'gflags',
|
2014-12-20 21:55:05 +00:00
|
|
|
'glew',
|
2014-12-20 00:50:27 +00:00
|
|
|
'liballoy',
|
|
|
|
'libpoly',
|
2014-12-23 18:22:14 +00:00
|
|
|
'xxhash',
|
2013-01-24 05:31:23 +00:00
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'gflags',
|
2014-12-20 21:55:05 +00:00
|
|
|
'glew',
|
2014-12-20 00:50:27 +00:00
|
|
|
'liballoy',
|
|
|
|
'libpoly',
|
2014-12-23 18:22:14 +00:00
|
|
|
'xxhash',
|
2013-01-24 05:31:23 +00:00
|
|
|
],
|
|
|
|
|
2013-01-11 09:23:08 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
2013-02-06 10:19:50 +00:00
|
|
|
'src/',
|
2013-01-28 06:14:24 +00:00
|
|
|
],
|
|
|
|
|
2013-01-13 07:25:41 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_type=="shared_library"', {
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['_type=="executable"', {
|
2013-01-30 19:03:19 +00:00
|
|
|
'conditions': [
|
2013-02-07 03:57:45 +00:00
|
|
|
['OS == "win"', {
|
2013-01-30 19:03:19 +00:00
|
|
|
'libraries': [
|
2013-10-18 06:35:54 +00:00
|
|
|
'kernel32',
|
|
|
|
'user32',
|
|
|
|
'ole32',
|
2013-02-07 03:57:45 +00:00
|
|
|
'wsock32',
|
2013-12-17 06:43:03 +00:00
|
|
|
'Ws2_32',
|
2013-10-24 05:42:48 +00:00
|
|
|
'xinput',
|
2014-01-13 07:23:55 +00:00
|
|
|
'xaudio2',
|
2014-01-16 05:58:09 +00:00
|
|
|
'Shell32',
|
2014-05-28 05:54:40 +00:00
|
|
|
'advapi32',
|
2014-12-20 21:55:05 +00:00
|
|
|
'glu32',
|
|
|
|
'opengl32',
|
2014-12-21 09:21:32 +00:00
|
|
|
'gdi32',
|
2013-01-30 19:03:19 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS == "mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2013-02-10 20:21:56 +00:00
|
|
|
['OS == "linux"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lpthread',
|
|
|
|
'-ldl',
|
2014-12-20 21:55:05 +00:00
|
|
|
'-lGLU',
|
|
|
|
'-lGL',
|
2013-02-10 20:21:56 +00:00
|
|
|
],
|
|
|
|
}],
|
2013-01-13 07:25:41 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2013-01-11 09:23:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
|
2013-01-13 07:25:41 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
'src/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'includes': [
|
2013-02-06 10:19:50 +00:00
|
|
|
'src/xenia/sources.gypi',
|
2013-01-11 09:23:08 +00:00
|
|
|
],
|
|
|
|
},
|
2014-08-09 17:32:16 +00:00
|
|
|
|
|
|
|
{
|
2014-12-20 00:50:27 +00:00
|
|
|
'target_name': 'xenia',
|
|
|
|
'type': 'executable',
|
2014-08-09 17:32:16 +00:00
|
|
|
|
2014-12-20 00:50:27 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': '2'
|
|
|
|
},
|
2014-08-09 17:32:16 +00:00
|
|
|
},
|
|
|
|
|
2014-12-20 00:50:27 +00:00
|
|
|
'dependencies': [
|
|
|
|
'libxenia',
|
2014-08-09 17:32:16 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
|
2014-12-20 00:50:27 +00:00
|
|
|
'sources': [
|
|
|
|
'src/xenia/xenia_main.cc',
|
2014-08-09 17:32:16 +00:00
|
|
|
],
|
|
|
|
},
|
2015-02-20 15:47:06 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
'target_name': 'gpu-trace-viewer',
|
|
|
|
'type': 'executable',
|
|
|
|
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': '2'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'dependencies': [
|
|
|
|
'libxenia',
|
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
|
|
|
|
'sources': [
|
|
|
|
'src/xenia/gpu/trace_viewer_main.cc',
|
|
|
|
],
|
|
|
|
},
|
2013-01-11 09:23:08 +00:00
|
|
|
],
|
|
|
|
}
|