]>
Commit | Line | Data |
---|---|---|
ea830b96 AC |
1 | ## @file\r |
2 | # Thirty party Jansson library for JSON operations.\r | |
3 | #\r | |
4 | # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r | |
5 | # (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r | |
6 | #\r | |
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
8 | #\r | |
9 | ##\r | |
10 | \r | |
11 | [Defines]\r | |
12 | INF_VERSION = 0x0001001b\r | |
13 | BASE_NAME = JsonLib\r | |
14 | FILE_GUID = F5E36815-305A-4C5A-9D75-4F2149E45255\r | |
15 | MODULE_TYPE = DXE_DRIVER\r | |
16 | VERSION_STRING = 1.0\r | |
17 | LIBRARY_CLASS = JsonLib|DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER\r | |
18 | \r | |
19 | #\r | |
20 | # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64\r | |
21 | #\r | |
22 | \r | |
23 | [Sources]\r | |
24 | #\r | |
25 | # Below are the source code of third\r | |
26 | # party jansson library.\r | |
27 | #\r | |
28 | jansson/src/dump.c\r | |
29 | jansson/src/error.c\r | |
30 | jansson/src/hashtable.c\r | |
31 | jansson/src/hashtable_seed.c\r | |
32 | jansson/src/memory.c\r | |
33 | jansson/src/pack_unpack.c\r | |
34 | jansson/src/strbuffer.c\r | |
35 | jansson/src/strconv.c\r | |
36 | jansson/src/utf.c\r | |
37 | jansson/src/value.c\r | |
38 | jansson/src/version.c\r | |
39 | #\r | |
40 | # Below are the source of edk2 JsonLib.\r | |
41 | #\r | |
42 | JsonLib.c\r | |
43 | jansson_config.h\r | |
44 | jansson_private_config.h\r | |
45 | #\r | |
46 | # Below is the source code override to fix the build issue.\r | |
47 | # Add code in load.c to conditionally use stdin according\r | |
48 | # to HAVE_UNISTD_H macro. The PR is submitted to jansson\r | |
49 | # open source community.\r | |
50 | # https://github.com/akheron/jansson/pull/558\r | |
51 | #\r | |
52 | load.c\r | |
53 | \r | |
54 | [Packages]\r | |
55 | MdePkg/MdePkg.dec\r | |
56 | MdeModulePkg/MdeModulePkg.dec\r | |
57 | RedfishPkg/RedfishPkg.dec\r | |
58 | \r | |
59 | [LibraryClasses]\r | |
60 | BaseLib\r | |
61 | BaseMemoryLib\r | |
62 | Ucs2Utf8Lib\r | |
63 | RedfishCrtLib\r | |
64 | DebugLib\r | |
65 | MemoryAllocationLib\r | |
66 | PrintLib\r | |
67 | UefiRuntimeServicesTableLib\r | |
68 | UefiLib\r | |
69 | \r | |
70 | [BuildOptions]\r | |
71 | #\r | |
72 | # Disables the following Visual Studio compiler warnings\r | |
73 | # so we do not break the build with /WX option:\r | |
74 | # C4090: 'function' : different 'const' qualifiers\r | |
75 | # C4244: conversion from type1 to type2, possible loss of data\r | |
76 | # C4334: 32-bit shift implicitly converted to 64-bit\r | |
77 | # C4204: nonstandard extension used: non-constant aggregate initializer\r | |
0cf260fa | 78 | # C4706: assignment within conditional expression\r |
ea830b96 AC |
79 | #\r |
80 | # Define macro HAVE_CONFIG_H to include jansson_private_config.h to build.\r | |
81 | # Undefined _WIN32, WIN64, _MSC_VER macros\r | |
82 | # On GCC, no error on the unused-function and unused-but-set-variable.\r | |
83 | #\r | |
0cf260fa AC |
84 | MSFT:*_*_X64_CC_FLAGS = /wd4204 /wd4244 /wd4090 /wd4334 /wd4706 /DHAVE_CONFIG_H=1 /U_WIN32 /UWIN64 /U_MSC_VER\r |
85 | MSFT:*_*_IA32_CC_FLAGS = /wd4204 /wd4244 /wd4090 /wd4706 /DHAVE_CONFIG_H=1 /U_WIN32 /UWIN64 /U_MSC_VER\r | |
ea830b96 AC |
86 | GCC:*_*_*_CC_FLAGS = -Wno-unused-function -Wno-unused-but-set-variable\r |
87 | \r |