[target.aarch64-linux-ohos]
  compile-option = "-B \"${DEVECO_CANGJIE_HOME}/compiler/third_party/llvm/bin\" -B \"${DEVECO_CANGJIE_HOME}/musl/usr/lib/aarch64-linux-ohos\" -L \"${DEVECO_CANGJIE_HOME}/musl/usr/lib/aarch64-linux-ohos\" -L \"${DEVECO_CANGJIE_HOME}/build/linux_ohos_aarch64_llvm/openssl\" --sysroot \"${DEVECO_CANGJIE_HOME}/musl\" --cfg \"ohos=true\""
  [target.aarch64-linux-ohos.bin-dependencies]
    path-option = [ "${AARCH64_LIBS}", "${AARCH64_MACRO_LIBS}" ]

[target.x86_64-linux-ohos]
  compile-option = "-B \"${DEVECO_CANGJIE_HOME}/compiler/third_party/llvm/bin\" -B \"${DEVECO_CANGJIE_HOME}/musl/usr/lib/x86_64-linux-ohos\" -L \"${DEVECO_CANGJIE_HOME}/musl/usr/lib/x86_64-linux-ohos\" -L \"${DEVECO_CANGJIE_HOME}/build/linux_ohos_x86_64_llvm/openssl\" --sysroot \"${DEVECO_CANGJIE_HOME}/musl\" --cfg \"ohos=true\""
  [target.x86_64-linux-ohos.bin-dependencies]
    path-option = [ "${X86_64_OHOS_LIBS}", "${X86_64_OHOS_MACRO_LIBS}" ]

[target.x86_64-unknown-linux-gnu]
  compile-option = "--cfg \"ohos=false\""
[target.x86_64-unknown-windows-gnu]
  compile-option = "--cfg \"ohos=false\""
[target.x86_64-w64-mingw32]
  compile-option = "--cfg \"ohos=false\""

[target.x86_64-apple-darwin]
  compile-option = "--cfg \"ohos=false\""
[target.x86_64-apple-darwin.bin-dependencies]
    path-option = [ "${X86_64_MACOS_LIBS}", "${X86_64_MACOS_MACRO_LIBS}" ]
[target.aarch64-apple-darwin]
  compile-option = "--cfg \"ohos=false\""
  [target.aarch64-apple-darwin.bin-dependencies]
    path-option = [ "${AARCH64_MACOS_LIBS}", "${AARCH64_MACOS_MACRO_LIBS}" ]


[package]
  cjc-version = "0.56.4"
  compile-option = "-Woff unused --cfg \"faiss=disable,sqlite=disable,llamacpp=disable,http=curl\" "
  description = "nothing here"
  link-option = ""
  name = "magic"
  output-type = "dynamic"
  src-dir = ""
  target-dir = ""
  version = "1.0.0"

[package.package-configuration."magic.examples.health_monitor"]
  output-type = "executable"
[package.package-configuration."magic.examples.markdown_qa"]
  output-type = "executable"
[package.package-configuration."magic.examples.doc_generator"]
  output-type = "executable"
[package.package-configuration."magic.examples.file_assistant"]
  output-type = "executable"
[package.package-configuration."magic.examples.quick_start"]
  output-type = "executable"
[package.package-configuration."magic.examples.mcp_server"]
  output-type = "executable"
[package.package-configuration."magic.examples.mcp_client"]
  output-type = "executable"
[package.package-configuration."magic.examples.fun_idea"]
  output-type = "executable"
[package.package-configuration."magic.examples.mini_rag"]
  output-type = "executable"
[package.package-configuration."magic.examples.magic_agent"]
  output-type = "executable"
[package.package-configuration."magic.examples.test"]
output-type = "executable"

[profile.test.build]
  compile-option = "-Woff unused --cfg \"faiss=disable,sqlite=disable,llamacpp=disable,http=curl\" "

[ffi.c]
# sqlite = {path="./ffi_libs/"}
# faiss_c = {path="./ffi_libs/"}