BUILD.gn 60.3 KB
Newer Older
C
code4lala 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build/ohos.gni")

C
code4lala 已提交
16 17 18 19 20 21 22
openssl_internal_cflags = [
  "-Wall",

  # ../../third_party/openssl/crypto/o_str.c:309:9: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Werror,-Wint-conversion]
  #     err = strerror_r(errnum, buf, buflen);
  #         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  "-Wno-error=int-conversion",
C
code4lala 已提交
23

C
code4lala 已提交
24 25 26 27
  # ../../third_party/openssl/crypto/bn/bn_conv.c:92:34: error: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 10000000000000000000 to 2313682944 [-Werror,-Wconstant-conversion]
  #             *lp = BN_div_word(t, BN_DEC_CONV);
  #                   ~~~~~~~~~~~    ^~~~~~~~~~~
  "-Wno-error=constant-conversion",
C
code4lala 已提交
28

C
code4lala 已提交
29 30 31 32
  # ../../third_party/openssl/crypto/bn/bn_exp.c:382:38: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
  #     if (m->d[j - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
  #                                      ^  ~~~~~~~~~~~~~~
  "-Wno-error=shift-count-overflow",
C
code4lala 已提交
33

C
code4lala 已提交
34 35 36 37 38 39 40 41
  # ../../third_party/openssl/crypto/conf/conf_def.c:31:11: error: 'stat' macro redefined [-Werror,-Wmacro-redefined]
  # #  define stat    _stat
  #           ^
  # ../../prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/include/sys/stat.h:279:9: note: previous definition is here
  # #define stat _stat64
  #         ^
  # 1 error generated.
  "-Wno-error=macro-redefined",
C
code4lala 已提交
42 43

  "-Wno-error=implicit-fallthrough",
C
code4lala 已提交
44
  "-Wno-error=sign-compare",
45 46 47

  # Fix llvm-15 build error
  "-Wno-unused-but-set-variable",
C
code4lala 已提交
48
]
C
code4lala 已提交
49

50
crypto_config_common_private_include_dirs = [
C
code4lala 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63
  ".",
  "apps/include",
  "crypto",
  "crypto/bn",
  "crypto/ec",
  "crypto/ec/curve448",
  "crypto/modes",
  "crypto/rsa",
  "include",
  "providers/common/include",
  "providers/common/include/prov",
  "providers/implementations/include",
]
64
crypto_config_common_public_include_dirs = [ "include" ]
C
code4lala 已提交
65 66 67 68 69 70 71 72 73 74 75 76

crypto_config_common_cflags = [
  "-Wa,--noexecstack",
  "-DNDEBUG",
  "-DOPENSSL_BUILDING_OPENSSL",
  "-DOPENSSL_CPUID_OBJ",
  "-DOPENSSL_PIC",
  "-DENGINESDIR=\"\"",
  "-DMODULESDIR=\"\"",
  "-DOPENSSLDIR=\"\"",
]

77
crypto_config_linux_armv4_private_include_dirs = [
C
code4lala 已提交
78 79
  "build_all_generated/linux-armv4/apps",
  "build_all_generated/linux-armv4/crypto",
C
code4lala 已提交
80
  "build_all_generated/linux-armv4/include",
C
code4lala 已提交
81 82
  "build_all_generated/linux-armv4/include/crypto",
  "build_all_generated/linux-armv4/include/openssl",
C
code4lala 已提交
83
  "build_all_generated/linux-armv4/providers/common/include",
C
code4lala 已提交
84 85
  "build_all_generated/linux-armv4/providers/common/include/prov",
]
C
code4lala 已提交
86 87
crypto_config_linux_armv4_public_include_dirs =
    [ "build_all_generated/linux-armv4/include" ]
C
code4lala 已提交
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

crypto_config_linux_armv4_cflags = [
  "-DOPENSSL_USE_NODELETE",
  "-fPIC",
  "-pthread",

  "-DAES_ASM",
  "-DBSAES_ASM",
  "-DECP_NISTZ256_ASM",
  "-DGHASH_ASM",
  "-DKECCAK1600_ASM",
  "-DOPENSSL_BN_ASM_GF2m",
  "-DOPENSSL_BN_ASM_MONT",
  "-DPOLY1305_ASM",
  "-DSHA1_ASM",
  "-DSHA256_ASM",
  "-DSHA512_ASM",
]

107
crypto_config_linux_aarch64_private_include_dirs = [
C
code4lala 已提交
108 109
  "build_all_generated/linux-aarch64/apps",
  "build_all_generated/linux-aarch64/crypto",
C
code4lala 已提交
110
  "build_all_generated/linux-aarch64/include",
C
code4lala 已提交
111 112
  "build_all_generated/linux-aarch64/include/crypto",
  "build_all_generated/linux-aarch64/include/openssl",
C
code4lala 已提交
113
  "build_all_generated/linux-aarch64/providers/common/include",
C
code4lala 已提交
114 115
  "build_all_generated/linux-aarch64/providers/common/include/prov",
]
C
code4lala 已提交
116 117
crypto_config_linux_aarch64_public_include_dirs =
    [ "build_all_generated/linux-aarch64/include" ]
C
code4lala 已提交
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133

crypto_config_linux_aarch64_cflags = [
  "-DOPENSSL_USE_NODELETE",
  "-fPIC",
  "-pthread",

  "-DECP_NISTZ256_ASM",
  "-DKECCAK1600_ASM",
  "-DOPENSSL_BN_ASM_MONT",
  "-DPOLY1305_ASM",
  "-DSHA1_ASM",
  "-DSHA256_ASM",
  "-DSHA512_ASM",
  "-DVPAES_ASM",
]

134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
crypto_config_darwin64_x86_64_cc_private_include_dirs = [
  "build_all_generated/darwin64-x86_64-cc/apps",
  "build_all_generated/darwin64-x86_64-cc/crypto",
  "build_all_generated/darwin64-x86_64-cc/include",
  "build_all_generated/darwin64-x86_64-cc/include/crypto",
  "build_all_generated/darwin64-x86_64-cc/include/openssl",
  "build_all_generated/darwin64-x86_64-cc/providers/common/include",
  "build_all_generated/darwin64-x86_64-cc/providers/common/include/prov",
]
crypto_config_darwin64_x86_64_cc_public_include_dirs =
    [ "build_all_generated/darwin64-x86_64-cc/include" ]

crypto_config_darwin64_x86_64_cc_cflags = [
  "-fPIC",
  "-DL_ENDIAN",
  "-D_REENTRANT",
  "-DOPENSSL_IA32_SSE2",

  "-DAES_ASM",
  "-DBSAES_ASM",
  "-DCMLL_ASM",
  "-DECP_NISTZ256_ASM",
  "-DGHASH_ASM",
  "-DKECCAK1600_ASM",
  "-DMD5_ASM",
  "-DOPENSSL_BN_ASM_GF2m",
  "-DOPENSSL_BN_ASM_MONT",
  "-DOPENSSL_BN_ASM_MONT5",
  "-DPOLY1305_ASM",
  "-DSHA1_ASM",
  "-DSHA256_ASM",
  "-DSHA512_ASM",
  "-DVPAES_ASM",
  "-DWHIRLPOOL_ASM",
  "-DX25519_ASM",
]

C
code4lala 已提交
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
crypto_config_darwin64_arm64_cc_private_include_dirs = [
  "build_all_generated/darwin64-arm64-cc/apps",
  "build_all_generated/darwin64-arm64-cc/crypto",
  "build_all_generated/darwin64-arm64-cc/include",
  "build_all_generated/darwin64-arm64-cc/include/crypto",
  "build_all_generated/darwin64-arm64-cc/include/openssl",
  "build_all_generated/darwin64-arm64-cc/providers/common/include",
  "build_all_generated/darwin64-arm64-cc/providers/common/include/prov",
]
crypto_config_darwin64_arm64_cc_public_include_dirs =
    [ "build_all_generated/darwin64-arm64-cc/include" ]

crypto_config_darwin64_arm64_cc_cflags = [
  "-DL_ENDIAN",
  "-D_REENTRANT",
  "-fPIC",

  "-DECP_NISTZ256_ASM",
  "-DKECCAK1600_ASM",
  "-DOPENSSL_BN_ASM_MONT",
  "-DPOLY1305_ASM",
  "-DSHA1_ASM",
  "-DSHA256_ASM",
  "-DSHA512_ASM",
  "-DVPAES_ASM",
]

198
crypto_config_linux_x86_64_private_include_dirs = [
C
code4lala 已提交
199 200
  "build_all_generated/linux-x86_64/apps",
  "build_all_generated/linux-x86_64/crypto",
C
code4lala 已提交
201
  "build_all_generated/linux-x86_64/include",
C
code4lala 已提交
202 203
  "build_all_generated/linux-x86_64/include/crypto",
  "build_all_generated/linux-x86_64/include/openssl",
C
code4lala 已提交
204
  "build_all_generated/linux-x86_64/providers/common/include",
C
code4lala 已提交
205 206
  "build_all_generated/linux-x86_64/providers/common/include/prov",
]
C
code4lala 已提交
207 208
crypto_config_linux_x86_64_public_include_dirs =
    [ "build_all_generated/linux-x86_64/include" ]
C
code4lala 已提交
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236

crypto_config_linux_x86_64_cflags = [
  "-DL_ENDIAN",
  "-DOPENSSL_IA32_SSE2",
  "-DOPENSSL_USE_NODELETE",
  "-fPIC",
  "-m64",
  "-pthread",

  "-DAES_ASM",
  "-DBSAES_ASM",
  "-DCMLL_ASM",
  "-DECP_NISTZ256_ASM",
  "-DGHASH_ASM",
  "-DKECCAK1600_ASM",
  "-DMD5_ASM",
  "-DOPENSSL_BN_ASM_GF2m",
  "-DOPENSSL_BN_ASM_MONT",
  "-DOPENSSL_BN_ASM_MONT5",
  "-DPOLY1305_ASM",
  "-DSHA1_ASM",
  "-DSHA256_ASM",
  "-DSHA512_ASM",
  "-DVPAES_ASM",
  "-DWHIRLPOOL_ASM",
  "-DX25519_ASM",
]

237
crypto_config_mingw64_private_include_dirs = [
C
code4lala 已提交
238 239
  "build_all_generated/mingw64/apps",
  "build_all_generated/mingw64/crypto",
C
code4lala 已提交
240
  "build_all_generated/mingw64/include",
C
code4lala 已提交
241 242
  "build_all_generated/mingw64/include/crypto",
  "build_all_generated/mingw64/include/openssl",
C
code4lala 已提交
243
  "build_all_generated/mingw64/providers/common/include",
C
code4lala 已提交
244 245
  "build_all_generated/mingw64/providers/common/include/prov",
]
C
code4lala 已提交
246 247
crypto_config_mingw64_public_include_dirs =
    [ "build_all_generated/mingw64/include" ]
C
code4lala 已提交
248

