SConscript (13655:585ffa1a18d3) | SConscript (13656:2727dfddacf3) |
---|---|
1# Copyright 2018 Google, Inc. 2# 3# Redistribution and use in source and binary forms, with or without 4# modification, are permitted provided that the following conditions are 5# met: redistributions of source code must retain the above copyright 6# notice, this list of conditions and the following disclaimer; 7# redistributions in binary form must reproduce the above copyright 8# notice, this list of conditions and the following disclaimer in the --- 77 unchanged lines hidden (view full) --- 86 env.Append(LIBPATH=[sl_dir], LIBS=[sl_base]) 87 88 super(SystemCTestBin, cls).declare_all(env) 89 90 def declare(self, env): 91 env = env.Clone() 92 sources = list(self.sources) 93 for f in self.filters: | 1# Copyright 2018 Google, Inc. 2# 3# Redistribution and use in source and binary forms, with or without 4# modification, are permitted provided that the following conditions are 5# met: redistributions of source code must retain the above copyright 6# notice, this list of conditions and the following disclaimer; 7# redistributions in binary form must reproduce the above copyright 8# notice, this list of conditions and the following disclaimer in the --- 77 unchanged lines hidden (view full) --- 86 env.Append(LIBPATH=[sl_dir], LIBS=[sl_base]) 87 88 super(SystemCTestBin, cls).declare_all(env) 89 90 def declare(self, env): 91 env = env.Clone() 92 sources = list(self.sources) 93 for f in self.filters: |
94 sources = Source.all.apply_filter(f) | 94 sources += Source.all.apply_filter(f) |
95 objs = self.srcs_to_objs(env, sources) 96 objs = objs + env['MAIN_OBJS'] 97 relpath = os.path.relpath( 98 env['SHARED_LIB'][0].dir.abspath, 99 self.path(env).dir.abspath) 100 env.Append(LINKFLAGS=Split('-z origin')) 101 env.Append(RPATH=[ 102 env.Literal(os.path.join('\\$$ORIGIN', relpath))]) --- 85 unchanged lines hidden --- | 95 objs = self.srcs_to_objs(env, sources) 96 objs = objs + env['MAIN_OBJS'] 97 relpath = os.path.relpath( 98 env['SHARED_LIB'][0].dir.abspath, 99 self.path(env).dir.abspath) 100 env.Append(LINKFLAGS=Split('-z origin')) 101 env.Append(RPATH=[ 102 env.Literal(os.path.join('\\$$ORIGIN', relpath))]) --- 85 unchanged lines hidden --- |