Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (72 sloc) 1.48 KB
# -*- python -*-
{
'variables': {
'lib_sources': [
'src/connection.cc',
'src/daemon.cc',
'src/handlers.cc',
'src/headers.cc',
'src/logging.cc',
'src/request.cc',
'src/response.cc',
'src/server.cc',
'src/time.cc',
],
},
'target_defaults': {
'cflags': ['-pedantic', '-Wall', '-Werror', '-std=c++0x'],
'libraries': [
'-lboost_filesystem',
'-lboost_system',
'-lboost_regex',
'-pthread',
],
},
'targets': [
{
'type': 'shared_library',
'cflags': ['-fPIC'],
'target_name': 'libgarfield',
'sources': ['<@(lib_sources)'],
},
{
'type': 'static_library',
'target_name': 'garfield_static',
'sources': ['<@(lib_sources)'],
},
{
'target_name': 'example-server',
'type': 'executable',
'cflags': ['-g'],
'libraries': [
'-lboost_program_options',
],
'dependencies': ['garfield_static'],
'sources': [
'example-server.cc',
],
},
{
'target_name': 'file-server',
'type': 'executable',
'cflags': ['-g'],
'libraries': [
'-lboost_program_options',
],
'dependencies': ['garfield_static'],
'sources': [
'file-server.cc',
],
},
{
'target_name': 'http_bench',
'type': 'executable',
'libraries': [
'-lboost_program_options'
],
'sources': [
'http_bench.cc',
],
},
],
}