249
crypto_config_mingw64_cflags = [
C
code4lala 已提交
250
  "-D_MT",
251 252
  "-D_UNICODE",
  "-DL_ENDIAN",
C
code4lala 已提交
253
  "-DOPENSSL_IA32_SSE2",
254 255
  "-DUNICODE",
  "-DWIN32_LEAN_AND_MEAN",
C
code4lala 已提交
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
  "-m64",

  "-DAES_ASM",
  "-DBSAES_ASM",
  "-DCMLL_ASM",
  "-DECP_NISTZ256_ASM",
  "-DGHASH_ASM",
  "-DKECCAK1600_ASM",
  "-DMD5_ASM",
  "-DOPENSSL_BN_ASM_GF2m",
  "-DOPENSSL_BN_ASM_MONT",
  "-DOPENSSL_BN_ASM_MONT5",
  "-DPOLY1305_ASM",
  "-DSHA1_ASM",
  "-DSHA256_ASM",
  "-DSHA512_ASM",
  "-DVPAES_ASM",
  "-DWHIRLPOOL_ASM",
  "-DX25519_ASM",
]

277
print("openssl detecting os now...")
278 279
print("current_cpu = ${current_cpu}")
print("current_os = ${current_os}")
C
code4lala 已提交
280
print("host_os = ${host_os}")
281
print("is_mingw = ${is_mingw}")
282 283 284
crypto_config_current_platform_private_include_dirs = []
crypto_config_current_platform_public_include_dirs = []
crypto_config_current_platform_cflags = []
285
openssl_selected_platform = ""
C
code4lala 已提交
286
if (current_cpu == "arm" && !(current_os == "linux" || host_os == "mac")) {
287
  print("openssl selected linux-armv4")
288
  openssl_selected_platform = "linux-armv4"
C
code4lala 已提交
289 290 291 292
  crypto_config_current_platform_private_include_dirs +=
      crypto_config_linux_armv4_private_include_dirs
  crypto_config_current_platform_public_include_dirs +=
      crypto_config_linux_armv4_public_include_dirs
293
  crypto_config_current_platform_cflags += crypto_config_linux_armv4_cflags
C
code4lala 已提交
294
} else if (current_cpu == "arm64" &&
C
code4lala 已提交
295 296
           (!(current_os == "linux" || host_os == "mac") ||
            current_os == "ohos")) {
297
  print("openssl selected linux-aarch64")
298
  openssl_selected_platform = "linux-aarch64"
C
code4lala 已提交
299 300 301 302
  crypto_config_current_platform_private_include_dirs +=
      crypto_config_linux_aarch64_private_include_dirs
  crypto_config_current_platform_public_include_dirs +=
      crypto_config_linux_aarch64_public_include_dirs
303
  crypto_config_current_platform_cflags += crypto_config_linux_aarch64_cflags
304 305 306 307 308 309 310 311 312 313
} else if ((current_cpu == "x64" || current_cpu == "x86_64") &&
           current_os == "mac") {
  print("openssl selected darwin64-x86_64-cc")
  openssl_selected_platform = "darwin64-x86_64-cc"
  crypto_config_current_platform_private_include_dirs +=
      crypto_config_darwin64_x86_64_cc_private_include_dirs
  crypto_config_current_platform_public_include_dirs +=
      crypto_config_darwin64_x86_64_cc_public_include_dirs
  crypto_config_current_platform_cflags +=
      crypto_config_darwin64_x86_64_cc_cflags
C
code4lala 已提交
314 315 316 317 318 319 320 321 322
} else if (current_cpu == "arm64" && current_os == "mac") {
  print("openssl selected darwin64-arm64-cc")
  openssl_selected_platform = "darwin64-arm64-cc"
  crypto_config_current_platform_private_include_dirs +=
      crypto_config_darwin64_arm64_cc_private_include_dirs
  crypto_config_current_platform_public_include_dirs +=
      crypto_config_darwin64_arm64_cc_public_include_dirs
  crypto_config_current_platform_cflags +=
      crypto_config_darwin64_arm64_cc_cflags
323 324
} else if ((current_cpu == "x64" || current_cpu == "x86_64") &&
           current_os != "mingw") {
325
  print("openssl selected linux-x86_64")
326
  openssl_selected_platform = "linux-x86_64"
C
code4lala 已提交
327 328 329 330
  crypto_config_current_platform_private_include_dirs +=
      crypto_config_linux_x86_64_private_include_dirs
  crypto_config_current_platform_public_include_dirs +=
      crypto_config_linux_x86_64_public_include_dirs
331
  crypto_config_current_platform_cflags += crypto_config_linux_x86_64_cflags
C
code4lala 已提交
332
} else if (is_mingw) {
333
  print("openssl selected mingw64")
334
  openssl_selected_platform = "mingw64"
C
code4lala 已提交
335 336 337 338
  crypto_config_current_platform_private_include_dirs +=
      crypto_config_mingw64_private_include_dirs
  crypto_config_current_platform_public_include_dirs +=
      crypto_config_mingw64_public_include_dirs
339
  crypto_config_current_platform_cflags += crypto_config_mingw64_cflags
C
code4lala 已提交
340
}
341 342
print(
    "openssl detecting os done. openssl_selected_platform = ${openssl_selected_platform}")
C
code4lala 已提交
343

344
config("crypto_config_private") {
C
code4lala 已提交
345 346 347 348
  include_dirs = crypto_config_common_private_include_dirs +
                 crypto_config_current_platform_private_include_dirs
  cflags = crypto_config_common_cflags + crypto_config_current_platform_cflags +
           openssl_internal_cflags
C
code4lala 已提交
349 350 351
}

config("crypto_config_public") {
C
code4lala 已提交
352 353
  include_dirs = crypto_config_common_public_include_dirs +
                 crypto_config_current_platform_public_include_dirs
C
code4lala 已提交
354 355
}

C
code4lala 已提交
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
libcommon_common_sources = [
  "providers/common/der/der_dsa_key.c",
  "providers/common/der/der_dsa_sig.c",
  "providers/common/der/der_ec_key.c",
  "providers/common/der/der_ec_sig.c",
  "providers/common/der/der_ecx_key.c",
  "providers/common/der/der_rsa_key.c",
  "providers/common/provider_ctx.c",
  "providers/common/provider_err.c",
  "providers/implementations/ciphers/ciphercommon.c",
  "providers/implementations/ciphers/ciphercommon_block.c",
  "providers/implementations/ciphers/ciphercommon_ccm.c",
  "providers/implementations/ciphers/ciphercommon_ccm_hw.c",
  "providers/implementations/ciphers/ciphercommon_gcm.c",
  "providers/implementations/ciphers/ciphercommon_gcm_hw.c",
  "providers/implementations/ciphers/ciphercommon_hw.c",
  "providers/implementations/digests/digestcommon.c",
  "ssl/record/tls_pad.c",
]

libcommon_linux_armv4_sources = [
  "build_all_generated/linux-armv4/providers/common/der/der_digests_gen.c",
  "build_all_generated/linux-armv4/providers/common/der/der_dsa_gen.c",
  "build_all_generated/linux-armv4/providers/common/der/der_ec_gen.c",
  "build_all_generated/linux-armv4/providers/common/der/der_ecx_gen.c",
  "build_all_generated/linux-armv4/providers/common/der/der_rsa_gen.c",
  "build_all_generated/linux-armv4/providers/common/der/der_wrap_gen.c",
]

libcommon_linux_aarch64_sources = [
  "build_all_generated/linux-aarch64/providers/common/der/der_digests_gen.c",
  "build_all_generated/linux-aarch64/providers/common/der/der_dsa_gen.c",
  "build_all_generated/linux-aarch64/providers/common/der/der_ec_gen.c",
  "build_all_generated/linux-aarch64/providers/common/der/der_ecx_gen.c",
  "build_all_generated/linux-aarch64/providers/common/der/der_rsa_gen.c",
  "build_all_generated/linux-aarch64/providers/common/der/der_wrap_gen.c",
]

394 395 396 397 398 399 400 401 402
libcommon_darwin64_x86_64_cc_sources = [
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_digests_gen.c",
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_dsa_gen.c",
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_ec_gen.c",
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_ecx_gen.c",
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_rsa_gen.c",
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_wrap_gen.c",
]

C
code4lala 已提交
403 404 405 406 407 408 409 410 411
libcommon_darwin64_arm64_cc_sources = [
  "build_all_generated/darwin64-arm64-cc/providers/common/der/der_digests_gen.c",
  "build_all_generated/darwin64-arm64-cc/providers/common/der/der_dsa_gen.c",
  "build_all_generated/darwin64-arm64-cc/providers/common/der/der_ec_gen.c",
  "build_all_generated/darwin64-arm64-cc/providers/common/der/der_ecx_gen.c",
  "build_all_generated/darwin64-arm64-cc/providers/common/der/der_rsa_gen.c",
  "build_all_generated/darwin64-arm64-cc/providers/common/der/der_wrap_gen.c",
]

C
code4lala 已提交
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430
libcommon_linux_x86_64_sources = [
  "build_all_generated/linux-x86_64/providers/common/der/der_digests_gen.c",
  "build_all_generated/linux-x86_64/providers/common/der/der_dsa_gen.c",
  "build_all_generated/linux-x86_64/providers/common/der/der_ec_gen.c",
  "build_all_generated/linux-x86_64/providers/common/der/der_ecx_gen.c",
  "build_all_generated/linux-x86_64/providers/common/der/der_rsa_gen.c",
  "build_all_generated/linux-x86_64/providers/common/der/der_wrap_gen.c",
]

libcommon_mingw64_sources = [
  "build_all_generated/mingw64/providers/common/der/der_digests_gen.c",
  "build_all_generated/mingw64/providers/common/der/der_dsa_gen.c",
  "build_all_generated/mingw64/providers/common/der/der_ec_gen.c",
  "build_all_generated/mingw64/providers/common/der/der_ecx_gen.c",
  "build_all_generated/mingw64/providers/common/der/der_rsa_gen.c",
  "build_all_generated/mingw64/providers/common/der/der_wrap_gen.c",
]

