diff options
author | Michal Krol <michal@vmware.com> | 2009-12-17 17:00:46 +0100 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-12-17 17:00:46 +0100 |
commit | e195eab9093d2a6cf55a42b2e7789c9a381b7782 (patch) | |
tree | 508408dbb9537f508e6831df033506da8f66b8da /SConstruct | |
parent | 1c28073fdfb56a241424c739b57845f47fa05002 (diff) | |
parent | 75f371e973d19650a5c157a0844e43ffdea5e43e (diff) |
Merge branch 'glsl-pp-rework-2'
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index f43c10cecb..122b8cf916 100644 --- a/SConstruct +++ b/SConstruct @@ -160,6 +160,25 @@ Export('env') # TODO: Build several variants at the same time? # http://www.scons.org/wiki/SimultaneousVariantBuilds +if env['platform'] != common.default_platform: + # GLSL code has to be built twice -- one for the host OS, another for the target OS... + + host_env = Environment( + # options are ignored + # default tool is used + toolpath = ['#scons'], + ENV = os.environ, + ) + + host_env['platform'] = common.default_platform + + SConscript( + 'src/glsl/SConscript', + variant_dir = env['build'] + '/host', + duplicate = 0, # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html + exports={'env':host_env}, + ) + SConscript( 'src/SConscript', variant_dir = env['build'], |