2013-09-27 23:05:37 +00:00
|
|
|
{
|
|
|
|
'includes': {
|
|
|
|
'config.gypi',
|
|
|
|
},
|
|
|
|
'variables': {
|
2013-11-22 23:46:17 +00:00
|
|
|
'AVATAR_JS_HOME%': '<(AVATAR_JS_HOME%)',
|
2013-11-25 22:01:50 +00:00
|
|
|
'SRC%': './out/<(target)/obj.target/avatar-js',
|
2013-09-27 23:05:37 +00:00
|
|
|
},
|
|
|
|
'target_defaults': {
|
|
|
|
'default_configuration': '<(target)',
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'defines': [ 'DEBUG', '_DEBUG' ],
|
|
|
|
'cflags': [ '-g', '-O0' ],
|
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
|
|
|
'msvs_settings': {
|
2013-11-22 23:46:17 +00:00
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'ObjectFile': 'out\<(target)\obj.target\\avatar-js\\',
|
|
|
|
},
|
2013-09-27 23:05:37 +00:00
|
|
|
'VCLinkerTool': {
|
|
|
|
'GenerateDebugInformation': 'true',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
[ 'OS=="linux"', {
|
|
|
|
}],
|
|
|
|
[ 'OS=="mac"', {
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'defines': [ 'NDEBUG' ],
|
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
2013-12-10 23:27:35 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'ObjectFile': 'out\<(target)\obj.target\libuv-java\\',
|
|
|
|
},
|
|
|
|
},
|
2013-09-27 23:05:37 +00:00
|
|
|
}],
|
|
|
|
[ 'OS=="linux"', {
|
|
|
|
}],
|
|
|
|
[ 'OS=="mac"', {
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'avatar-js',
|
|
|
|
'type': 'shared_library',
|
|
|
|
'defines': [
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(JAVA_HOME)/include',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS == "linux"', {
|
|
|
|
'sources': [
|
|
|
|
'os.cpp',
|
|
|
|
'process.cpp',
|
|
|
|
'throw.cpp',
|
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'__POSIX__',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-fPIC',
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(JAVA_HOME)/include/linux',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS == "mac"', {
|
|
|
|
'target_conditions': [
|
|
|
|
['target_arch=="x64"', {
|
|
|
|
'xcode_settings': {'ARCHS': ['x86_64']},
|
|
|
|
}]
|
|
|
|
],
|
|
|
|
'sources': [
|
2013-11-22 23:46:17 +00:00
|
|
|
'<(SRC)/os.cpp',
|
|
|
|
'<(SRC)/process.cpp',
|
|
|
|
'<(SRC)/throw.cpp',
|
2013-09-27 23:05:37 +00:00
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'__POSIX__',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(JAVA_HOME)/include/darwin',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS == "win"', {
|
|
|
|
'target_conditions': [
|
|
|
|
['target_arch=="x64"', {
|
|
|
|
'msvs_configuration_platform': 'x64'
|
|
|
|
}]
|
|
|
|
],
|
|
|
|
'sources': [
|
2013-11-22 23:46:17 +00:00
|
|
|
'<(SRC)/os.cpp',
|
|
|
|
'<(SRC)/process.cpp',
|
|
|
|
'<(SRC)/throw.cpp',
|
2013-09-27 23:05:37 +00:00
|
|
|
],
|
|
|
|
'defines': [
|
2013-10-14 22:35:26 +00:00
|
|
|
'_UNICODE',
|
|
|
|
'UNICODE',
|
|
|
|
'_WIN32_WINNT=0x0600',
|
2013-09-27 23:05:37 +00:00
|
|
|
'_WIN32',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(JAVA_HOME)/include/win32',
|
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
],
|
|
|
|
}]
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
}
|