-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add frozen library support - for compile-time dict, set support
Change-Id: I8fa02569ba02048cc3ef02b349aafba1c0cbebb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153173 Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp> Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
- Loading branch information
Showing
8 changed files
with
69 additions
and
0 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
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,16 @@ | ||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*- | ||
# | ||
# This file is part of the LibreOffice project. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
|
||
$(eval $(call gb_Module_Module,frozen)) | ||
|
||
$(eval $(call gb_Module_add_targets,frozen,\ | ||
UnpackedTarball_frozen \ | ||
)) | ||
|
||
# vim: set noet sw=4 ts=4: |
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,7 @@ | ||
External header only library frozen | ||
|
||
Header-only library that provides 0 cost initialization for immutable containers, fixed-size containers, and various algorithms. | ||
|
||
https://github.com/serge-sans-paille/frozen | ||
|
||
Release archives at: https://github.com/serge-sans-paille/frozen/tags |
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,18 @@ | ||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*- | ||
# | ||
# This file is part of the LibreOffice project. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
|
||
$(eval $(call gb_UnpackedTarball_UnpackedTarball,frozen)) | ||
|
||
$(eval $(call gb_UnpackedTarball_set_tarball,frozen,$(FROZEN_TARBALL))) | ||
|
||
$(eval $(call gb_UnpackedTarball_add_patches,frozen,\ | ||
external/frozen/defines_h_constexpr_string.patch.0 \ | ||
)) | ||
|
||
# vim: set noet sw=4 ts=4: |
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,11 @@ | ||
--- include/frozen/bits/defines.h | ||
+++ include/frozen/bits/defines.h | ||
@@ -59,7 +59,7 @@ | ||
#define FROZEN_LETITGO_HAS_DEDUCTION_GUIDES | ||
#endif | ||
|
||
-#if __cpp_lib_constexpr_string >= 201907L | ||
+#if defined(__cpp_lib_constexpr_string) && __cpp_lib_constexpr_string >= 201907L | ||
#define FROZEN_LETITGO_HAS_CONSTEXPR_STRING | ||
#endif | ||
|