mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-12 18:28:32 +00:00
meson: change format of source files
For some reason, gemini choose a compact form instead. Also split the libtpms-sepecific files out as did the original Makefile.am. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
b479163801
commit
80ef24a8c8
235
src/meson.build
235
src/meson.build
@ -75,19 +75,44 @@ common_c_args = [
|
||||
if with_tpm1
|
||||
common_c_args += ['-DWITH_TPM1']
|
||||
tpm1_sources = files(
|
||||
'tpm12/tpm_admin.c', 'tpm12/tpm_audit.c', 'tpm12/tpm_auth.c',
|
||||
'tpm12/tpm_cryptoh.c', 'tpm12/tpm_counter.c', 'tpm12/tpm_daa.c',
|
||||
'tpm12/tpm_delegate.c', 'tpm12/tpm_digest.c', 'tpm12/tpm_error.c',
|
||||
'tpm12/tpm_global.c', 'tpm12/tpm_identity.c', 'tpm12/tpm_init.c',
|
||||
'tpm12/tpm_libtpms_io.c', 'tpm12/tpm_key.c', 'tpm12/tpm_load.c',
|
||||
'tpm12/tpm_maint.c', 'tpm12/tpm_migration.c', 'tpm12/tpm_nonce.c',
|
||||
'tpm12/tpm_nvram.c', 'tpm12/tpm_openssl_helpers.c', 'tpm12/tpm_owner.c',
|
||||
'tpm12/tpm_pcr.c', 'tpm12/tpm_permanent.c', 'tpm12/tpm_platform.c',
|
||||
'tpm12/tpm_process.c', 'tpm12/tpm_secret.c', 'tpm12/tpm_session.c',
|
||||
'tpm12/tpm_sizedbuffer.c', 'tpm12/tpm_startup.c', 'tpm12/tpm_store.c',
|
||||
'tpm12/tpm_storage.c', 'tpm12/tpm_ticks.c', 'tpm12/tpm_time.c',
|
||||
'tpm12/tpm_transport.c', 'tpm12/tpm_ver.c', 'tpm12/tpm_svnrevision.c',
|
||||
'tpm_tpm12_interface.c', 'tpm_tpm12_tis.c',
|
||||
'tpm12/tpm_admin.c',
|
||||
'tpm12/tpm_audit.c',
|
||||
'tpm12/tpm_auth.c',
|
||||
'tpm12/tpm_counter.c',
|
||||
'tpm12/tpm_cryptoh.c',
|
||||
'tpm12/tpm_daa.c',
|
||||
'tpm12/tpm_delegate.c',
|
||||
'tpm12/tpm_digest.c',
|
||||
'tpm12/tpm_error.c',
|
||||
'tpm12/tpm_global.c',
|
||||
'tpm12/tpm_identity.c',
|
||||
'tpm12/tpm_init.c',
|
||||
'tpm12/tpm_key.c',
|
||||
'tpm12/tpm_libtpms_io.c',
|
||||
'tpm12/tpm_load.c',
|
||||
'tpm12/tpm_maint.c',
|
||||
'tpm12/tpm_migration.c',
|
||||
'tpm12/tpm_nonce.c',
|
||||
'tpm12/tpm_nvram.c',
|
||||
'tpm12/tpm_openssl_helpers.c',
|
||||
'tpm12/tpm_owner.c',
|
||||
'tpm12/tpm_pcr.c',
|
||||
'tpm12/tpm_permanent.c',
|
||||
'tpm12/tpm_platform.c',
|
||||
'tpm12/tpm_process.c',
|
||||
'tpm12/tpm_secret.c',
|
||||
'tpm12/tpm_session.c',
|
||||
'tpm12/tpm_sizedbuffer.c',
|
||||
'tpm12/tpm_startup.c',
|
||||
'tpm12/tpm_storage.c',
|
||||
'tpm12/tpm_store.c',
|
||||
'tpm12/tpm_svnrevision.c',
|
||||
'tpm12/tpm_ticks.c',
|
||||
'tpm12/tpm_time.c',
|
||||
'tpm12/tpm_transport.c',
|
||||
'tpm12/tpm_ver.c',
|
||||
'tpm_tpm12_interface.c',
|
||||
'tpm_tpm12_tis.c',
|
||||
tpm1_crypto_sources
|
||||
)
|
||||
|
||||
@ -112,56 +137,142 @@ if with_tpm2
|
||||
extra_deps += rt_dep
|
||||
|
||||
tpm2_sources = files(
|
||||
'tpm2/ACT_spt.c', 'tpm2/ACTCommands.c', 'tpm2/AlgorithmCap.c',
|
||||
'tpm2/AlgorithmTests.c', 'tpm2/AsymmetricCommands.c',
|
||||
'tpm2/AttestationCommands.c', 'tpm2/Attest_spt.c', 'tpm2/AuditCommands.c',
|
||||
'tpm2/Bits.c', 'tpm2/BnEccConstants.c', 'tpm2/BnConvert.c', 'tpm2/BnMath.c',
|
||||
'tpm2/BnMemory.c', 'tpm2/Cancel.c', 'tpm2/CapabilityCommands.c',
|
||||
'tpm2/Clock.c', 'tpm2/ClockCommands.c', 'tpm2/CommandAudit.c',
|
||||
'tpm2/CommandCodeAttributes.c', 'tpm2/CommandDispatcher.c',
|
||||
'tpm2/ContextCommands.c', 'tpm2/Context_spt.c', 'tpm2/CryptEccData.c',
|
||||
'tpm2/CryptSelfTest.c', 'tpm2/CryptUtil.c', 'tpm2/DA.c',
|
||||
'tpm2/DebugHelpers.c', 'tpm2/DictionaryCommands.c',
|
||||
'tpm2/DuplicationCommands.c', 'tpm2/EACommands.c',
|
||||
'tpm2/EncryptDecrypt_spt.c', 'tpm2/Entity.c', 'tpm2/Entropy.c',
|
||||
'tpm2/EphemeralCommands.c', 'tpm2/ExecCommand.c', 'tpm2/ExtraData.c',
|
||||
'tpm2/Global.c', 'tpm2/Handle.c', 'tpm2/HashCommands.c',
|
||||
'tpm2/Hierarchy.c', 'tpm2/HierarchyCommands.c', 'tpm2/IntegrityCommands.c',
|
||||
'tpm2/IoBuffers.c', 'tpm2/Locality.c', 'tpm2/LocalityPlat.c',
|
||||
'tpm2/ManagementCommands.c', 'tpm2/Manufacture.c', 'tpm2/Marshal.c',
|
||||
'tpm2/MathOnByteBuffers.c', 'tpm2/Memory.c', 'tpm2/NVCommands.c',
|
||||
'tpm2/NvDynamic.c', 'tpm2/NVMem.c', 'tpm2/NvReserved.c', 'tpm2/NV_spt.c',
|
||||
'tpm2/Object.c', 'tpm2/ObjectCommands.c', 'tpm2/Object_spt.c', 'tpm2/PCR.c',
|
||||
'tpm2/PlatformACT.c', 'tpm2/PlatformData.c', 'tpm2/PlatformPCR.c',
|
||||
'tpm2/Policy_spt.c', 'tpm2/Power.c', 'tpm2/PowerPlat.c', 'tpm2/PP.c',
|
||||
'tpm2/PPPlat.c', 'tpm2/PrimeData.c', 'tpm2/PropertyCap.c',
|
||||
'tpm2/RandomCommands.c', 'tpm2/Response.c',
|
||||
'tpm2/ResponseCodeProcessing.c', 'tpm2/RunCommand.c', 'tpm2/Session.c',
|
||||
'tpm2/SessionCommands.c', 'tpm2/SessionProcess.c',
|
||||
'tpm2/SigningCommands.c', 'tpm2/StartupCommands.c',
|
||||
'tpm2/SymmetricCommands.c', 'tpm2/TestingCommands.c', 'tpm2/Ticket.c',
|
||||
'tpm2/Time.c', 'tpm2/TpmASN1.c', 'tpm2/TpmBigNumThunks.c',
|
||||
'tpm2/TpmEcc_Signature_ECDAA.c', 'tpm2/TpmEcc_Signature_ECDSA.c',
|
||||
'tpm2/TpmEcc_Signature_Schnorr.c', 'tpm2/TpmEcc_Signature_SM2.c',
|
||||
'tpm2/TpmEcc_Signature_Util.c', 'tpm2/TpmEcc_Util.c',
|
||||
'tpm2/TpmMath_Debug.c', 'tpm2/TpmMath_Util.c', 'tpm2/TpmSizeChecks.c',
|
||||
'tpm2/TPMCmdp.c', 'tpm2/TpmFail.c', 'tpm2/Unique.c', 'tpm2/Unmarshal.c',
|
||||
'tpm2/VendorInfo.c', 'tpm2/Vendor_TCG_Test.c', 'tpm2/X509_ECC.c',
|
||||
'tpm2/X509_RSA.c', 'tpm2/X509_spt.c', 'tpm_tpm2_interface.c',
|
||||
'tpm_tpm2_tis.c', 'tpm2/BackwardsCompatibilityBitArray.c',
|
||||
'tpm2/BackwardsCompatibilityObject.c', 'tpm2/LibtpmsCallbacks.c',
|
||||
'tpm2/NVMarshal.c', 'tpm2/RuntimeAlgorithm.c', 'tpm2/RuntimeAttributes.c',
|
||||
'tpm2/RuntimeCommands.c', 'tpm2/RuntimeProfile.c', 'tpm2/StateMarshal.c',
|
||||
'tpm2/ACTCommands.c',
|
||||
'tpm2/ACT_spt.c',
|
||||
'tpm2/AlgorithmCap.c',
|
||||
'tpm2/AlgorithmTests.c',
|
||||
'tpm2/AsymmetricCommands.c',
|
||||
'tpm2/Attest_spt.c',
|
||||
'tpm2/AttestationCommands.c',
|
||||
'tpm2/AuditCommands.c',
|
||||
'tpm2/Bits.c',
|
||||
'tpm2/BnConvert.c',
|
||||
'tpm2/BnEccConstants.c',
|
||||
'tpm2/BnMath.c',
|
||||
'tpm2/BnMemory.c',
|
||||
'tpm2/Cancel.c',
|
||||
'tpm2/CapabilityCommands.c',
|
||||
'tpm2/Clock.c',
|
||||
'tpm2/ClockCommands.c',
|
||||
'tpm2/CommandAudit.c',
|
||||
'tpm2/CommandCodeAttributes.c',
|
||||
'tpm2/CommandDispatcher.c',
|
||||
'tpm2/ContextCommands.c',
|
||||
'tpm2/Context_spt.c',
|
||||
'tpm2/CryptEccData.c',
|
||||
'tpm2/CryptSelfTest.c',
|
||||
'tpm2/CryptUtil.c',
|
||||
'tpm2/DA.c',
|
||||
'tpm2/DebugHelpers.c',
|
||||
'tpm2/DictionaryCommands.c',
|
||||
'tpm2/DuplicationCommands.c',
|
||||
'tpm2/EACommands.c',
|
||||
'tpm2/EncryptDecrypt_spt.c',
|
||||
'tpm2/Entity.c',
|
||||
'tpm2/Entropy.c',
|
||||
'tpm2/EphemeralCommands.c',
|
||||
'tpm2/ExecCommand.c',
|
||||
'tpm2/ExtraData.c',
|
||||
'tpm2/Global.c',
|
||||
'tpm2/Handle.c',
|
||||
'tpm2/HashCommands.c',
|
||||
'tpm2/Hierarchy.c',
|
||||
'tpm2/HierarchyCommands.c',
|
||||
'tpm2/IntegrityCommands.c',
|
||||
'tpm2/IoBuffers.c',
|
||||
'tpm2/Locality.c',
|
||||
'tpm2/LocalityPlat.c',
|
||||
'tpm2/ManagementCommands.c',
|
||||
'tpm2/Manufacture.c',
|
||||
'tpm2/Marshal.c',
|
||||
'tpm2/MathOnByteBuffers.c',
|
||||
'tpm2/Memory.c',
|
||||
'tpm2/NVCommands.c',
|
||||
'tpm2/NVMem.c',
|
||||
'tpm2/NV_spt.c',
|
||||
'tpm2/NvDynamic.c',
|
||||
'tpm2/NvReserved.c',
|
||||
'tpm2/Object.c',
|
||||
'tpm2/ObjectCommands.c',
|
||||
'tpm2/Object_spt.c',
|
||||
'tpm2/PCR.c',
|
||||
'tpm2/PP.c',
|
||||
'tpm2/PPPlat.c',
|
||||
'tpm2/PlatformACT.c',
|
||||
'tpm2/PlatformData.c',
|
||||
'tpm2/PlatformPCR.c',
|
||||
'tpm2/Policy_spt.c',
|
||||
'tpm2/Power.c',
|
||||
'tpm2/PowerPlat.c',
|
||||
'tpm2/PrimeData.c',
|
||||
'tpm2/PropertyCap.c',
|
||||
'tpm2/RandomCommands.c',
|
||||
'tpm2/Response.c',
|
||||
'tpm2/ResponseCodeProcessing.c',
|
||||
'tpm2/RunCommand.c',
|
||||
'tpm2/Session.c',
|
||||
'tpm2/SessionCommands.c',
|
||||
'tpm2/SessionProcess.c',
|
||||
'tpm2/SigningCommands.c',
|
||||
'tpm2/StartupCommands.c',
|
||||
'tpm2/SymmetricCommands.c',
|
||||
'tpm2/TPMCmdp.c',
|
||||
'tpm2/TestingCommands.c',
|
||||
'tpm2/Ticket.c',
|
||||
'tpm2/Time.c',
|
||||
'tpm2/TpmASN1.c',
|
||||
'tpm2/TpmBigNumThunks.c',
|
||||
'tpm2/TpmEcc_Signature_ECDAA.c',
|
||||
'tpm2/TpmEcc_Signature_ECDSA.c',
|
||||
'tpm2/TpmEcc_Signature_SM2.c',
|
||||
'tpm2/TpmEcc_Signature_Schnorr.c',
|
||||
'tpm2/TpmEcc_Signature_Util.c',
|
||||
'tpm2/TpmEcc_Util.c',
|
||||
'tpm2/TpmFail.c',
|
||||
'tpm2/TpmMath_Debug.c',
|
||||
'tpm2/TpmMath_Util.c',
|
||||
'tpm2/TpmSizeChecks.c',
|
||||
'tpm2/Unique.c',
|
||||
'tpm2/Unmarshal.c',
|
||||
'tpm2/VendorInfo.c',
|
||||
'tpm2/Vendor_TCG_Test.c',
|
||||
'tpm2/X509_ECC.c',
|
||||
'tpm2/X509_RSA.c',
|
||||
'tpm2/X509_spt.c',
|
||||
'tpm2/crypto/openssl/BnToOsslMath.c',
|
||||
'tpm2/crypto/openssl/CryptCmac.c',
|
||||
'tpm2/crypto/openssl/CryptDes.c',
|
||||
'tpm2/crypto/openssl/CryptEccCrypt.c',
|
||||
'tpm2/crypto/openssl/CryptEccKeyExchange.c',
|
||||
'tpm2/crypto/openssl/CryptEccMain.c',
|
||||
'tpm2/crypto/openssl/CryptEccSignature.c',
|
||||
'tpm2/crypto/openssl/CryptHash.c',
|
||||
'tpm2/crypto/openssl/CryptPrime.c',
|
||||
'tpm2/crypto/openssl/CryptPrimeSieve.c',
|
||||
'tpm2/crypto/openssl/CryptRand.c',
|
||||
'tpm2/crypto/openssl/CryptRsa.c',
|
||||
'tpm2/crypto/openssl/CryptSmac.c',
|
||||
'tpm2/crypto/openssl/CryptSym.c',
|
||||
'tpm2/crypto/openssl/ExpDCache.c',
|
||||
'tpm2/crypto/openssl/Helpers.c',
|
||||
'tpm2/crypto/openssl/TpmToOsslDesSupport.c',
|
||||
'tpm2/crypto/openssl/TpmToOsslSupport.c',
|
||||
'tpm_tpm2_interface.c',
|
||||
'tpm_tpm2_tis.c',
|
||||
)
|
||||
|
||||
# files specific to libtpms
|
||||
tpm2_sources += files(
|
||||
'tpm2/BackwardsCompatibilityBitArray.c',
|
||||
'tpm2/BackwardsCompatibilityObject.c',
|
||||
'tpm2/LibtpmsCallbacks.c',
|
||||
'tpm2/NVMarshal.c',
|
||||
'tpm2/RuntimeAlgorithm.c',
|
||||
'tpm2/RuntimeAttributes.c',
|
||||
'tpm2/RuntimeCommands.c',
|
||||
'tpm2/RuntimeProfile.c',
|
||||
'tpm2/StateMarshal.c',
|
||||
'tpm2/Volatile.c',
|
||||
'tpm2/crypto/openssl/BnToOsslMath.c', 'tpm2/crypto/openssl/CryptCmac.c',
|
||||
'tpm2/crypto/openssl/CryptDes.c', 'tpm2/crypto/openssl/CryptEccCrypt.c',
|
||||
'tpm2/crypto/openssl/CryptEccKeyExchange.c', 'tpm2/crypto/openssl/CryptEccMain.c',
|
||||
'tpm2/crypto/openssl/CryptEccSignature.c', 'tpm2/crypto/openssl/CryptHash.c',
|
||||
'tpm2/crypto/openssl/CryptPrime.c', 'tpm2/crypto/openssl/CryptPrimeSieve.c',
|
||||
'tpm2/crypto/openssl/CryptRand.c', 'tpm2/crypto/openssl/CryptRsa.c',
|
||||
'tpm2/crypto/openssl/CryptSmac.c', 'tpm2/crypto/openssl/CryptSym.c',
|
||||
'tpm2/crypto/openssl/ExpDCache.c', 'tpm2/crypto/openssl/Helpers.c',
|
||||
'tpm2/crypto/openssl/TpmToOsslDesSupport.c', 'tpm2/crypto/openssl/TpmToOsslSupport.c'
|
||||
)
|
||||
|
||||
tpm2_lib = static_library('tpms_tpm2', tpm2_sources,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user