-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
36 lines (30 loc) · 1.02 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def options (opt):
opt.load ('compiler_c compiler_cxx')
opt.load ('boost')
def configure (env):
env.load ('compiler_c compiler_cxx')
env.load ('boost')
# comment out the following two lines if compiling not on lnxsrv
env.options.boost_includes = '/u/cs/grad/yingdi/boost/include'
env.options.boost_libs = '/u/cs/grad/yingdi/boost/lib'
#
env.check_boost(lib='thread')
env.env.append_value('CXXFLAGS', ['-O0', '-g3', '-Wall', '-Werror'])
def build (env):
env.load ('compiler_c compiler_cxx')
env.load ('boost')
server = env.program (
target = "http-proxy",
features = ["cxx", "cxxprogram"],
use = 'BOOST BOOST_THREAD',
source = [
# Put additional files here
# ...
#
"http-proxy.cc", # main() function is here
"http-headers.cc",
"http-request.cc",
"http-response.cc",
]
)