Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial import.
  • Loading branch information
Sam Jansen committed Nov 29, 2010
1 parent a7bf289 commit 1aa7e87
Show file tree
Hide file tree
Showing 9 changed files with 3,366 additions and 0 deletions.
51 changes: 51 additions & 0 deletions SConstruct
@@ -0,0 +1,51 @@
# Copyright (c) 2010, PROACTIVE RISK - http://www.proactiverisk.com
#
# This file is part of HTTP DoS Tool.
#
# HTTP Dos Tool is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# Foobar is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# HTTP DoS Tool. If not, see <http://www.gnu.org/licenses/>.

import os
import sys

# libevent location
libevent_loc = ARGUMENTS.get('libevent')
if not libevent_loc:
if sys.platform == 'win32':
libevent_loc = '../../local'
else:
libevent_loc = '..'
libevent_loc = '#' + libevent_loc

# Build env

if sys.platform == 'win32':
env = Environment(tools=['mingw'],
LINKFLAGS=['-Wl,--enable-auto-import'],
LIBPATH=[os.path.join(libevent_loc, 'lib')],
CPPPATH=[os.path.join(libevent_loc, 'include')],
CPPDEFINES=['PLAT_WIN32']
)
else:
env = Environment(
LIBPATH=[os.path.join(libevent_loc, 'lib')],
CPPPATH=[os.path.join(libevent_loc, 'include')],
CPPDEFINES=['PLAT_LINUX'])

variant_dir = 'build'
VariantDir(variant_dir, '.', duplicate=0)
Default(variant_dir)
Export('env')

SConscript(variant_dir + '/src/SConscript')

# vim: set ft=python :
674 changes: 674 additions & 0 deletions license.txt

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions src/SConscript
@@ -0,0 +1,16 @@
# vim: set ft=python :

Import('env')

env.Append(LIBS=['event'],
CXXFLAGS=['-g', '-O1'])

if env['PLATFORM'] == 'win32':
env.Append(
LIBS=['dnsapi', 'ws2_32'],
LINKFLAGS=['-static-libgcc', '-static-libstdc++'])
else:
env.Append(LIBS=['rt'])

env.Program('http_dos_cli', ['main.cc'])

0 comments on commit 1aa7e87

Please sign in to comment.