libdefault_common_sources = [
C
code4lala 已提交
431 432
  "providers/common/bio_prov.c",
  "providers/common/capabilities.c",
C
code4lala 已提交
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
  "providers/common/der/der_rsa_sig.c",
  "providers/common/der/der_sm2_key.c",
  "providers/common/der/der_sm2_sig.c",
  "providers/common/digest_to_nid.c",
  "providers/common/provider_seeding.c",
  "providers/common/provider_util.c",
  "providers/common/securitycheck.c",
  "providers/common/securitycheck_default.c",
  "providers/implementations/asymciphers/rsa_enc.c",
  "providers/implementations/asymciphers/sm2_enc.c",
  "providers/implementations/ciphers/cipher_aes.c",
  "providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c",
  "providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c",
  "providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c",
  "providers/implementations/ciphers/cipher_aes_ccm.c",
  "providers/implementations/ciphers/cipher_aes_ccm_hw.c",
  "providers/implementations/ciphers/cipher_aes_gcm.c",
  "providers/implementations/ciphers/cipher_aes_gcm_hw.c",
  "providers/implementations/ciphers/cipher_aes_hw.c",
  "providers/implementations/ciphers/cipher_aes_ocb.c",
  "providers/implementations/ciphers/cipher_aes_ocb_hw.c",
  "providers/implementations/ciphers/cipher_aes_siv.c",
  "providers/implementations/ciphers/cipher_aes_siv_hw.c",
  "providers/implementations/ciphers/cipher_aes_wrp.c",
  "providers/implementations/ciphers/cipher_aes_xts.c",
  "providers/implementations/ciphers/cipher_aes_xts_fips.c",
  "providers/implementations/ciphers/cipher_aes_xts_hw.c",
  "providers/implementations/ciphers/cipher_aria.c",
  "providers/implementations/ciphers/cipher_aria_ccm.c",
  "providers/implementations/ciphers/cipher_aria_ccm_hw.c",
  "providers/implementations/ciphers/cipher_aria_gcm.c",
  "providers/implementations/ciphers/cipher_aria_gcm_hw.c",
  "providers/implementations/ciphers/cipher_aria_hw.c",
  "providers/implementations/ciphers/cipher_camellia.c",
  "providers/implementations/ciphers/cipher_camellia_hw.c",
  "providers/implementations/ciphers/cipher_chacha20.c",
  "providers/implementations/ciphers/cipher_chacha20_hw.c",
  "providers/implementations/ciphers/cipher_chacha20_poly1305.c",
  "providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c",
  "providers/implementations/ciphers/cipher_cts.c",
  "providers/implementations/ciphers/cipher_null.c",
  "providers/implementations/ciphers/cipher_sm4.c",
  "providers/implementations/ciphers/cipher_sm4_hw.c",
  "providers/implementations/ciphers/cipher_tdes.c",
  "providers/implementations/ciphers/cipher_tdes_common.c",
  "providers/implementations/ciphers/cipher_tdes_default.c",
  "providers/implementations/ciphers/cipher_tdes_default_hw.c",
  "providers/implementations/ciphers/cipher_tdes_hw.c",
  "providers/implementations/ciphers/cipher_tdes_wrap.c",
  "providers/implementations/ciphers/cipher_tdes_wrap_hw.c",
  "providers/implementations/digests/blake2_prov.c",
  "providers/implementations/digests/blake2b_prov.c",
  "providers/implementations/digests/blake2s_prov.c",
  "providers/implementations/digests/md5_prov.c",
  "providers/implementations/digests/md5_sha1_prov.c",
  "providers/implementations/digests/null_prov.c",
  "providers/implementations/digests/ripemd_prov.c",
  "providers/implementations/digests/sha2_prov.c",
  "providers/implementations/digests/sha3_prov.c",
  "providers/implementations/digests/sm3_prov.c",
  "providers/implementations/encode_decode/decode_der2key.c",
  "providers/implementations/encode_decode/decode_epki2pki.c",
  "providers/implementations/encode_decode/decode_msblob2key.c",
  "providers/implementations/encode_decode/decode_pem2der.c",
  "providers/implementations/encode_decode/decode_pvk2key.c",
  "providers/implementations/encode_decode/decode_spki2typespki.c",
  "providers/implementations/encode_decode/encode_key2any.c",
  "providers/implementations/encode_decode/encode_key2blob.c",
  "providers/implementations/encode_decode/encode_key2ms.c",
  "providers/implementations/encode_decode/encode_key2text.c",
  "providers/implementations/encode_decode/endecoder_common.c",
  "providers/implementations/exchange/dh_exch.c",
  "providers/implementations/exchange/ecdh_exch.c",
  "providers/implementations/exchange/ecx_exch.c",
  "providers/implementations/exchange/kdf_exch.c",
  "providers/implementations/kdfs/hkdf.c",
  "providers/implementations/kdfs/kbkdf.c",
  "providers/implementations/kdfs/krb5kdf.c",
  "providers/implementations/kdfs/pbkdf2.c",
  "providers/implementations/kdfs/pbkdf2_fips.c",
  "providers/implementations/kdfs/pkcs12kdf.c",
  "providers/implementations/kdfs/scrypt.c",
  "providers/implementations/kdfs/sshkdf.c",
  "providers/implementations/kdfs/sskdf.c",
  "providers/implementations/kdfs/tls1_prf.c",
  "providers/implementations/kdfs/x942kdf.c",
  "providers/implementations/kem/rsa_kem.c",
  "providers/implementations/keymgmt/dh_kmgmt.c",
  "providers/implementations/keymgmt/dsa_kmgmt.c",
  "providers/implementations/keymgmt/ec_kmgmt.c",
  "providers/implementations/keymgmt/ecx_kmgmt.c",
  "providers/implementations/keymgmt/kdf_legacy_kmgmt.c",
  "providers/implementations/keymgmt/mac_legacy_kmgmt.c",
  "providers/implementations/keymgmt/rsa_kmgmt.c",
  "providers/implementations/macs/blake2b_mac.c",
  "providers/implementations/macs/blake2s_mac.c",
  "providers/implementations/macs/cmac_prov.c",
  "providers/implementations/macs/gmac_prov.c",
  "providers/implementations/macs/hmac_prov.c",
  "providers/implementations/macs/kmac_prov.c",
  "providers/implementations/macs/poly1305_prov.c",
  "providers/implementations/macs/siphash_prov.c",
  "providers/implementations/rands/crngt.c",
  "providers/implementations/rands/drbg.c",
  "providers/implementations/rands/drbg_ctr.c",
  "providers/implementations/rands/drbg_hash.c",
  "providers/implementations/rands/drbg_hmac.c",
  "providers/implementations/rands/seed_src.c",
  "providers/implementations/rands/seeding/rand_cpu_x86.c",
  "providers/implementations/rands/seeding/rand_tsc.c",
  "providers/implementations/rands/seeding/rand_unix.c",
  "providers/implementations/rands/seeding/rand_win.c",
C
code4lala 已提交
545
  "providers/implementations/rands/test_rng.c",
C
code4lala 已提交
546 547 548 549 550 551 552 553 554 555 556
  "providers/implementations/signature/dsa_sig.c",
  "providers/implementations/signature/ecdsa_sig.c",
  "providers/implementations/signature/eddsa_sig.c",
  "providers/implementations/signature/mac_legacy_sig.c",
  "providers/implementations/signature/rsa_sig.c",
  "providers/implementations/signature/sm2_sig.c",
  "providers/implementations/storemgmt/file_store.c",
  "providers/implementations/storemgmt/file_store_any2obj.c",
  "ssl/s3_cbc.c",
]

C
code4lala 已提交
557 558
libdefault_linux_armv4_sources =
    [ "build_all_generated/linux-armv4/providers/common/der/der_sm2_gen.c" ]
C
code4lala 已提交
559

C
code4lala 已提交
560 561
libdefault_linux_aarch64_sources =
    [ "build_all_generated/linux-aarch64/providers/common/der/der_sm2_gen.c" ]
C
code4lala 已提交
562

563 564 565 566
libdefault_darwin64_x86_64_cc_sources = [
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_sm2_gen.c",
]

C
code4lala 已提交
567 568 569 570
libdefault_darwin64_arm64_cc_sources = [
  "build_all_generated/darwin64-x86_64-cc/providers/common/der/der_sm2_gen.c",
]

C
code4lala 已提交
571 572
libdefault_linux_x86_64_sources =
    [ "build_all_generated/linux-x86_64/providers/common/der/der_sm2_gen.c" ]
C
code4lala 已提交
573

C
code4lala 已提交
574 575
libdefault_mingw64_sources =
    [ "build_all_generated/mingw64/providers/common/der/der_sm2_gen.c" ]
C
code4lala 已提交
576

