SConscript (13512:fa58ac6ea3e8) SConscript (13655:585ffa1a18d3)
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

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

93 for f in self.filters:
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'))
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

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

93 for f in self.filters:
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=env.Literal(os.path.join('\\$$ORIGIN', relpath)))
101 env.Append(RPATH=[
102 env.Literal(os.path.join('\\$$ORIGIN', relpath))])
102 test_bin = super(SystemCTestBin, self).declare(env, objs)
103 test_dir = self.dir.Dir(self.reldir)
104 for dep in self.test_deps:
105 env.Depends(test_bin, test_dir.File(dep))
106 return test_bin
107
108 tests = []
109 def new_test(dirname, name):

--- 77 unchanged lines hidden ---
103 test_bin = super(SystemCTestBin, self).declare(env, objs)
104 test_dir = self.dir.Dir(self.reldir)
105 for dep in self.test_deps:
106 env.Depends(test_bin, test_dir.File(dep))
107 return test_bin
108
109 tests = []
110 def new_test(dirname, name):

--- 77 unchanged lines hidden ---