SConstruct (8113:5c7c804e0645) SConstruct (8117:2eec3c58e50e)
1# Copyright (c) 2011 Gabe Black
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 35 unchanged lines hidden (view full) ---

44
45scons ARMCXX=arm-cross-g++ build/amd64/statetrace build/arm/statetrace
46
47After a successful build, the statetrace binary(binaries) will be located in
48the build/<arch>/ directories you specified on the command line.
49''')
50
51
1# Copyright (c) 2011 Gabe Black
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 35 unchanged lines hidden (view full) ---

44
45scons ARMCXX=arm-cross-g++ build/amd64/statetrace build/arm/statetrace
46
47After a successful build, the statetrace binary(binaries) will be located in
48the build/<arch>/ directories you specified on the command line.
49''')
50
51
52arches = 'amd64', 'arm', 'i386', 'sparc'
52arches = 'amd64', 'arm', 'i686', 'sparc'
53
54import os
55
56main = Environment()
57main.SetOption('duplicate', 'soft-copy')
58main['CXXFLAGS'] = "-O3 -ggdb $_CPPINCFLAGS"
59
60main['CXX'] = ARGUMENTS.get('CXX', main['CXX'])
61
62for arch in arches:
63 env = main.Clone()
64 env['CXX'] = ARGUMENTS.get(arch.upper() + 'CXX', env['CXX'])
65 env.Append(CPPFLAGS = '-D__STATETRACE_%s__' % arch.upper())
66 Export('env', 'arch')
67 env.SConscript('SConscript', variant_dir = os.path.join('build', arch))
53
54import os
55
56main = Environment()
57main.SetOption('duplicate', 'soft-copy')
58main['CXXFLAGS'] = "-O3 -ggdb $_CPPINCFLAGS"
59
60main['CXX'] = ARGUMENTS.get('CXX', main['CXX'])
61
62for arch in arches:
63 env = main.Clone()
64 env['CXX'] = ARGUMENTS.get(arch.upper() + 'CXX', env['CXX'])
65 env.Append(CPPFLAGS = '-D__STATETRACE_%s__' % arch.upper())
66 Export('env', 'arch')
67 env.SConscript('SConscript', variant_dir = os.path.join('build', arch))