C
code4lala 已提交
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
ohos_source_set("crypto_source") {
  sources = [
    "crypto/aes/aes_cfb.c",
    "crypto/aes/aes_ecb.c",
    "crypto/aes/aes_ige.c",
    "crypto/aes/aes_misc.c",
    "crypto/aes/aes_ofb.c",
    "crypto/aes/aes_wrap.c",
    "crypto/aria/aria.c",
    "crypto/asn1/a_bitstr.c",
    "crypto/asn1/a_d2i_fp.c",
    "crypto/asn1/a_digest.c",
    "crypto/asn1/a_dup.c",
    "crypto/asn1/a_gentm.c",
    "crypto/asn1/a_i2d_fp.c",
    "crypto/asn1/a_int.c",
    "crypto/asn1/a_mbstr.c",
    "crypto/asn1/a_object.c",
    "crypto/asn1/a_octet.c",
    "crypto/asn1/a_print.c",
    "crypto/asn1/a_sign.c",
    "crypto/asn1/a_strex.c",
    "crypto/asn1/a_strnid.c",
    "crypto/asn1/a_time.c",
    "crypto/asn1/a_type.c",
    "crypto/asn1/a_utctm.c",
    "crypto/asn1/a_utf8.c",
    "crypto/asn1/a_verify.c",
    "crypto/asn1/ameth_lib.c",
    "crypto/asn1/asn1_err.c",
    "crypto/asn1/asn1_gen.c",
    "crypto/asn1/asn1_item_list.c",
    "crypto/asn1/asn1_lib.c",
C
code4lala 已提交
610
    "crypto/asn1/asn1_parse.c",
C
code4lala 已提交
611 612 613 614 615 616
    "crypto/asn1/asn_mime.c",
    "crypto/asn1/asn_moid.c",
    "crypto/asn1/asn_mstbl.c",
    "crypto/asn1/asn_pack.c",
    "crypto/asn1/bio_asn1.c",
    "crypto/asn1/bio_ndef.c",
C
code4lala 已提交
617
    "crypto/asn1/d2i_param.c",
C
code4lala 已提交
618 619 620 621 622
    "crypto/asn1/d2i_pr.c",
    "crypto/asn1/d2i_pu.c",
    "crypto/asn1/evp_asn1.c",
    "crypto/asn1/f_int.c",
    "crypto/asn1/f_string.c",
C
code4lala 已提交
623
    "crypto/asn1/i2d_evp.c",
C
code4lala 已提交
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649
    "crypto/asn1/n_pkey.c",
    "crypto/asn1/nsseq.c",
    "crypto/asn1/p5_pbe.c",
    "crypto/asn1/p5_pbev2.c",
    "crypto/asn1/p5_scrypt.c",
    "crypto/asn1/p8_pkey.c",
    "crypto/asn1/t_bitst.c",
    "crypto/asn1/t_pkey.c",
    "crypto/asn1/t_spki.c",
    "crypto/asn1/tasn_dec.c",
    "crypto/asn1/tasn_enc.c",
    "crypto/asn1/tasn_fre.c",
    "crypto/asn1/tasn_new.c",
    "crypto/asn1/tasn_prn.c",
    "crypto/asn1/tasn_scn.c",
    "crypto/asn1/tasn_typ.c",
    "crypto/asn1/tasn_utl.c",
    "crypto/asn1/x_algor.c",
    "crypto/asn1/x_bignum.c",
    "crypto/asn1/x_info.c",
    "crypto/asn1/x_int64.c",
    "crypto/asn1/x_long.c",
    "crypto/asn1/x_pkey.c",
    "crypto/asn1/x_sig.c",
    "crypto/asn1/x_spki.c",
    "crypto/asn1/x_val.c",
C
code4lala 已提交
650
    "crypto/asn1_dsa.c",
C
code4lala 已提交
651 652 653 654 655 656
    "crypto/async/arch/async_null.c",
    "crypto/async/arch/async_posix.c",
    "crypto/async/arch/async_win.c",
    "crypto/async/async.c",
    "crypto/async/async_err.c",
    "crypto/async/async_wait.c",
C
code4lala 已提交
657 658 659 660 661
    "crypto/bf/bf_cfb64.c",
    "crypto/bf/bf_ecb.c",
    "crypto/bf/bf_enc.c",
    "crypto/bf/bf_ofb64.c",
    "crypto/bf/bf_skey.c",
C
code4lala 已提交
662 663 664 665
    "crypto/bio/bf_buff.c",
    "crypto/bio/bf_lbuf.c",
    "crypto/bio/bf_nbio.c",
    "crypto/bio/bf_null.c",
C
code4lala 已提交
666 667 668
    "crypto/bio/bf_prefix.c",
    "crypto/bio/bf_readbuff.c",
    "crypto/bio/bio_addr.c",
C
code4lala 已提交
669
    "crypto/bio/bio_cb.c",
C
code4lala 已提交
670
    "crypto/bio/bio_dump.c",
C
code4lala 已提交
671 672 673
    "crypto/bio/bio_err.c",
    "crypto/bio/bio_lib.c",
    "crypto/bio/bio_meth.c",
C
code4lala 已提交
674 675 676
    "crypto/bio/bio_print.c",
    "crypto/bio/bio_sock.c",
    "crypto/bio/bio_sock2.c",
C
code4lala 已提交
677 678 679
    "crypto/bio/bss_acpt.c",
    "crypto/bio/bss_bio.c",
    "crypto/bio/bss_conn.c",
C
code4lala 已提交
680
    "crypto/bio/bss_core.c",
C
code4lala 已提交
681 682 683 684 685 686 687
    "crypto/bio/bss_dgram.c",
    "crypto/bio/bss_fd.c",
    "crypto/bio/bss_file.c",
    "crypto/bio/bss_log.c",
    "crypto/bio/bss_mem.c",
    "crypto/bio/bss_null.c",
    "crypto/bio/bss_sock.c",
C
code4lala 已提交
688
    "crypto/bio/ossl_core_bio.c",
C
code4lala 已提交
689 690 691
    "crypto/bn/bn_add.c",
    "crypto/bn/bn_blind.c",
    "crypto/bn/bn_const.c",
C
code4lala 已提交
692
    "crypto/bn/bn_conv.c",
C
code4lala 已提交
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
    "crypto/bn/bn_ctx.c",
    "crypto/bn/bn_depr.c",
    "crypto/bn/bn_dh.c",
    "crypto/bn/bn_div.c",
    "crypto/bn/bn_err.c",
    "crypto/bn/bn_exp.c",
    "crypto/bn/bn_exp2.c",
    "crypto/bn/bn_gcd.c",
    "crypto/bn/bn_gf2m.c",
    "crypto/bn/bn_intern.c",
    "crypto/bn/bn_kron.c",
    "crypto/bn/bn_lib.c",
    "crypto/bn/bn_mod.c",
    "crypto/bn/bn_mont.c",
    "crypto/bn/bn_mpi.c",
    "crypto/bn/bn_mul.c",
    "crypto/bn/bn_nist.c",
    "crypto/bn/bn_prime.c",
    "crypto/bn/bn_print.c",
    "crypto/bn/bn_rand.c",
    "crypto/bn/bn_recp.c",
C
code4lala 已提交
714
    "crypto/bn/bn_rsa_fips186_4.c",
C
code4lala 已提交
715 716 717 718 719 720
    "crypto/bn/bn_shift.c",
    "crypto/bn/bn_sqr.c",
    "crypto/bn/bn_sqrt.c",
    "crypto/bn/bn_srp.c",
    "crypto/bn/bn_word.c",
    "crypto/bn/bn_x931p.c",
721
    "crypto/bn/rsa_sup_mul.c",
C
code4lala 已提交
722
    "crypto/bsearch.c",
C
code4lala 已提交
723 724
    "crypto/buffer/buf_err.c",
    "crypto/buffer/buffer.c",
C
code4lala 已提交
725 726 727 728 729 730 731 732 733 734
    "crypto/camellia/cmll_cfb.c",
    "crypto/camellia/cmll_ctr.c",
    "crypto/camellia/cmll_ecb.c",
    "crypto/camellia/cmll_misc.c",
    "crypto/camellia/cmll_ofb.c",
    "crypto/cast/c_cfb64.c",
    "crypto/cast/c_ecb.c",
    "crypto/cast/c_enc.c",
    "crypto/cast/c_ofb64.c",
    "crypto/cast/c_skey.c",
C
code4lala 已提交
735
    "crypto/cmac/cmac.c",
C
code4lala 已提交
736 737 738 739 740 741 742 743 744 745 746 747
    "crypto/cmp/cmp_asn.c",
    "crypto/cmp/cmp_client.c",
    "crypto/cmp/cmp_ctx.c",
    "crypto/cmp/cmp_err.c",
    "crypto/cmp/cmp_hdr.c",
    "crypto/cmp/cmp_http.c",
    "crypto/cmp/cmp_msg.c",
    "crypto/cmp/cmp_protect.c",
    "crypto/cmp/cmp_server.c",
    "crypto/cmp/cmp_status.c",
    "crypto/cmp/cmp_util.c",
    "crypto/cmp/cmp_vfy.c",
C
code4lala 已提交
748 749 750 751
    "crypto/cms/cms_asn1.c",
    "crypto/cms/cms_att.c",
    "crypto/cms/cms_cd.c",
    "crypto/cms/cms_dd.c",
C
code4lala 已提交
752 753
    "crypto/cms/cms_dh.c",
    "crypto/cms/cms_ec.c",
C
code4lala 已提交
754 755 756 757 758 759 760 761
    "crypto/cms/cms_enc.c",
    "crypto/cms/cms_env.c",
    "crypto/cms/cms_err.c",
    "crypto/cms/cms_ess.c",
    "crypto/cms/cms_io.c",
    "crypto/cms/cms_kari.c",
    "crypto/cms/cms_lib.c",
    "crypto/cms/cms_pwri.c",
C
code4lala 已提交
762
    "crypto/cms/cms_rsa.c",
C
code4lala 已提交
763 764 765 766 767 768 769 770 771 772 773 774 775
    "crypto/cms/cms_sd.c",
    "crypto/cms/cms_smime.c",
    "crypto/comp/c_zlib.c",
    "crypto/comp/comp_err.c",
    "crypto/comp/comp_lib.c",
    "crypto/conf/conf_api.c",
    "crypto/conf/conf_def.c",
    "crypto/conf/conf_err.c",
    "crypto/conf/conf_lib.c",
    "crypto/conf/conf_mall.c",
    "crypto/conf/conf_mod.c",
    "crypto/conf/conf_sap.c",
    "crypto/conf/conf_ssl.c",
C
code4lala 已提交
776 777 778 779 780 781
    "crypto/context.c",
    "crypto/core_algorithm.c",
    "crypto/core_fetch.c",
    "crypto/core_namemap.c",
    "crypto/cpt_err.c",
    "crypto/cpuid.c",
C
code4lala 已提交
782 783 784 785
    "crypto/crmf/crmf_asn.c",
    "crypto/crmf/crmf_err.c",
    "crypto/crmf/crmf_lib.c",
    "crypto/crmf/crmf_pbm.c",
C
code4lala 已提交
786
    "crypto/cryptlib.c",
C
code4lala 已提交
787 788 789 790 791 792 793 794 795 796
    "crypto/ct/ct_b64.c",
    "crypto/ct/ct_err.c",
    "crypto/ct/ct_log.c",
    "crypto/ct/ct_oct.c",
    "crypto/ct/ct_policy.c",
    "crypto/ct/ct_prn.c",
    "crypto/ct/ct_sct.c",
    "crypto/ct/ct_sct_ctx.c",
    "crypto/ct/ct_vfy.c",
    "crypto/ct/ct_x509v3.c",
C
code4lala 已提交
797 798 799
    "crypto/ctype.c",
    "crypto/cversion.c",
    "crypto/der_writer.c",
C
code4lala 已提交
800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820
    "crypto/des/cbc_cksm.c",
    "crypto/des/cbc_enc.c",
    "crypto/des/cfb64ede.c",
    "crypto/des/cfb64enc.c",
    "crypto/des/cfb_enc.c",
    "crypto/des/des_enc.c",
    "crypto/des/ecb3_enc.c",
    "crypto/des/ecb_enc.c",
    "crypto/des/fcrypt.c",
    "crypto/des/fcrypt_b.c",
    "crypto/des/ofb64ede.c",
    "crypto/des/ofb64enc.c",
    "crypto/des/ofb_enc.c",
    "crypto/des/pcbc_enc.c",
    "crypto/des/qud_cksm.c",
    "crypto/des/rand_key.c",
    "crypto/des/set_key.c",
    "crypto/des/str2key.c",
    "crypto/des/xcbc_enc.c",
    "crypto/dh/dh_ameth.c",
    "crypto/dh/dh_asn1.c",
C
code4lala 已提交
821
    "crypto/dh/dh_backend.c",
C
code4lala 已提交
822 823 824 825
    "crypto/dh/dh_check.c",
    "crypto/dh/dh_depr.c",
    "crypto/dh/dh_err.c",
    "crypto/dh/dh_gen.c",
C
code4lala 已提交
826
    "crypto/dh/dh_group_params.c",
C
code4lala 已提交
827 828 829 830 831 832 833 834 835
    "crypto/dh/dh_kdf.c",
    "crypto/dh/dh_key.c",
    "crypto/dh/dh_lib.c",
    "crypto/dh/dh_meth.c",
    "crypto/dh/dh_pmeth.c",
    "crypto/dh/dh_prn.c",
    "crypto/dh/dh_rfc5114.c",
    "crypto/dsa/dsa_ameth.c",
    "crypto/dsa/dsa_asn1.c",
C
code4lala 已提交
836 837
    "crypto/dsa/dsa_backend.c",
    "crypto/dsa/dsa_check.c",
C
code4lala 已提交
838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855
    "crypto/dsa/dsa_depr.c",
    "crypto/dsa/dsa_err.c",
    "crypto/dsa/dsa_gen.c",
    "crypto/dsa/dsa_key.c",
    "crypto/dsa/dsa_lib.c",
    "crypto/dsa/dsa_meth.c",
    "crypto/dsa/dsa_ossl.c",
    "crypto/dsa/dsa_pmeth.c",
    "crypto/dsa/dsa_prn.c",
    "crypto/dsa/dsa_sign.c",
    "crypto/dsa/dsa_vrf.c",
    "crypto/dso/dso_dl.c",
    "crypto/dso/dso_dlfcn.c",
    "crypto/dso/dso_err.c",
    "crypto/dso/dso_lib.c",
    "crypto/dso/dso_openssl.c",
    "crypto/dso/dso_vms.c",
    "crypto/dso/dso_win32.c",
C
code4lala 已提交
856 857
    "crypto/ebcdic.c",
    "crypto/ec/curve25519.c",
C
code4lala 已提交
858 859
    "crypto/ec/curve448/arch_32/f_impl32.c",
    "crypto/ec/curve448/arch_64/f_impl64.c",
C
code4lala 已提交
860 861 862 863 864 865 866 867 868
    "crypto/ec/curve448/curve448.c",
    "crypto/ec/curve448/curve448_tables.c",
    "crypto/ec/curve448/eddsa.c",
    "crypto/ec/curve448/f_generic.c",
    "crypto/ec/curve448/scalar.c",
    "crypto/ec/ec2_oct.c",
    "crypto/ec/ec2_smpl.c",
    "crypto/ec/ec_ameth.c",
    "crypto/ec/ec_asn1.c",
C
code4lala 已提交
869
    "crypto/ec/ec_backend.c",
C
code4lala 已提交
870 871 872
    "crypto/ec/ec_check.c",
    "crypto/ec/ec_curve.c",
    "crypto/ec/ec_cvt.c",
C
code4lala 已提交
873
    "crypto/ec/ec_deprecated.c",
C
code4lala 已提交
874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
    "crypto/ec/ec_err.c",
    "crypto/ec/ec_key.c",
    "crypto/ec/ec_kmeth.c",
    "crypto/ec/ec_lib.c",
    "crypto/ec/ec_mult.c",
    "crypto/ec/ec_oct.c",
    "crypto/ec/ec_pmeth.c",
    "crypto/ec/ec_print.c",
    "crypto/ec/ecdh_kdf.c",
    "crypto/ec/ecdh_ossl.c",
    "crypto/ec/ecdsa_ossl.c",
    "crypto/ec/ecdsa_sign.c",
    "crypto/ec/ecdsa_vrf.c",
    "crypto/ec/eck_prn.c",
    "crypto/ec/ecp_mont.c",
    "crypto/ec/ecp_nist.c",
C
code4lala 已提交
890
    "crypto/ec/ecp_nistz256.c",
C
code4lala 已提交
891 892
    "crypto/ec/ecp_oct.c",
    "crypto/ec/ecp_smpl.c",
C
code4lala 已提交
893 894
    "crypto/ec/ecx_backend.c",
    "crypto/ec/ecx_key.c",
C
code4lala 已提交
895
    "crypto/ec/ecx_meth.c",
C
code4lala 已提交
896 897 898 899 900 901 902 903
    "crypto/encode_decode/decoder_err.c",
    "crypto/encode_decode/decoder_lib.c",
    "crypto/encode_decode/decoder_meth.c",
    "crypto/encode_decode/decoder_pkey.c",
    "crypto/encode_decode/encoder_err.c",
    "crypto/encode_decode/encoder_lib.c",
    "crypto/encode_decode/encoder_meth.c",
    "crypto/encode_decode/encoder_pkey.c",
C
code4lala 已提交
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927
    "crypto/engine/eng_all.c",
    "crypto/engine/eng_cnf.c",
    "crypto/engine/eng_ctrl.c",
    "crypto/engine/eng_dyn.c",
    "crypto/engine/eng_err.c",
    "crypto/engine/eng_fat.c",
    "crypto/engine/eng_init.c",
    "crypto/engine/eng_lib.c",
    "crypto/engine/eng_list.c",
    "crypto/engine/eng_openssl.c",
    "crypto/engine/eng_pkey.c",
    "crypto/engine/eng_rdrand.c",
    "crypto/engine/eng_table.c",
    "crypto/engine/tb_asnmth.c",
    "crypto/engine/tb_cipher.c",
    "crypto/engine/tb_dh.c",
    "crypto/engine/tb_digest.c",
    "crypto/engine/tb_dsa.c",
    "crypto/engine/tb_eckey.c",
    "crypto/engine/tb_pkmeth.c",
    "crypto/engine/tb_rand.c",
    "crypto/engine/tb_rsa.c",
    "crypto/err/err.c",
    "crypto/err/err_all.c",
C
code4lala 已提交
928 929
    "crypto/err/err_all_legacy.c",
    "crypto/err/err_blocks.c",
C
code4lala 已提交
930
    "crypto/err/err_prn.c",
C
code4lala 已提交
931 932 933 934
    "crypto/ess/ess_asn1.c",
    "crypto/ess/ess_err.c",
    "crypto/ess/ess_lib.c",
    "crypto/evp/asymcipher.c",
C
code4lala 已提交
935 936 937 938 939 940 941
    "crypto/evp/bio_b64.c",
    "crypto/evp/bio_enc.c",
    "crypto/evp/bio_md.c",
    "crypto/evp/bio_ok.c",
    "crypto/evp/c_allc.c",
    "crypto/evp/c_alld.c",
    "crypto/evp/cmeth_lib.c",
C
code4lala 已提交
942 943 944
    "crypto/evp/ctrl_params_translate.c",
    "crypto/evp/dh_ctrl.c",
    "crypto/evp/dh_support.c",
C
code4lala 已提交
945
    "crypto/evp/digest.c",
C
code4lala 已提交
946
    "crypto/evp/dsa_ctrl.c",
C
code4lala 已提交
947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966
    "crypto/evp/e_aes.c",
    "crypto/evp/e_aes_cbc_hmac_sha1.c",
    "crypto/evp/e_aes_cbc_hmac_sha256.c",
    "crypto/evp/e_aria.c",
    "crypto/evp/e_bf.c",
    "crypto/evp/e_camellia.c",
    "crypto/evp/e_cast.c",
    "crypto/evp/e_chacha20_poly1305.c",
    "crypto/evp/e_des.c",
    "crypto/evp/e_des3.c",
    "crypto/evp/e_idea.c",
    "crypto/evp/e_null.c",
    "crypto/evp/e_old.c",
    "crypto/evp/e_rc2.c",
    "crypto/evp/e_rc4.c",
    "crypto/evp/e_rc4_hmac_md5.c",
    "crypto/evp/e_rc5.c",
    "crypto/evp/e_seed.c",
    "crypto/evp/e_sm4.c",
    "crypto/evp/e_xcbc_d.c",
C
code4lala 已提交
967 968
    "crypto/evp/ec_ctrl.c",
    "crypto/evp/ec_support.c",
C
code4lala 已提交
969 970 971 972
    "crypto/evp/encode.c",
    "crypto/evp/evp_cnf.c",
    "crypto/evp/evp_enc.c",
    "crypto/evp/evp_err.c",
C
code4lala 已提交
973
    "crypto/evp/evp_fetch.c",
C
code4lala 已提交
974 975 976 977
    "crypto/evp/evp_key.c",
    "crypto/evp/evp_lib.c",
    "crypto/evp/evp_pbe.c",
    "crypto/evp/evp_pkey.c",
C
code4lala 已提交
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993
    "crypto/evp/evp_rand.c",
    "crypto/evp/evp_utils.c",
    "crypto/evp/exchange.c",
    "crypto/evp/kdf_lib.c",
    "crypto/evp/kdf_meth.c",
    "crypto/evp/kem.c",
    "crypto/evp/keymgmt_lib.c",
    "crypto/evp/keymgmt_meth.c",
    "crypto/evp/legacy_blake2.c",
    "crypto/evp/legacy_md4.c",
    "crypto/evp/legacy_md5.c",
    "crypto/evp/legacy_md5_sha1.c",
    "crypto/evp/legacy_mdc2.c",
    "crypto/evp/legacy_ripemd.c",
    "crypto/evp/legacy_sha.c",
    "crypto/evp/legacy_wp.c",
C
code4lala 已提交
994 995
    "crypto/evp/m_null.c",
    "crypto/evp/m_sigver.c",
C
code4lala 已提交
996 997
    "crypto/evp/mac_lib.c",
    "crypto/evp/mac_meth.c",
C
code4lala 已提交
998 999 1000 1001 1002
    "crypto/evp/names.c",
    "crypto/evp/p5_crpt.c",
    "crypto/evp/p5_crpt2.c",
    "crypto/evp/p_dec.c",
    "crypto/evp/p_enc.c",
C
code4lala 已提交
1003
    "crypto/evp/p_legacy.c",
C
code4lala 已提交
1004 1005 1006 1007 1008 1009
    "crypto/evp/p_lib.c",
    "crypto/evp/p_open.c",
    "crypto/evp/p_seal.c",
    "crypto/evp/p_sign.c",
    "crypto/evp/p_verify.c",
    "crypto/evp/pbe_scrypt.c",
C
code4lala 已提交
1010
    "crypto/evp/pmeth_check.c",
C
code4lala 已提交
1011 1012
    "crypto/evp/pmeth_gn.c",
    "crypto/evp/pmeth_lib.c",
C
code4lala 已提交
1013
    "crypto/evp/signature.c",
C
code4lala 已提交
1014
    "crypto/ex_data.c",
C
code4lala 已提交
1015 1016 1017 1018 1019 1020 1021
    "crypto/ffc/ffc_backend.c",
    "crypto/ffc/ffc_dh.c",
    "crypto/ffc/ffc_key_generate.c",
    "crypto/ffc/ffc_key_validate.c",
    "crypto/ffc/ffc_params.c",
    "crypto/ffc/ffc_params_generate.c",
    "crypto/ffc/ffc_params_validate.c",
C
code4lala 已提交
1022
    "crypto/getenv.c",
C
code4lala 已提交
1023
    "crypto/hmac/hmac.c",
C
code4lala 已提交
1024 1025 1026
    "crypto/http/http_client.c",
    "crypto/http/http_err.c",
    "crypto/http/http_lib.c",
C
code4lala 已提交
1027 1028 1029 1030 1031
    "crypto/idea/i_cbc.c",
    "crypto/idea/i_cfb64.c",
    "crypto/idea/i_ecb.c",
    "crypto/idea/i_ofb64.c",
    "crypto/idea/i_skey.c",
C
code4lala 已提交
1032 1033 1034
    "crypto/info.c",
    "crypto/init.c",
    "crypto/initthread.c",
C
code4lala 已提交
1035 1036 1037
    "crypto/kdf/kdf_err.c",
    "crypto/lhash/lh_stats.c",
    "crypto/lhash/lhash.c",
C
code4lala 已提交
1038 1039 1040 1041
    "crypto/md4/md4_dgst.c",
    "crypto/md4/md4_one.c",
    "crypto/md5/md5_dgst.c",
    "crypto/md5/md5_one.c",
C
code4lala 已提交
1042
    "crypto/md5/md5_sha1.c",
C
code4lala 已提交
1043 1044
    "crypto/mdc2/mdc2_one.c",
    "crypto/mdc2/mdc2dgst.c",
C
code4lala 已提交
1045 1046
    "crypto/mem.c",
    "crypto/mem_sec.c",
C
code4lala 已提交
1047 1048 1049 1050 1051 1052 1053 1054
    "crypto/modes/cbc128.c",
    "crypto/modes/ccm128.c",
    "crypto/modes/cfb128.c",
    "crypto/modes/ctr128.c",
    "crypto/modes/cts128.c",
    "crypto/modes/gcm128.c",
    "crypto/modes/ocb128.c",
    "crypto/modes/ofb128.c",
C
code4lala 已提交
1055
    "crypto/modes/siv128.c",
C
code4lala 已提交
1056 1057
    "crypto/modes/wrap128.c",
    "crypto/modes/xts128.c",
C
code4lala 已提交
1058 1059 1060 1061 1062
    "crypto/o_dir.c",
    "crypto/o_fopen.c",
    "crypto/o_init.c",
    "crypto/o_str.c",
    "crypto/o_time.c",
C
code4lala 已提交
1063 1064 1065 1066 1067 1068 1069 1070 1071
    "crypto/objects/o_names.c",
    "crypto/objects/obj_dat.c",
    "crypto/objects/obj_err.c",
    "crypto/objects/obj_lib.c",
    "crypto/objects/obj_xref.c",
    "crypto/ocsp/ocsp_asn.c",
    "crypto/ocsp/ocsp_cl.c",
    "crypto/ocsp/ocsp_err.c",
    "crypto/ocsp/ocsp_ext.c",
C
code4lala 已提交
1072
    "crypto/ocsp/ocsp_http.c",
C
code4lala 已提交
1073 1074 1075 1076 1077
    "crypto/ocsp/ocsp_lib.c",
    "crypto/ocsp/ocsp_prn.c",
    "crypto/ocsp/ocsp_srv.c",
    "crypto/ocsp/ocsp_vfy.c",
    "crypto/ocsp/v3_ocsp.c",
C
code4lala 已提交
1078 1079 1080 1081 1082 1083 1084
    "crypto/packet.c",
    "crypto/param_build.c",
    "crypto/param_build_set.c",
    "crypto/params.c",
    "crypto/params_dup.c",
    "crypto/params_from_text.c",
    "crypto/passphrase.c",
C
code4lala 已提交
1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
    "crypto/pem/pem_all.c",
    "crypto/pem/pem_err.c",
    "crypto/pem/pem_info.c",
    "crypto/pem/pem_lib.c",
    "crypto/pem/pem_oth.c",
    "crypto/pem/pem_pk8.c",
    "crypto/pem/pem_pkey.c",
    "crypto/pem/pem_sign.c",
    "crypto/pem/pem_x509.c",
    "crypto/pem/pem_xaux.c",
    "crypto/pem/pvkfmt.c",
    "crypto/pkcs12/p12_add.c",
    "crypto/pkcs12/p12_asn.c",
    "crypto/pkcs12/p12_attr.c",
    "crypto/pkcs12/p12_crpt.c",
    "crypto/pkcs12/p12_crt.c",
    "crypto/pkcs12/p12_decr.c",
    "crypto/pkcs12/p12_init.c",
    "crypto/pkcs12/p12_key.c",
    "crypto/pkcs12/p12_kiss.c",
    "crypto/pkcs12/p12_mutl.c",
    "crypto/pkcs12/p12_npas.c",
    "crypto/pkcs12/p12_p8d.c",
    "crypto/pkcs12/p12_p8e.c",
    "crypto/pkcs12/p12_sbag.c",
    "crypto/pkcs12/p12_utl.c",
    "crypto/pkcs12/pk12err.c",
    "crypto/pkcs7/bio_pk7.c",
    "crypto/pkcs7/pk7_asn1.c",
    "crypto/pkcs7/pk7_attr.c",
    "crypto/pkcs7/pk7_doit.c",
    "crypto/pkcs7/pk7_lib.c",
    "crypto/pkcs7/pk7_mime.c",
    "crypto/pkcs7/pk7_smime.c",
    "crypto/pkcs7/pkcs7err.c",
    "crypto/poly1305/poly1305.c",
C
code4lala 已提交
1121 1122 1123 1124 1125 1126
    "crypto/property/defn_cache.c",
    "crypto/property/property.c",
    "crypto/property/property_err.c",
    "crypto/property/property_parse.c",
    "crypto/property/property_query.c",
    "crypto/property/property_string.c",
C
code4lala 已提交
1127 1128 1129 1130 1131 1132
    "crypto/provider.c",
    "crypto/provider_child.c",
    "crypto/provider_conf.c",
    "crypto/provider_core.c",
    "crypto/provider_predefined.c",
    "crypto/punycode.c",
C
code4lala 已提交
1133 1134
    "crypto/rand/prov_seed.c",
    "crypto/rand/rand_deprecated.c",
C
code4lala 已提交
1135 1136
    "crypto/rand/rand_err.c",
    "crypto/rand/rand_lib.c",
C
code4lala 已提交
1137 1138
    "crypto/rand/rand_meth.c",
    "crypto/rand/rand_pool.c",
C
code4lala 已提交
1139
    "crypto/rand/randfile.c",
C
code4lala 已提交
1140 1141 1142 1143 1144 1145 1146
    "crypto/rc2/rc2_cbc.c",
    "crypto/rc2/rc2_ecb.c",
    "crypto/rc2/rc2_skey.c",
    "crypto/rc2/rc2cfb64.c",
    "crypto/rc2/rc2ofb64.c",
    "crypto/ripemd/rmd_dgst.c",
    "crypto/ripemd/rmd_one.c",
C
code4lala 已提交
1147 1148
    "crypto/rsa/rsa_ameth.c",
    "crypto/rsa/rsa_asn1.c",
C
code4lala 已提交
1149
    "crypto/rsa/rsa_backend.c",
C
code4lala 已提交
1150 1151 1152 1153 1154 1155 1156 1157
    "crypto/rsa/rsa_chk.c",
    "crypto/rsa/rsa_crpt.c",
    "crypto/rsa/rsa_depr.c",
    "crypto/rsa/rsa_err.c",
    "crypto/rsa/rsa_gen.c",
    "crypto/rsa/rsa_lib.c",
    "crypto/rsa/rsa_meth.c",
    "crypto/rsa/rsa_mp.c",
C
code4lala 已提交
1158
    "crypto/rsa/rsa_mp_names.c",
C
code4lala 已提交
1159 1160 1161 1162 1163 1164 1165 1166
    "crypto/rsa/rsa_none.c",
    "crypto/rsa/rsa_oaep.c",
    "crypto/rsa/rsa_ossl.c",
    "crypto/rsa/rsa_pk1.c",
    "crypto/rsa/rsa_pmeth.c",
    "crypto/rsa/rsa_prn.c",
    "crypto/rsa/rsa_pss.c",
    "crypto/rsa/rsa_saos.c",
C
code4lala 已提交
1167
    "crypto/rsa/rsa_schemes.c",
C
code4lala 已提交
1168
    "crypto/rsa/rsa_sign.c",
C
code4lala 已提交
1169 1170
    "crypto/rsa/rsa_sp800_56b_check.c",
    "crypto/rsa/rsa_sp800_56b_gen.c",
C
code4lala 已提交
1171 1172 1173 1174 1175 1176 1177
    "crypto/rsa/rsa_x931.c",
    "crypto/rsa/rsa_x931g.c",
    "crypto/seed/seed.c",
    "crypto/seed/seed_cbc.c",
    "crypto/seed/seed_cfb.c",
    "crypto/seed/seed_ecb.c",
    "crypto/seed/seed_ofb.c",
C
code4lala 已提交
1178
    "crypto/self_test_core.c",
C
code4lala 已提交
1179 1180 1181
    "crypto/sha/sha1_one.c",
    "crypto/sha/sha1dgst.c",
    "crypto/sha/sha256.c",
C
code4lala 已提交
1182
    "crypto/sha/sha3.c",
C
code4lala 已提交
1183 1184 1185 1186
    "crypto/sha/sha512.c",
    "crypto/siphash/siphash.c",
    "crypto/sm2/sm2_crypt.c",
    "crypto/sm2/sm2_err.c",
C
code4lala 已提交
1187
    "crypto/sm2/sm2_key.c",
C
code4lala 已提交
1188
    "crypto/sm2/sm2_sign.c",
C
code4lala 已提交
1189
    "crypto/sm3/legacy_sm3.c",
C
code4lala 已提交
1190 1191
    "crypto/sm3/sm3.c",
    "crypto/sm4/sm4.c",
C
code4lala 已提交
1192
    "crypto/sparse_array.c",
C
code4lala 已提交
1193 1194 1195 1196 1197 1198
    "crypto/srp/srp_lib.c",
    "crypto/srp/srp_vfy.c",
    "crypto/stack/stack.c",
    "crypto/store/store_err.c",
    "crypto/store/store_init.c",
    "crypto/store/store_lib.c",
C
code4lala 已提交
1199
    "crypto/store/store_meth.c",
C
code4lala 已提交
1200
    "crypto/store/store_register.c",
C
code4lala 已提交
1201
    "crypto/store/store_result.c",
C
code4lala 已提交
1202
    "crypto/store/store_strings.c",
C
code4lala 已提交
1203 1204 1205 1206 1207
    "crypto/threads_lib.c",
    "crypto/threads_none.c",
    "crypto/threads_pthread.c",
    "crypto/threads_win.c",
    "crypto/trace.c",
C
code4lala 已提交
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
    "crypto/ts/ts_asn1.c",
    "crypto/ts/ts_conf.c",
    "crypto/ts/ts_err.c",
    "crypto/ts/ts_lib.c",
    "crypto/ts/ts_req_print.c",
    "crypto/ts/ts_req_utils.c",
    "crypto/ts/ts_rsp_print.c",
    "crypto/ts/ts_rsp_sign.c",
    "crypto/ts/ts_rsp_utils.c",
    "crypto/ts/ts_rsp_verify.c",
    "crypto/ts/ts_verify_ctx.c",
    "crypto/txt_db/txt_db.c",
    "crypto/ui/ui_err.c",
    "crypto/ui/ui_lib.c",
    "crypto/ui/ui_null.c",
    "crypto/ui/ui_openssl.c",
    "crypto/ui/ui_util.c",
C
code4lala 已提交
1225
    "crypto/uid.c",
C
code4lala 已提交
1226 1227 1228
    "crypto/whrlpool/wp_dgst.c",
    "crypto/x509/by_dir.c",
    "crypto/x509/by_file.c",
C
code4lala 已提交
1229 1230 1231 1232 1233 1234 1235
    "crypto/x509/by_store.c",
    "crypto/x509/pcy_cache.c",
    "crypto/x509/pcy_data.c",
    "crypto/x509/pcy_lib.c",
    "crypto/x509/pcy_map.c",
    "crypto/x509/pcy_node.c",
    "crypto/x509/pcy_tree.c",
C
code4lala 已提交
1236 1237 1238
    "crypto/x509/t_crl.c",
    "crypto/x509/t_req.c",
    "crypto/x509/t_x509.c",
C
code4lala 已提交
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271
    "crypto/x509/v3_addr.c",
    "crypto/x509/v3_admis.c",
    "crypto/x509/v3_akeya.c",
    "crypto/x509/v3_akid.c",
    "crypto/x509/v3_asid.c",
    "crypto/x509/v3_bcons.c",
    "crypto/x509/v3_bitst.c",
    "crypto/x509/v3_conf.c",
    "crypto/x509/v3_cpols.c",
    "crypto/x509/v3_crld.c",
    "crypto/x509/v3_enum.c",
    "crypto/x509/v3_extku.c",
    "crypto/x509/v3_genn.c",
    "crypto/x509/v3_ia5.c",
    "crypto/x509/v3_info.c",
    "crypto/x509/v3_int.c",
    "crypto/x509/v3_ist.c",
    "crypto/x509/v3_lib.c",
    "crypto/x509/v3_ncons.c",
    "crypto/x509/v3_pci.c",
    "crypto/x509/v3_pcia.c",
    "crypto/x509/v3_pcons.c",
    "crypto/x509/v3_pku.c",
    "crypto/x509/v3_pmaps.c",
    "crypto/x509/v3_prn.c",
    "crypto/x509/v3_purp.c",
    "crypto/x509/v3_san.c",
    "crypto/x509/v3_skid.c",
    "crypto/x509/v3_sxnet.c",
    "crypto/x509/v3_tlsf.c",
    "crypto/x509/v3_utf8.c",
    "crypto/x509/v3_utl.c",
    "crypto/x509/v3err.c",
C
code4lala 已提交
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
    "crypto/x509/x509_att.c",
    "crypto/x509/x509_cmp.c",
    "crypto/x509/x509_d2.c",
    "crypto/x509/x509_def.c",
    "crypto/x509/x509_err.c",
    "crypto/x509/x509_ext.c",
    "crypto/x509/x509_lu.c",
    "crypto/x509/x509_meth.c",
    "crypto/x509/x509_obj.c",
    "crypto/x509/x509_r2x.c",
    "crypto/x509/x509_req.c",
    "crypto/x509/x509_set.c",
C
code4lala 已提交
1284
    "crypto/x509/x509_trust.c",
C
code4lala 已提交
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302
    "crypto/x509/x509_txt.c",
    "crypto/x509/x509_v3.c",
    "crypto/x509/x509_vfy.c",
    "crypto/x509/x509_vpm.c",
    "crypto/x509/x509cset.c",
    "crypto/x509/x509name.c",
    "crypto/x509/x509rset.c",
    "crypto/x509/x509spki.c",
    "crypto/x509/x509type.c",
    "crypto/x509/x_all.c",
    "crypto/x509/x_attrib.c",
    "crypto/x509/x_crl.c",
    "crypto/x509/x_exten.c",
    "crypto/x509/x_name.c",
    "crypto/x509/x_pubkey.c",
    "crypto/x509/x_req.c",
    "crypto/x509/x_x509.c",
    "crypto/x509/x_x509a.c",
C
code4lala 已提交
1303 1304 1305 1306
    "providers/baseprov.c",
    "providers/defltprov.c",
    "providers/nullprov.c",
    "providers/prov_running.c",
C
code4lala 已提交
1307
  ]
C
code4lala 已提交
1308 1309
  sources += libcommon_common_sources
  sources += libdefault_common_sources
C
code4lala 已提交
1310

1311
  if (openssl_selected_platform == "linux-armv4") {
C
code4lala 已提交
1312 1313
    sources += libcommon_linux_armv4_sources
    sources += libdefault_linux_armv4_sources
C
code4lala 已提交
1314
    sources += [
C
code4lala 已提交
1315 1316 1317
      "build_all_generated/linux-armv4/crypto/aes/aes-armv4.S",
      "build_all_generated/linux-armv4/crypto/aes/aesv8-armx.S",
      "build_all_generated/linux-armv4/crypto/aes/bsaes-armv7.S",
C
code4lala 已提交
1318
      "build_all_generated/linux-armv4/crypto/armv4cpuid.S",
C
code4lala 已提交
1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330
      "build_all_generated/linux-armv4/crypto/bn/armv4-gf2m.S",
      "build_all_generated/linux-armv4/crypto/bn/armv4-mont.S",
      "build_all_generated/linux-armv4/crypto/chacha/chacha-armv4.S",
      "build_all_generated/linux-armv4/crypto/ec/ecp_nistz256-armv4.S",
      "build_all_generated/linux-armv4/crypto/modes/ghash-armv4.S",
      "build_all_generated/linux-armv4/crypto/modes/ghashv8-armx.S",
      "build_all_generated/linux-armv4/crypto/poly1305/poly1305-armv4.S",
      "build_all_generated/linux-armv4/crypto/sha/keccak1600-armv4.S",
      "build_all_generated/linux-armv4/crypto/sha/sha1-armv4-large.S",
      "build_all_generated/linux-armv4/crypto/sha/sha256-armv4.S",
      "build_all_generated/linux-armv4/crypto/sha/sha512-armv4.S",
      "crypto/aes/aes_cbc.c",
C
code4lala 已提交
1331
      "crypto/armcap.c",
C
code4lala 已提交
1332 1333 1334
      "crypto/bn/bn_asm.c",
      "crypto/camellia/camellia.c",
      "crypto/camellia/cmll_cbc.c",
C
code4lala 已提交
1335 1336 1337
      "crypto/rc4/rc4_enc.c",
      "crypto/rc4/rc4_skey.c",
      "crypto/whrlpool/wp_block.c",
C
code4lala 已提交
1338
    ]
1339
  } else if (openssl_selected_platform == "linux-aarch64") {
C
code4lala 已提交
1340 1341 1342
    sources += libcommon_linux_aarch64_sources
    sources += libdefault_linux_aarch64_sources
    sources += [
C
code4lala 已提交
1343 1344
      "build_all_generated/linux-aarch64/crypto/aes/aesv8-armx.S",
      "build_all_generated/linux-aarch64/crypto/aes/vpaes-armv8.S",
C
code4lala 已提交
1345
      "build_all_generated/linux-aarch64/crypto/arm64cpuid.S",
C
code4lala 已提交
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355
      "build_all_generated/linux-aarch64/crypto/bn/armv8-mont.S",
      "build_all_generated/linux-aarch64/crypto/chacha/chacha-armv8.S",
      "build_all_generated/linux-aarch64/crypto/ec/ecp_nistz256-armv8.S",
      "build_all_generated/linux-aarch64/crypto/modes/aes-gcm-armv8_64.S",
      "build_all_generated/linux-aarch64/crypto/modes/ghashv8-armx.S",
      "build_all_generated/linux-aarch64/crypto/poly1305/poly1305-armv8.S",
      "build_all_generated/linux-aarch64/crypto/sha/keccak1600-armv8.S",
      "build_all_generated/linux-aarch64/crypto/sha/sha1-armv8.S",
      "build_all_generated/linux-aarch64/crypto/sha/sha256-armv8.S",
      "build_all_generated/linux-aarch64/crypto/sha/sha512-armv8.S",
C
code4lala 已提交
1356 1357 1358 1359 1360 1361 1362 1363 1364
      "crypto/aes/aes_cbc.c",
      "crypto/aes/aes_core.c",
      "crypto/armcap.c",
      "crypto/bn/bn_asm.c",
      "crypto/camellia/camellia.c",
      "crypto/camellia/cmll_cbc.c",
      "crypto/rc4/rc4_enc.c",
      "crypto/rc4/rc4_skey.c",
      "crypto/whrlpool/wp_block.c",
C
code4lala 已提交
1365
    ]
1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404
  } else if (openssl_selected_platform == "darwin64-x86_64-cc") {
    sources += libcommon_darwin64_x86_64_cc_sources
    sources += libdefault_darwin64_x86_64_cc_sources
    sources += [
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/aes-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/aesni-mb-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/aesni-sha1-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/aesni-sha256-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/aesni-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/bsaes-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/aes/vpaes-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/bn/rsaz-avx2.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/bn/rsaz-avx512.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/bn/rsaz-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/bn/x86_64-gf2m.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/bn/x86_64-mont.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/bn/x86_64-mont5.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/camellia/cmll-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/chacha/chacha-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/ec/ecp_nistz256-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/ec/x25519-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/md5/md5-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/modes/aesni-gcm-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/modes/ghash-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/poly1305/poly1305-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/rc4/rc4-md5-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/rc4/rc4-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/sha/keccak1600-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/sha/sha1-mb-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/sha/sha1-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/sha/sha256-mb-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/sha/sha256-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/sha/sha512-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/whrlpool/wp-x86_64.s",
      "build_all_generated/darwin64-x86_64-cc/crypto/x86_64cpuid.s",
      "crypto/bn/asm/x86_64-gcc.c",
      "crypto/bn/rsaz_exp.c",
      "crypto/bn/rsaz_exp_x2.c",
    ]
C
code4lala 已提交
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431
  } else if (openssl_selected_platform == "darwin64-arm64-cc") {
    sources += libcommon_darwin64_arm64_cc_sources
    sources += libdefault_darwin64_arm64_cc_sources
    sources += [
      "build_all_generated/darwin64-arm64-cc/crypto/aes/aesv8-armx.S",
      "build_all_generated/darwin64-arm64-cc/crypto/aes/vpaes-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/arm64cpuid.S",
      "build_all_generated/darwin64-arm64-cc/crypto/bn/armv8-mont.S",
      "build_all_generated/darwin64-arm64-cc/crypto/chacha/chacha-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/ec/ecp_nistz256-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/modes/aes-gcm-armv8_64.S",
      "build_all_generated/darwin64-arm64-cc/crypto/modes/ghashv8-armx.S",
      "build_all_generated/darwin64-arm64-cc/crypto/poly1305/poly1305-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/sha/keccak1600-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/sha/sha1-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/sha/sha256-armv8.S",
      "build_all_generated/darwin64-arm64-cc/crypto/sha/sha512-armv8.S",
      "crypto/aes/aes_cbc.c",
      "crypto/aes/aes_core.c",
      "crypto/armcap.c",
      "crypto/bn/bn_asm.c",
      "crypto/camellia/camellia.c",
      "crypto/camellia/cmll_cbc.c",
      "crypto/rc4/rc4_enc.c",
      "crypto/rc4/rc4_skey.c",
      "crypto/whrlpool/wp_block.c",
    ]
1432
  } else if (openssl_selected_platform == "linux-x86_64") {
C
code4lala 已提交
1433 1434
    sources += libcommon_linux_x86_64_sources
    sources += libdefault_linux_x86_64_sources
C
code4lala 已提交
1435
    sources += [
C
code4lala 已提交
1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465
      "build_all_generated/linux-x86_64/crypto/aes/aes-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/aes/aesni-mb-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/aes/aesni-sha1-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/aes/aesni-sha256-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/aes/aesni-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/aes/bsaes-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/aes/vpaes-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/bn/rsaz-avx2.s",
      "build_all_generated/linux-x86_64/crypto/bn/rsaz-avx512.s",
      "build_all_generated/linux-x86_64/crypto/bn/rsaz-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/bn/x86_64-gf2m.s",
      "build_all_generated/linux-x86_64/crypto/bn/x86_64-mont.s",
      "build_all_generated/linux-x86_64/crypto/bn/x86_64-mont5.s",
      "build_all_generated/linux-x86_64/crypto/camellia/cmll-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/chacha/chacha-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/ec/ecp_nistz256-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/ec/x25519-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/md5/md5-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/modes/aesni-gcm-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/modes/ghash-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/poly1305/poly1305-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/rc4/rc4-md5-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/rc4/rc4-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/sha/keccak1600-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/sha/sha1-mb-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/sha/sha1-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/sha/sha256-mb-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/sha/sha256-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/sha/sha512-x86_64.s",
      "build_all_generated/linux-x86_64/crypto/whrlpool/wp-x86_64.s",
C
code4lala 已提交
1466
      "build_all_generated/linux-x86_64/crypto/x86_64cpuid.s",
C
code4lala 已提交
1467 1468 1469
      "crypto/bn/asm/x86_64-gcc.c",
      "crypto/bn/rsaz_exp.c",
      "crypto/bn/rsaz_exp_x2.c",
C
code4lala 已提交
1470
    ]
1471
  } else if (openssl_selected_platform == "mingw64") {
C
code4lala 已提交
1472 1473
    sources += libcommon_mingw64_sources
    sources += libdefault_mingw64_sources
C
code4lala 已提交
1474
    sources += [
C
code4lala 已提交
1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504
      "build_all_generated/mingw64/crypto/aes/aes-x86_64.s",
      "build_all_generated/mingw64/crypto/aes/aesni-mb-x86_64.s",
      "build_all_generated/mingw64/crypto/aes/aesni-sha1-x86_64.s",
      "build_all_generated/mingw64/crypto/aes/aesni-sha256-x86_64.s",
      "build_all_generated/mingw64/crypto/aes/aesni-x86_64.s",
      "build_all_generated/mingw64/crypto/aes/bsaes-x86_64.s",
      "build_all_generated/mingw64/crypto/aes/vpaes-x86_64.s",
      "build_all_generated/mingw64/crypto/bn/rsaz-avx2.s",
      "build_all_generated/mingw64/crypto/bn/rsaz-avx512.s",
      "build_all_generated/mingw64/crypto/bn/rsaz-x86_64.s",
      "build_all_generated/mingw64/crypto/bn/x86_64-gf2m.s",
      "build_all_generated/mingw64/crypto/bn/x86_64-mont.s",
      "build_all_generated/mingw64/crypto/bn/x86_64-mont5.s",
      "build_all_generated/mingw64/crypto/camellia/cmll-x86_64.s",
      "build_all_generated/mingw64/crypto/chacha/chacha-x86_64.s",
      "build_all_generated/mingw64/crypto/ec/ecp_nistz256-x86_64.s",
      "build_all_generated/mingw64/crypto/ec/x25519-x86_64.s",
      "build_all_generated/mingw64/crypto/md5/md5-x86_64.s",
      "build_all_generated/mingw64/crypto/modes/aesni-gcm-x86_64.s",
      "build_all_generated/mingw64/crypto/modes/ghash-x86_64.s",
      "build_all_generated/mingw64/crypto/poly1305/poly1305-x86_64.s",
      "build_all_generated/mingw64/crypto/rc4/rc4-md5-x86_64.s",
      "build_all_generated/mingw64/crypto/rc4/rc4-x86_64.s",
      "build_all_generated/mingw64/crypto/sha/keccak1600-x86_64.s",
      "build_all_generated/mingw64/crypto/sha/sha1-mb-x86_64.s",
      "build_all_generated/mingw64/crypto/sha/sha1-x86_64.s",
      "build_all_generated/mingw64/crypto/sha/sha256-mb-x86_64.s",
      "build_all_generated/mingw64/crypto/sha/sha256-x86_64.s",
      "build_all_generated/mingw64/crypto/sha/sha512-x86_64.s",
      "build_all_generated/mingw64/crypto/whrlpool/wp-x86_64.s",
C
code4lala 已提交
1505 1506 1507 1508 1509
      "build_all_generated/mingw64/crypto/x86_64cpuid.s",
      "crypto/bn/asm/x86_64-gcc.c",
      "crypto/bn/rsaz_exp.c",
      "crypto/bn/rsaz_exp_x2.c",
      "crypto/dllmain.c",
C
code4lala 已提交
1510 1511 1512
    ]
  }

1513
  configs = [ ":crypto_config_private" ]
C
code4lala 已提交
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555
  public_configs = [ ":crypto_config_public" ]
}

