Skip to content

Commit

Permalink
Add cal to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Octogonapus committed Apr 27, 2024
1 parent 52103bd commit 8cb1614
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 20 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The LibAwsCommon.jl package is licensed under the MIT "Expat" License:
The LibAwsHTTP.jl package is licensed under the MIT "Expat" License:

> Copyright (c) 2024: Jacob Quinn and Ryan Benasutti
>
Expand Down
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "1.0.0"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
LibAwsCal = "ef519ef6-af43-41a0-8ac4-eb81328190af"
LibAwsCommon = "c6e421ba-b5f8-4792-a1c4-42948de3ed9d"
LibAwsCompression = "51c8708f-2dd9-446d-a0d4-ba9f49ba4b23"
LibAwsIO = "a5388770-19df-4151-b103-3d71de896ddf"
Expand All @@ -12,6 +13,7 @@ aws_c_http_jll = "3254fc65-9028-534d-aa9d-d76d128babc6"
[compat]
Aqua = "0.7"
CEnum = "0.5"
LibAwsCal = "=1.0.0"
LibAwsCommon = "=1.0.0"
LibAwsCompression = "=1.0.0"
LibAwsIO = "=1.0.0"
Expand Down
6 changes: 3 additions & 3 deletions gen/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

julia_version = "1.10.2"
manifest_format = "2.0"
project_hash = "3e9e7ba9992b1636a2f7ad45e41704c66c5cbb8c"
project_hash = "ec3f69c6c0b074ab0df08c4a7cc9021fd64d5f2e"

[[deps.ArgTools]]
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
Expand Down Expand Up @@ -209,9 +209,9 @@ version = "1.2.13+1"

[[deps.aws_c_cal_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "aws_c_common_jll"]
git-tree-sha1 = "7425bc9d167f7982c277d22609bc036a00ff1466"
git-tree-sha1 = "3c554279cdb445fbebdab0b9f9fcc470c6d488b0"
uuid = "70f11efc-bab2-57f1-b0f3-22aad4e67c4b"
version = "0.6.11+0"
version = "0.6.12+0"

[[deps.aws_c_common_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl"]
Expand Down
1 change: 1 addition & 0 deletions gen/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[deps]
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"
JLLPrefixes = "afc68a34-7891-4c5a-9da1-1c62935e7b0d"
aws_c_cal_jll = "70f11efc-bab2-57f1-b0f3-22aad4e67c4b"
aws_c_common_jll = "73048d1d-b8c4-5092-a58d-866c5e8d1e50"
aws_c_compression_jll = "73a04cd5-f3d7-5bac-9290-e8adb709f224"
aws_c_http_jll = "3254fc65-9028-534d-aa9d-d76d128babc6"
Expand Down
19 changes: 3 additions & 16 deletions gen/generator.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using Clang.Generators
using Clang.JLLEnvs
using JLLPrefixes
import aws_c_common_jll, aws_c_io_jll, aws_c_compression_jll, aws_c_http_jll
import aws_c_common_jll, aws_c_io_jll, aws_c_compression_jll, aws_c_http_jll, aws_c_cal_jll

cd(@__DIR__)

const refs_to_remove = []

# This is called if the docs generated from the extract_c_comment_style method did not generate any lines.
# We need to generate at least some docs so that cross-references work with Documenter.jl.
function get_docs(node, docs)
Expand All @@ -21,19 +19,6 @@ function get_docs(node, docs)
return ["Documentation not found."]
end

# remove references to things which don't exist because it causes Documenter.jl's cross_references check to fail
for ref in refs_to_remove
for doci in eachindex(docs)
docs[doci] = replace(docs[doci], "[`$ref`](@ref)" => "`$ref`")
end
end

# # fix other random stuff
# for doci in eachindex(docs)
# # fix some code that gets bogus references inserted
# docs[doci] = replace(docs[doci], "for (struct [`aws_hash_iter`](@ref) iter = [`aws_hash_iter_begin`](@ref)(&map); ![`aws_hash_iter_done`](@ref)(&iter); [`aws_hash_iter_next`](@ref)(&iter)) { const key\\_type key = *(const key\\_type *)iter.element.key; value\\_type value = *(value\\_type *)iter.element.value; // etc. }" => "`for (struct aws_hash_iter iter = aws_hash_iter_begin(&map); !aws_hash_iter_done(&iter); aws_hash_iter_next(&iter)) { const key\\_type key = *(const key\\_type *)iter.element.key; value\\_type value = *(value\\_type *)iter.element.value; // etc. }`")
# end

return docs
end

Expand Down Expand Up @@ -65,6 +50,8 @@ for target in JLLEnvs.JLL_ENV_TRIPLES
push!(args, "-isystem$inc")
inc = JLLEnvs.get_pkg_include_dir(aws_c_compression_jll, target)
push!(args, "-isystem$inc")
inc = JLLEnvs.get_pkg_include_dir(aws_c_cal_jll, target)
push!(args, "-isystem$inc")

header_dirs = []
inc = JLLEnvs.get_pkg_include_dir(aws_c_http_jll, target)
Expand Down
1 change: 1 addition & 0 deletions src/LibAwsHTTP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using aws_c_http_jll
using LibAwsCommon
using LibAwsCompression
using LibAwsIO
using LibAwsCal

const IS_LIBC_MUSL = occursin("musl", Base.BUILD_TRIPLET)
if Sys.isapple() && Sys.ARCH === :aarch64
Expand Down

0 comments on commit 8cb1614

Please sign in to comment.