-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from fpelliccioni/use-libdispatch
Conan task_system option.
- Loading branch information
Showing
7 changed files
with
201 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
import copy | ||
from cpt.packager import ConanMultiPackager | ||
|
||
if __name__ == "__main__": | ||
builder = ConanMultiPackager(build_policy = "missing", archs = ["x86_64"], options = ["stlab:testing=True"]) | ||
# apple_clang_versions= ["12.0"] | ||
builder.add_common_builds() | ||
|
||
filtered_builds = [] | ||
for settings, options, env_vars, build_requires, reference in builder.items: | ||
|
||
if settings["compiler"] == "clang": | ||
opts_libdispatch = copy.deepcopy(options) | ||
opts_libdispatch["stlab:task_system"] = "libdispatch" | ||
filtered_builds.append([settings, opts_libdispatch, env_vars, build_requires, reference]) | ||
|
||
filtered_builds.append([settings, options, env_vars, build_requires, reference]) | ||
|
||
builder.builds = filtered_builds | ||
|
||
builder.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/* | ||
Copyright 2015-2021 Adobe | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
|
||
/**************************************************************************************************/ | ||
|
||
#ifndef STLAB_CONCURRENCY_CONFIG_TASK_SYSTEM_HPP | ||
#define STLAB_CONCURRENCY_CONFIG_TASK_SYSTEM_HPP | ||
|
||
/**************************************************************************************************/ | ||
|
||
#define STLAB_TASK_SYSTEM_PRIVATE_PORTABLE() 0 | ||
#define STLAB_TASK_SYSTEM_PRIVATE_LIBDISPATCH() 0 | ||
#define STLAB_TASK_SYSTEM_PRIVATE_EMSCRIPTEN() 0 | ||
#define STLAB_TASK_SYSTEM_PRIVATE_PNACL() 0 | ||
#define STLAB_TASK_SYSTEM_PRIVATE_WINDOWS() 0 | ||
|
||
#define STLAB_TASK_SYSTEM(X) (STLAB_TASK_SYSTEM_PRIVATE_##X()) | ||
|
||
#if defined(STLAB_FORCE_TASK_SYSTEM_LIBDISPATCH) | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_LIBDISPATCH | ||
#define STLAB_TASK_SYSTEM_PRIVATE_LIBDISPATCH() 1 | ||
|
||
#elif defined(STLAB_FORCE_TASK_SYSTEM_EMSRIPTEN) | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_EMSCRIPTEN | ||
#define STLAB_TASK_SYSTEM_PRIVATE_EMSCRIPTEN() 1 | ||
|
||
#elif defined(STLAB_FORCE_TASK_SYSTEM_PNACL) | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_PNACL | ||
#define STLAB_TASK_SYSTEM_PRIVATE_PNACL() 1 | ||
|
||
#elif defined(STLAB_FORCE_TASK_SYSTEM_WINDOWS) | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_WINDOWS | ||
#define STLAB_TASK_SYSTEM_PRIVATE_WINDOWS() 1 | ||
|
||
#elif defined(STLAB_FORCE_TASK_SYSTEM_PORTABLE) | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_PORTABLE | ||
#define STLAB_TASK_SYSTEM_PRIVATE_PORTABLE() 1 | ||
|
||
#else | ||
|
||
#if __APPLE__ | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_LIBDISPATCH | ||
#define STLAB_TASK_SYSTEM_PRIVATE_LIBDISPATCH() 1 | ||
|
||
#elif __EMSCRIPTEN__ | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_EMSCRIPTEN | ||
#define STLAB_TASK_SYSTEM_PRIVATE_EMSCRIPTEN() 1 | ||
|
||
#elif __pnacl__ | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_PNACL | ||
#define STLAB_TASK_SYSTEM_PRIVATE_PNACL() 1 | ||
|
||
#elif _MSC_VER | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_WINDOWS | ||
#define STLAB_TASK_SYSTEM_PRIVATE_WINDOWS() 1 | ||
|
||
#else | ||
|
||
#undef STLAB_TASK_SYSTEM_PRIVATE_PORTABLE | ||
#define STLAB_TASK_SYSTEM_PRIVATE_PORTABLE() 1 | ||
|
||
#endif | ||
|
||
#endif | ||
|
||
/**************************************************************************************************/ | ||
|
||
#endif // STLAB_CONCURRENCY_CONFIG_TASK_SYSTEM_HPP | ||
|
||
/**************************************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters