Prepping poly.
This commit is contained in:
@@ -19,10 +19,6 @@
|
|||||||
#include <alloy/tracing/tracing.h>
|
#include <alloy/tracing/tracing.h>
|
||||||
|
|
||||||
|
|
||||||
// TODO(benvanik): based on platform/config/etc.
|
|
||||||
#include <alloy/backend/ivm/ivm_backend.h>
|
|
||||||
|
|
||||||
|
|
||||||
namespace alloy {
|
namespace alloy {
|
||||||
|
|
||||||
} // namespace alloy
|
} // namespace alloy
|
||||||
|
|||||||
19
src/poly/poly-private.h
Normal file
19
src/poly/poly-private.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* Xenia : Xbox 360 Emulator Research Project *
|
||||||
|
******************************************************************************
|
||||||
|
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||||
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef POLY_POLY_PRIVATE_H_
|
||||||
|
#define POLY_POLY_PRIVATE_H_
|
||||||
|
|
||||||
|
#include <gflags/gflags.h>
|
||||||
|
|
||||||
|
namespace poly {
|
||||||
|
|
||||||
|
} // namespace poly
|
||||||
|
|
||||||
|
#endif // POLY_POLY_PRIVATE_H_
|
||||||
15
src/poly/poly.cc
Normal file
15
src/poly/poly.cc
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* Xenia : Xbox 360 Emulator Research Project *
|
||||||
|
******************************************************************************
|
||||||
|
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||||
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <poly/poly.h>
|
||||||
|
#include <poly/poly-private.h>
|
||||||
|
|
||||||
|
namespace poly {
|
||||||
|
|
||||||
|
} // namespace poly
|
||||||
17
src/poly/poly.h
Normal file
17
src/poly/poly.h
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* Xenia : Xbox 360 Emulator Research Project *
|
||||||
|
******************************************************************************
|
||||||
|
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||||
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef POLY_POLY_H_
|
||||||
|
#define POLY_POLY_H_
|
||||||
|
|
||||||
|
namespace poly {
|
||||||
|
|
||||||
|
} // namespace poly
|
||||||
|
|
||||||
|
#endif // POLY_POLY_H_
|
||||||
30
src/poly/sources.gypi
Normal file
30
src/poly/sources.gypi
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Copyright 2014 Ben Vanik. All Rights Reserved.
|
||||||
|
{
|
||||||
|
'sources': [
|
||||||
|
'poly-private.h',
|
||||||
|
'poly.cc',
|
||||||
|
'poly.h',
|
||||||
|
],
|
||||||
|
|
||||||
|
'conditions': [
|
||||||
|
['OS == "mac" or OS == "linux"', {
|
||||||
|
'sources': [
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
['OS == "linux"', {
|
||||||
|
'sources': [
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
['OS == "mac"', {
|
||||||
|
'sources': [
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
['OS == "win"', {
|
||||||
|
'sources': [
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
],
|
||||||
|
|
||||||
|
'includes': [
|
||||||
|
],
|
||||||
|
}
|
||||||
84
xenia.gyp
84
xenia.gyp
@@ -192,6 +192,86 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
'targets': [
|
'targets': [
|
||||||
|
{
|
||||||
|
'target_name': 'poly',
|
||||||
|
'product_name': 'poly',
|
||||||
|
'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',
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
['OS == "mac"', {
|
||||||
|
'xcode_settings': {
|
||||||
|
'OTHER_LDFLAGS': [
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}],
|
||||||
|
['OS == "linux"', {
|
||||||
|
'libraries': [
|
||||||
|
'-lpthread',
|
||||||
|
'-ldl',
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
|
'cflags': [
|
||||||
|
],
|
||||||
|
|
||||||
|
'include_dirs': [
|
||||||
|
'.',
|
||||||
|
'src/',
|
||||||
|
'<(INTERMEDIATE_DIR)',
|
||||||
|
],
|
||||||
|
|
||||||
|
'includes': [
|
||||||
|
'src/poly/sources.gypi',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'target_name': 'alloy',
|
'target_name': 'alloy',
|
||||||
'product_name': 'alloy',
|
'product_name': 'alloy',
|
||||||
@@ -201,6 +281,7 @@
|
|||||||
'beaengine',
|
'beaengine',
|
||||||
'gflags',
|
'gflags',
|
||||||
'llvm',
|
'llvm',
|
||||||
|
'poly',
|
||||||
],
|
],
|
||||||
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
@@ -222,6 +303,7 @@
|
|||||||
'beaengine',
|
'beaengine',
|
||||||
'gflags',
|
'gflags',
|
||||||
'llvm',
|
'llvm',
|
||||||
|
'poly',
|
||||||
],
|
],
|
||||||
|
|
||||||
'direct_dependent_settings': {
|
'direct_dependent_settings': {
|
||||||
@@ -284,10 +366,12 @@
|
|||||||
'dependencies': [
|
'dependencies': [
|
||||||
'gflags',
|
'gflags',
|
||||||
'alloy',
|
'alloy',
|
||||||
|
'poly',
|
||||||
],
|
],
|
||||||
'export_dependent_settings': [
|
'export_dependent_settings': [
|
||||||
'gflags',
|
'gflags',
|
||||||
'alloy',
|
'alloy',
|
||||||
|
'poly',
|
||||||
],
|
],
|
||||||
|
|
||||||
'direct_dependent_settings': {
|
'direct_dependent_settings': {
|
||||||
|
|||||||
Reference in New Issue
Block a user