From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../gyp/test/win/importlib/dll_no_exports.cc | 9 +++++++ .../python/gyp/test/win/importlib/has-exports.cc | 10 ++++++++ third_party/python/gyp/test/win/importlib/hello.cc | 9 +++++++ .../python/gyp/test/win/importlib/importlib.gyp | 30 ++++++++++++++++++++++ .../python/gyp/test/win/importlib/noimplib.gyp | 16 ++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 third_party/python/gyp/test/win/importlib/dll_no_exports.cc create mode 100644 third_party/python/gyp/test/win/importlib/has-exports.cc create mode 100644 third_party/python/gyp/test/win/importlib/hello.cc create mode 100644 third_party/python/gyp/test/win/importlib/importlib.gyp create mode 100644 third_party/python/gyp/test/win/importlib/noimplib.gyp (limited to 'third_party/python/gyp/test/win/importlib') diff --git a/third_party/python/gyp/test/win/importlib/dll_no_exports.cc b/third_party/python/gyp/test/win/importlib/dll_no_exports.cc new file mode 100644 index 0000000000..96dd7970b7 --- /dev/null +++ b/third_party/python/gyp/test/win/importlib/dll_no_exports.cc @@ -0,0 +1,9 @@ +// Copyright (c) 2015 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 + +BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { + return TRUE; +} diff --git a/third_party/python/gyp/test/win/importlib/has-exports.cc b/third_party/python/gyp/test/win/importlib/has-exports.cc new file mode 100644 index 0000000000..3f62d6c60d --- /dev/null +++ b/third_party/python/gyp/test/win/importlib/has-exports.cc @@ -0,0 +1,10 @@ +// Copyright (c) 2012 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. + +__declspec(dllexport) void some_function() { +} + +int main() { + return 0; +} diff --git a/third_party/python/gyp/test/win/importlib/hello.cc b/third_party/python/gyp/test/win/importlib/hello.cc new file mode 100644 index 0000000000..66ff68c113 --- /dev/null +++ b/third_party/python/gyp/test/win/importlib/hello.cc @@ -0,0 +1,9 @@ +// Copyright (c) 2012 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. + +__declspec(dllimport) void some_function(); + +int main() { + some_function(); +} diff --git a/third_party/python/gyp/test/win/importlib/importlib.gyp b/third_party/python/gyp/test/win/importlib/importlib.gyp new file mode 100644 index 0000000000..ab15b1893d --- /dev/null +++ b/third_party/python/gyp/test/win/importlib/importlib.gyp @@ -0,0 +1,30 @@ +# Copyright (c) 2012 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': 'test_importlib', + 'type': 'shared_library', + 'msvs_settings': { + 'VCLinkerTool': { + 'LinkIncremental': '2', + } + }, + 'sources': ['has-exports.cc'], + }, + + { + 'target_name': 'test_linkagainst', + 'type': 'executable', + 'dependencies': ['test_importlib'], + 'msvs_settings': { + 'VCLinkerTool': { + 'LinkIncremental': '2', + } + }, + 'sources': ['hello.cc'], + }, + ] +} diff --git a/third_party/python/gyp/test/win/importlib/noimplib.gyp b/third_party/python/gyp/test/win/importlib/noimplib.gyp new file mode 100644 index 0000000000..0245058a99 --- /dev/null +++ b/third_party/python/gyp/test/win/importlib/noimplib.gyp @@ -0,0 +1,16 @@ +# Copyright (c) 2015 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': 'no_import_library', + 'type': 'loadable_module', + 'msvs_settings': { + 'NoImportLibrary': 'true', + }, + 'sources': ['dll_no_exports.cc'], + }, + ] +} -- cgit v1.2.3