forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* define GLAD_GLAPI_EXPORT if shared * download .tar.gz instead of .zip * add glad/0.1.34
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
sources: | ||
"0.1.34": | ||
url: "https://github.com/Dav1dde/glad/archive/v0.1.34.tar.gz" | ||
sha256: "4be2900ff76ac71a2aab7a8be301eb4c0338491c7e205693435b09aad4969ecd" | ||
"0.1.33": | ||
url: "https://github.com/Dav1dde/glad/archive/v0.1.33.zip" | ||
sha256: "3175b56aa5ff16c5bfb33df3f36d6a7eb680e7d9f1675035472015e007a88660" | ||
url: "https://github.com/Dav1dde/glad/archive/v0.1.33.tar.gz" | ||
sha256: "4bc850062e9bcfc182bd4095d45b987517507d8ec0edcc424ed58f67b4ea9e37" | ||
patches: | ||
"0.1.34": | ||
- patch_file: "patches/0002-CMake-handle-all-specs.patch" | ||
base_path: "source_subfolder" | ||
"0.1.33": | ||
- patch_file: "patches/0001-CMake-handle-all-specs.patch" | ||
base_path: "source_subfolder" |
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
24 changes: 24 additions & 0 deletions
24
recipes/glad/all/patches/0002-CMake-handle-all-specs.patch
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,24 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -73,10 +73,17 @@ elseif(GLAD_GENERATOR STREQUAL "volt") | ||
) | ||
else() | ||
set(GLAD_INCLUDE_DIRS "${GLAD_OUT_DIR}/include") | ||
- list(APPEND GLAD_SOURCES | ||
- "${GLAD_OUT_DIR}/src/glad.c" | ||
- "${GLAD_INCLUDE_DIRS}/glad/glad.h" | ||
- ) | ||
+ if(GLAD_SPEC STREQUAL "gl") | ||
+ list(APPEND GLAD_SOURCES | ||
+ "${GLAD_OUT_DIR}/src/glad.c" | ||
+ "${GLAD_INCLUDE_DIRS}/glad/glad.h" | ||
+ ) | ||
+ else() | ||
+ list(APPEND GLAD_SOURCES | ||
+ "${GLAD_OUT_DIR}/src/glad_${GLAD_SPEC}.c" | ||
+ "${GLAD_INCLUDE_DIRS}/glad/glad_${GLAD_SPEC}.h" | ||
+ ) | ||
+ endif() | ||
endif() | ||
|
||
if(NOT GLAD_ALL_EXTENSIONS) |
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,3 +1,5 @@ | ||
versions: | ||
"0.1.34": | ||
folder: all | ||
"0.1.33": | ||
folder: all |