diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/hard_dependency/src | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/hard_dependency/src')
9 files changed, 160 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/a.c b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/a.c new file mode 100644 index 000000000..0fa0223c9 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/a.c @@ -0,0 +1,9 @@ +/* Copyright (c) 2011 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#include "a.h" + +int funcA() { + return 42; +} diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/a.h b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/a.h new file mode 100644 index 000000000..854a06504 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/a.h @@ -0,0 +1,12 @@ +/* Copyright (c) 2009 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#ifndef A_H_ +#define A_H_ + +#include "generated.h" + +int funcA(); + +#endif // A_H_ diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/b.c b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/b.c new file mode 100644 index 000000000..0baace929 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/b.c @@ -0,0 +1,9 @@ +/* Copyright (c) 2011 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#include "a.h" + +int funcB() { + return funcA(); +} diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/b.h b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/b.h new file mode 100644 index 000000000..22b48cefe --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/b.h @@ -0,0 +1,12 @@ +/* Copyright (c) 2011 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#ifndef B_H_ +#define B_H_ + +#include "a.h" + +int funcB(); + +#endif // B_H_ diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/c.c b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/c.c new file mode 100644 index 000000000..7d0068208 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/c.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#include "b.h" +#include "c.h" + +int funcC() { + return funcB(); +} diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/c.h b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/c.h new file mode 100644 index 000000000..f4ea7fefa --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/c.h @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#ifndef C_H_ +#define C_H_ + +int funcC(); + +#endif // C_H_ diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/d.c b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/d.c new file mode 100644 index 000000000..d016c3ce7 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/d.c @@ -0,0 +1,9 @@ +/* Copyright (c) 2009 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + +#include "c.h" + +int funcD() { + return funcC(); +} diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/emit.py b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/emit.py new file mode 100755 index 000000000..2df74b79a --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/emit.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import sys + +f = open(sys.argv[1], 'wb') +f.write('/* Hello World */\n') +f.close() diff --git a/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/hard_dependency.gyp b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/hard_dependency.gyp new file mode 100644 index 000000000..4479c5f04 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/hard_dependency/src/hard_dependency.gyp @@ -0,0 +1,78 @@ +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + 'target_name': 'a', + 'type': 'static_library', + 'sources': [ + 'a.c', + 'a.h', + ], + 'hard_dependency': 1, + 'actions': [ + { + 'action_name': 'generate_headers', + 'inputs': [ + 'emit.py' + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/generated.h' + ], + 'action': [ + 'python', + 'emit.py', + '<(SHARED_INTERMEDIATE_DIR)/generated.h', + ], + # Allows the test to run without hermetic cygwin on windows. + 'msvs_cygwin_shell': 0, + }, + ], + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)', + ], + }, + }, + { + 'target_name': 'b', + 'type': 'static_library', + 'sources': [ + 'b.c', + 'b.h', + ], + 'dependencies': [ + 'a', + ], + 'export_dependent_settings': [ + 'a', + ], + }, + { + 'target_name': 'c', + 'type': 'static_library', + 'sources': [ + 'c.c', + 'c.h', + ], + 'dependencies': [ + 'b', + ], + }, + { + 'target_name': 'd', + 'type': 'static_library', + 'sources': [ + 'd.c', + ], + 'dependencies': [ + 'c', + ], + } + ], +} |