ohos_static_library("libcrypto_static") {
  deps = [ ":crypto_source" ]
  public_configs = [ ":crypto_config_public" ]
  complete_static_lib = true
}

if (is_mingw || is_mac) {
  ohos_shared_library("libcrypto_restool") {
    if (is_mingw) {
      lib_dirs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib" ]
      libs = [ "ws2_32" ]
    }
    deps = [ ":crypto_source" ]
    subsystem_name = "security"
    part_name = "huks"
    public_configs = [ ":crypto_config_public" ]
    install_images = [
      "system",
      "updater",
    ]
  }
}

ohos_shared_library("libcrypto_shared") {
  if (is_mingw) {
    lib_dirs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib" ]
    libs = [ "ws2_32" ]
  }
  deps = [ ":crypto_source" ]
  output_name = "libcrypto_openssl"
  subsystem_name = "security"
  part_name = "huks"
  public_configs = [ ":crypto_config_public" ]
  install_images = [
    "system",
    "updater",
  ]
}

C
code4lala 已提交
1556 1557
unused_variables = []
unused_variables += unused_variables
1558 1559
unused_variables += crypto_config_common_private_include_dirs
unused_variables += crypto_config_common_public_include_dirs
C
code4lala 已提交
1560
unused_variables += crypto_config_common_cflags
1561 1562
unused_variables += crypto_config_linux_armv4_private_include_dirs
unused_variables += crypto_config_linux_armv4_public_include_dirs
C
code4lala 已提交
1563
unused_variables += crypto_config_linux_armv4_cflags
1564 1565
unused_variables += crypto_config_linux_aarch64_private_include_dirs
unused_variables += crypto_config_linux_aarch64_public_include_dirs
C
code4lala 已提交
1566
unused_variables += crypto_config_linux_aarch64_cflags
1567 1568 1569
unused_variables += crypto_config_darwin64_x86_64_cc_private_include_dirs
unused_variables += crypto_config_darwin64_x86_64_cc_public_include_dirs
unused_variables += crypto_config_darwin64_x86_64_cc_cflags
C
code4lala 已提交
1570 1571 1572
unused_variables += crypto_config_darwin64_arm64_cc_private_include_dirs
unused_variables += crypto_config_darwin64_arm64_cc_public_include_dirs
unused_variables += crypto_config_darwin64_arm64_cc_cflags
1573 1574
unused_variables += crypto_config_linux_x86_64_private_include_dirs
unused_variables += crypto_config_linux_x86_64_public_include_dirs
C
code4lala 已提交
1575
unused_variables += crypto_config_linux_x86_64_cflags
1576 1577 1578
unused_variables += crypto_config_mingw64_private_include_dirs
unused_variables += crypto_config_mingw64_public_include_dirs
unused_variables += crypto_config_mingw64_cflags
C
code4lala 已提交
1579 1580 1581
unused_variables += libcommon_common_sources
unused_variables += libcommon_linux_armv4_sources
unused_variables += libcommon_linux_aarch64_sources
1582
unused_variables += libcommon_darwin64_x86_64_cc_sources
C
code4lala 已提交
1583
unused_variables += libcommon_darwin64_arm64_cc_sources
C
code4lala 已提交
1584 1585 1586 1587 1588
unused_variables += libcommon_linux_x86_64_sources
unused_variables += libcommon_mingw64_sources
unused_variables += libdefault_common_sources
unused_variables += libdefault_linux_armv4_sources
unused_variables += libdefault_linux_aarch64_sources
1589
unused_variables += libdefault_darwin64_x86_64_cc_sources
C
code4lala 已提交
1590
unused_variables += libdefault_darwin64_arm64_cc_sources
C
code4lala 已提交
1591 1592 1593
unused_variables += libdefault_linux_x86_64_sources
unused_variables += libdefault_mingw64_sources

