forked from ned14/nedtries
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
committed
Jun 18, 2010
1 parent
0d79fe1
commit e4d1245
Showing
11 changed files
with
141 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
copy /y Readme.html docs\html\index.html | ||
copy /y doxygen.css docs\html\doxygen.css | ||
xcopy /y /s images docs\html\images\ | ||
cd docs\html | ||
"G:\Program Files\HTML Help Workshop\hhc.exe" index.hhp | ||
cd ..\.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import os, sys, platform | ||
|
||
Import("env") | ||
|
||
# Test program | ||
sources = [ "benchmark.cpp" ] | ||
objects = env.Object(source = sources) | ||
testprogram = env.Program("benchmark", source = objects) | ||
|
||
Default(testprogram) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import os, sys, platform | ||
|
||
env = Environment() | ||
|
||
# Force scons to always use absolute paths in everything (helps debuggers to find source files) | ||
env['CCCOM'] = env['CCCOM'].replace('$CHANGED_SOURCES','$SOURCES.abspath') | ||
env['SHCCCOM'] = env['SHCCCOM'].replace('$CHANGED_SOURCES','$SOURCES.abspath') | ||
env['CXXCOM'] = env['CXXCOM'].replace('$CHANGED_SOURCES','$SOURCES.abspath') | ||
env['SHCXXCOM']= env['SHCXXCOM'].replace('$CHANGED_SOURCES','$SOURCES.abspath') | ||
architecture="generic" | ||
env['CPPDEFINES']=[] | ||
env['CCFLAGS']=[] | ||
env['LIBS']=[] | ||
env['LINKFLAGS']=[] | ||
env['CCFLAGSFORNEDMALLOC']=[] | ||
|
||
# Am I in a 32 or 64 bit environment? Note that not specifying --sse doesn't set any x86 or x64 specific options | ||
# so it's good to go for ANY platform | ||
if sys.platform=="win32": | ||
# Even the very latest scons still screws this up :( | ||
env['ENV']['INCLUDE']=os.environ['INCLUDE'] | ||
env['ENV']['LIB']=os.environ['LIB'] | ||
env['ENV']['PATH']=os.environ['PATH'] | ||
|
||
# Am I building a debug or release build? | ||
if env.GetOption('debug'): | ||
env['CPPDEFINES']+=["DEBUG", "_DEBUG"] | ||
variant=architecture+"/Debug" | ||
else: | ||
env['CPPDEFINES']+=["NDEBUG"] | ||
variant=architecture+"/Release" | ||
|
||
# Am I building for Windows or POSIX? | ||
if sys.platform=='win32': | ||
env['CPPDEFINES']+=["WIN32", "_WINDOWS", "UNICODE", "_UNICODE"] | ||
env['CCFLAGS']+=["/EHsc"] # Turn on exception handling | ||
env['CCFLAGS']+=["/GF"] # Eliminate duplicate strings | ||
env['CCFLAGS']+=["/Gy"] # Seperate COMDATs | ||
env['CCFLAGS']+=["/Zi"] # Program database debug info | ||
if env.GetOption('debug'): | ||
env['CCFLAGS']+=["/Od", "/MDd"] | ||
else: | ||
env['CCFLAGS']+=["/O2", "/MD"] | ||
env['LIBS']+=["psapi", "user32", "advapi32"] | ||
env['LINKFLAGS']+=["/DEBUG"] # Output debug symbols | ||
env['LINKFLAGS']+=["/LARGEADDRESSAWARE"] # Works past 2Gb | ||
env['LINKFLAGS']+=["/NXCOMPAT"] # Likes no execute | ||
|
||
env['LINKFLAGS']+=["/MANIFEST"] # Be UAC compatible | ||
|
||
if not env.GetOption('debug'): | ||
env['LINKFLAGS']+=["/OPT:REF", "/OPT:ICF"] # Eliminate redundants | ||
else: | ||
env['CPPDEFINES']+=[] | ||
env['CCFLAGS']+=["-Wall", "-std=gnu++0x"] | ||
if env.GetOption('debug'): | ||
env['CCFLAGS']+=["-O0", "-g"] | ||
else: | ||
env['CCFLAGS']+=["-O2", "-g"] | ||
env['LIBS']+=["rt"] | ||
env['LINKFLAGS']+=[] | ||
|
||
# Build | ||
nedmalloclib=SConscript("SConscript", variant_dir=variant, duplicate=False, exports="env") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.