1594
config("ssl_config_private") {
C
code4lala 已提交
1595 1596 1597 1598
  include_dirs = crypto_config_common_private_include_dirs +
                 crypto_config_current_platform_private_include_dirs
  cflags = crypto_config_common_cflags + crypto_config_current_platform_cflags +
           openssl_internal_cflags
C
code4lala 已提交
1599 1600 1601
}

config("ssl_config_public") {
C
code4lala 已提交
1602 1603
  include_dirs = crypto_config_common_public_include_dirs +
                 crypto_config_current_platform_public_include_dirs
C
code4lala 已提交
1604 1605 1606 1607 1608 1609 1610 1611 1612 1613
}

ohos_source_set("ssl_source") {
  sources = [
    "ssl/bio_ssl.c",
    "ssl/d1_lib.c",
    "ssl/d1_msg.c",
    "ssl/d1_srtp.c",
    "ssl/methods.c",
    "ssl/pqueue.c",
C
code4lala 已提交
1614 1615 1616 1617 1618 1619 1620
    "ssl/record/dtls1_bitmap.c",
    "ssl/record/rec_layer_d1.c",
    "ssl/record/rec_layer_s3.c",
    "ssl/record/ssl3_buffer.c",
    "ssl/record/ssl3_record.c",
    "ssl/record/ssl3_record_tls13.c",

C
code4lala 已提交
1621
    # ssl/s3_cbc.c has been added into libdefault_common_sources
C
code4lala 已提交
1622 1623 1624 1625 1626 1627 1628 1629
    "ssl/s3_enc.c",
    "ssl/s3_lib.c",
    "ssl/s3_msg.c",
    "ssl/ssl_asn1.c",
    "ssl/ssl_cert.c",
    "ssl/ssl_ciph.c",
    "ssl/ssl_conf.c",
    "ssl/ssl_err.c",
C
code4lala 已提交
1630
    "ssl/ssl_err_legacy.c",
C
code4lala 已提交
1631 1632 1633 1634
    "ssl/ssl_init.c",
    "ssl/ssl_lib.c",
    "ssl/ssl_mcnf.c",
    "ssl/ssl_rsa.c",
C
code4lala 已提交
1635
    "ssl/ssl_rsa_legacy.c",
C
code4lala 已提交
1636 1637 1638 1639
    "ssl/ssl_sess.c",
    "ssl/ssl_stat.c",
    "ssl/ssl_txt.c",
    "ssl/ssl_utst.c",
C
code4lala 已提交
1640

1641
    # ssl/record/tls_pad.c has been added into libcommon_common_sources
C
code4lala 已提交
1642 1643 1644 1645 1646 1647 1648 1649 1650
    "ssl/statem/extensions.c",
    "ssl/statem/extensions_clnt.c",
    "ssl/statem/extensions_cust.c",
    "ssl/statem/extensions_srvr.c",
    "ssl/statem/statem.c",
    "ssl/statem/statem_clnt.c",
    "ssl/statem/statem_dtls.c",
    "ssl/statem/statem_lib.c",
    "ssl/statem/statem_srvr.c",
C
code4lala 已提交
1651 1652 1653 1654 1655 1656
    "ssl/t1_enc.c",
    "ssl/t1_lib.c",
    "ssl/t1_trce.c",
    "ssl/tls13_enc.c",
    "ssl/tls_depr.c",
    "ssl/tls_srp.c",
C
code4lala 已提交
1657 1658
  ]

1659
  configs = [ ":ssl_config_private" ]
C
code4lala 已提交
1660
  public_configs = [ ":ssl_config_public" ]
C
code4lala 已提交
1661 1662
}

C
code4lala 已提交
1663
ohos_static_library("libssl_static") {
C
code4lala 已提交
1664
  deps = [ ":ssl_source" ]
C
code4lala 已提交
1665
  public_configs = [ ":ssl_config_public" ]
C
code4lala 已提交
1666 1667 1668
  complete_static_lib = true
}

C
code4lala 已提交
1669 1670
ohos_shared_library("libssl_shared") {
  deps = [
C
code4lala 已提交
1671
    ":libcrypto_shared",
C
code4lala 已提交
1672
    ":ssl_source",
C
code4lala 已提交
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688
  ]

  if (is_mingw) {
    lib_dirs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib" ]
    libs = [ "ws2_32" ]
  }

  output_name = "libssl_openssl"
  subsystem_name = "developtools"
  part_name = "profiler"

  public_configs = [
    ":crypto_config_public",
    ":ssl_config_public",
  ]

1689 1690 1691 1692 1693 1694
  install_images = [
    "system",

    # compile libssl_openssl.z.so to the updater image for wpa to use
    "updater",
  ]
C
code4lala 已提交
1695
}