diff options
author | Jacek Kryszyn <j.kryszyn@samsung.com> | 2024-04-26 15:52:40 +0200 |
---|---|---|
committer | Jacek Kryszyn <j.kryszyn@samsung.com> | 2024-04-29 08:41:12 +0200 |
commit | 46fdfbb5b48bcfa77c2db727b45711b54f6c6484 (patch) | |
tree | 4fab489cef881dd5ab2cf8e1af2e84d633ef383c | |
parent | dafd42755eaf4c098085f024ebc57cc076dc464a (diff) | |
download | dynpart-tools-46fdfbb5b48bcfa77c2db727b45711b54f6c6484.tar.gz dynpart-tools-46fdfbb5b48bcfa77c2db727b45711b54f6c6484.tar.bz2 dynpart-tools-46fdfbb5b48bcfa77c2db727b45711b54f6c6484.zip |
Fix cmake & add rpm packaging
CMake minimum requirement is lowered to the actually
lowest possible version. spec file is added to allow
rpm packaging. Meson build files removed since they
are unnecessary and cause problems with different
compilers.
Change-Id: I3aab2ebdbb12d2aea6965454d4024a0fec731c09
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | LICENSE.Apache-2.0 | 204 | ||||
-rw-r--r-- | lib/base/CMakeLists.txt | 16 | ||||
-rw-r--r-- | lib/base/meson.build | 21 | ||||
-rw-r--r-- | lib/boringssl/CMakeLists.txt | 322 | ||||
-rw-r--r-- | lib/boringssl/meson.build | 350 | ||||
-rw-r--r-- | lib/ext4_utils/CMakeLists.txt | 6 | ||||
-rw-r--r-- | lib/ext4_utils/meson.build | 5 | ||||
-rw-r--r-- | lib/fmtlib/CMakeLists.txt | 7 | ||||
-rw-r--r-- | lib/libcrypto_utils/CMakeLists.txt | 7 | ||||
-rw-r--r-- | lib/libjsonpb/CMakeLists.txt | 7 | ||||
-rw-r--r-- | lib/liblog/CMakeLists.txt | 14 | ||||
-rw-r--r-- | lib/liblog/meson.build | 12 | ||||
-rw-r--r-- | lib/liblp/CMakeLists.txt | 7 | ||||
-rw-r--r-- | lib/liblp/meson.build | 9 | ||||
-rw-r--r-- | lib/libsparse/CMakeLists.txt | 7 | ||||
-rw-r--r-- | lib/libsparse/meson.build | 8 | ||||
-rw-r--r-- | lib/protobuf/CMakeLists.txt | 87 | ||||
-rw-r--r-- | lib/protobuf/meson.build | 82 | ||||
-rw-r--r-- | lib/zlib/CMakeLists.txt | 7 | ||||
-rw-r--r-- | lib/zlib/meson.build | 18 | ||||
-rwxr-xr-x | make.sh | 10 | ||||
-rw-r--r-- | meson.build | 164 | ||||
-rw-r--r-- | packaging/dynpart-tools.manifest | 5 | ||||
-rw-r--r-- | packaging/dynpart-tools.spec | 48 |
25 files changed, 269 insertions, 1162 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 11c6b66..9135418 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(partition_tools VERSION 1.0.0 DESCRIPTION "partition_tools") @@ -52,9 +52,3 @@ target_include_directories(lpdump PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/includ target_compile_definitions(lpdump PRIVATE -D_FILE_OFFSET_BITS=64) target_compile_options(lpdump PRIVATE -std=c++17) target_link_libraries(lpdump PRIVATE liblp libsparse ext4_utils zlib base fmtlib liblog libcrypto_utils boringssl libjsonpb protobuf pthread) - -#${CPP} -std=c++17 -I../lib/include ${CFLAGS} -D_FILE_OFFSET_BITS=64 -o "../bin/$ARCH/lpmake" lpmake.cc ../lib/lib/liblp.a ../lib/lib/libsparse.a ../lib/lib/libext4_utils.a ../lib/lib/libz.a ../lib/lib/libbase.a ../lib/lib/fmtlib.a ../lib/lib/liblog.a ../lib/lib/libcrypto_utils.a ../lib/lib/libcrypto.a -lpthread ${LDFLAGS} -#${CPP} -std=c++17 -I../lib/include ${CFLAGS} -D_FILE_OFFSET_BITS=64 -o "../bin/$ARCH/lpadd" lpadd.cc ../lib/lib/liblp.a ../lib/lib/libsparse.a ../lib/lib/libext4_utils.a ../lib/lib/libz.a ../lib/lib/libbase.a ../lib/lib/fmtlib.a ../lib/lib/liblog.a ../lib/lib/libcrypto_utils.a ../lib/lib/libcrypto.a -lpthread ${LDFLAGS} -#${CPP} -std=c++17 -I../lib/include ${CFLAGS} -D_FILE_OFFSET_BITS=64 -o "../bin/$ARCH/lpflash" lpflash.cc ../lib/lib/liblp.a ../lib/lib/libsparse.a ../lib/lib/libext4_utils.a ../lib/lib/libz.a ../lib/lib/libbase.a ../lib/lib/fmtlib.a ../lib/lib/liblog.a ../lib/lib/libcrypto_utils.a ../lib/lib/libcrypto.a -lpthread ${LDFLAGS} -#${CPP} -std=c++17 -I../lib/include ${CFLAGS} -D_FILE_OFFSET_BITS=64 -o "../bin/$ARCH/lpunpack" lpunpack.cc ../lib/lib/liblp.a ../lib/lib/libsparse.a ../lib/lib/libext4_utils.a ../lib/lib/libz.a ../lib/lib/libbase.a ../lib/lib/fmtlib.a ../lib/lib/liblog.a ../lib/lib/libcrypto_utils.a ../lib/lib/libcrypto.a -lpthread ${LDFLAGS} -#${CPP} -std=c++17 -I../lib/include ${CFLAGS} -D_FILE_OFFSET_BITS=64 -o "../bin/$ARCH/lpdump" lpdump.cc dynamic_partitions_device_info.pb.cc lpdump_host.cc ../lib/lib/liblp.a ../lib/lib/libsparse.a ../lib/lib/libext4_utils.a ../lib/lib/libz.a ../lib/lib/libbase.a ../lib/lib/fmtlib.a ../lib/lib/liblog.a ../lib/lib/libcrypto_utils.a ../lib/lib/libcrypto.a ../lib/lib/libjsonpbparse.a ../lib/lib/libprotobuf-cpp-full.a -lpthread ${LDFLAGS} diff --git a/LICENSE.Apache-2.0 b/LICENSE.Apache-2.0 new file mode 100644 index 0000000..9c13a9b --- /dev/null +++ b/LICENSE.Apache-2.0 @@ -0,0 +1,204 @@ +Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
+
diff --git a/lib/base/CMakeLists.txt b/lib/base/CMakeLists.txt index f0775ac..c32a6f4 100644 --- a/lib/base/CMakeLists.txt +++ b/lib/base/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(base VERSION 1.0.0 DESCRIPTION "base") @@ -29,17 +29,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) target_compile_options(base PRIVATE -std=c++17) - -#cd ../base -#case "$OSTYPE" in -# linux* | darwin*) -# src="errors_unix.cpp" -# ;; -# *) -# src="errors_windows.cpp utf8.cpp" -# ;; -#esac -#$CC -std=c++17 -I../include ${CFLAGS} -c abi_compatibility.cpp chrono_utils.cpp file.cpp liblog_symbols.cpp logging.cpp mapped_file.cpp parsebool.cpp parsenetaddress.cpp process.cpp properties.cpp stringprintf.cpp strings.cpp threads.cpp test_utils.cpp ${src} -#$AR rcs ../lib/libbase.a *.o -#rm -r *.o -#unset src
\ No newline at end of file diff --git a/lib/base/meson.build b/lib/base/meson.build deleted file mode 100644 index 6504747..0000000 --- a/lib/base/meson.build +++ /dev/null @@ -1,21 +0,0 @@ -libbase_sources = files( - 'abi_compatibility.cpp', - 'chrono_utils.cpp', - 'file.cpp', - 'liblog_symbols.cpp', - 'logging.cpp', - 'mapped_file.cpp', - 'parsebool.cpp', - 'parsenetaddress.cpp', - 'process.cpp', - 'properties.cpp', - 'stringprintf.cpp', - 'strings.cpp', - 'threads.cpp', - 'test_utils.cpp', -) -if host_machine.system() in ['linux', 'darwin'] - liblog_sources += files('errors_unix.cpp') -else - liblog_sources += files('errors_windows.cpp', 'utf8.cpp') -endif diff --git a/lib/boringssl/CMakeLists.txt b/lib/boringssl/CMakeLists.txt index 73b729d..d3a2829 100644 --- a/lib/boringssl/CMakeLists.txt +++ b/lib/boringssl/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(boringssl VERSION 1.0.0 DESCRIPTION "boringssl") @@ -327,323 +327,3 @@ target_compile_definitions(boringssl PRIVATE -DOPENSSL_SMALL -D_XOPEN_SOURCE=700 ) - -#case "$OSTYPE" in -# linux*) -# ;; -# *) -# CFLAGS_CRYPTO="-DOPENSSL_NO_ASM" -# ;; -#esac - -#case "$ARCH" in -# arm7vl|arm7hf) -# src="linux-arm/crypto/chacha/chacha-armv4.S -# linux-arm/crypto/fipsmodule/aes-armv4.S -# linux-arm/crypto/fipsmodule/aesv8-armx32.S -# linux-arm/crypto/fipsmodule/armv4-mont.S -# linux-arm/crypto/fipsmodule/bsaes-armv7.S -# linux-arm/crypto/fipsmodule/ghash-armv4.S -# linux-arm/crypto/fipsmodule/ghashv8-armx32.S -# linux-arm/crypto/fipsmodule/sha1-armv4-large.S -# linux-arm/crypto/fipsmodule/sha256-armv4.S -# linux-arm/crypto/fipsmodule/sha512-armv4.S -# linux-arm/crypto/fipsmodule/vpaes-armv7.S -# linux-arm/crypto/test/trampoline-armv4.S -# src/crypto/curve25519/asm/x25519-asm-arm.S -# src/crypto/poly1305/poly1305_arm_asm.S" -# ;; -# aarch64) -# src="linux-aarch64/crypto/chacha/chacha-armv8.S -# linux-aarch64/crypto/fipsmodule/aesv8-armx64.S -# linux-aarch64/crypto/fipsmodule/armv8-mont.S -# linux-aarch64/crypto/fipsmodule/ghash-neon-armv8.S -# linux-aarch64/crypto/fipsmodule/ghashv8-armx64.S -# linux-aarch64/crypto/fipsmodule/sha1-armv8.S -# linux-aarch64/crypto/fipsmodule/sha256-armv8.S -# linux-aarch64/crypto/fipsmodule/sha512-armv8.S -# linux-aarch64/crypto/fipsmodule/vpaes-armv8.S -# linux-aarch64/crypto/test/trampoline-armv8.S" -# ;; -# i686) -# src="linux-x86/crypto/chacha/chacha-x86.S -# linux-x86/crypto/fipsmodule/aes-586.S -# linux-x86/crypto/fipsmodule/aesni-x86.S -# linux-x86/crypto/fipsmodule/bn-586.S -# linux-x86/crypto/fipsmodule/co-586.S -# linux-x86/crypto/fipsmodule/ghash-ssse3-x86.S -# linux-x86/crypto/fipsmodule/ghash-x86.S -# linux-x86/crypto/fipsmodule/md5-586.S -# linux-x86/crypto/fipsmodule/sha1-586.S -# linux-x86/crypto/fipsmodule/sha256-586.S -# linux-x86/crypto/fipsmodule/sha512-586.S -# linux-x86/crypto/fipsmodule/vpaes-x86.S -# linux-x86/crypto/fipsmodule/x86-mont.S -# linux-x86/crypto/test/trampoline-x86.S" -# ;; -# x86_64) -# src="linux-x86_64/crypto/chacha/chacha-x86_64.S -# linux-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.S -# linux-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.S -# linux-x86_64/crypto/fipsmodule/aes-x86_64.S -# linux-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.S -# linux-x86_64/crypto/fipsmodule/aesni-x86_64.S -# linux-x86_64/crypto/fipsmodule/ghash-ssse3-x86_64.S -# linux-x86_64/crypto/fipsmodule/ghash-x86_64.S -# linux-x86_64/crypto/fipsmodule/md5-x86_64.S -# linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.S -# linux-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.S -# linux-x86_64/crypto/fipsmodule/rdrand-x86_64.S -# linux-x86_64/crypto/fipsmodule/rsaz-avx2.S -# linux-x86_64/crypto/fipsmodule/sha1-x86_64.S -# linux-x86_64/crypto/fipsmodule/sha256-x86_64.S -# linux-x86_64/crypto/fipsmodule/sha512-x86_64.S -# linux-x86_64/crypto/fipsmodule/vpaes-x86_64.S -# linux-x86_64/crypto/fipsmodule/x86_64-mont.S -# linux-x86_64/crypto/fipsmodule/x86_64-mont5.S -# linux-x86_64/crypto/test/trampoline-x86_64.S -# src/crypto/hrss/asm/poly_rq_mul.S" -# ;; -#esac -# -# $CC -Iinclude -std=c99 -# ${CFLAGS} -# ${CFLAGS_CRYPTO} -# -DBORINGSSL_IMPLEMENTATION -# -fvisibility=hidden -# -DBORINGSSL_SHARED_LIBRARY -# -DBORINGSSL_ANDROID_SYSTEM -# -DOPENSSL_SMALL -# -D_XOPEN_SOURCE=700 -# -c -# err_data.c -# src/crypto/asn1/a_bitstr.c -# src/crypto/asn1/a_bool.c -# src/crypto/asn1/a_d2i_fp.c -# src/crypto/asn1/a_dup.c -# src/crypto/asn1/a_enum.c -# src/crypto/asn1/a_gentm.c -# src/crypto/asn1/a_i2d_fp.c -# src/crypto/asn1/a_int.c -# src/crypto/asn1/a_mbstr.c -# src/crypto/asn1/a_object.c -# src/crypto/asn1/a_octet.c -# src/crypto/asn1/a_print.c -# src/crypto/asn1/a_strnid.c -# src/crypto/asn1/a_time.c -# src/crypto/asn1/a_type.c -# src/crypto/asn1/a_utctm.c -# src/crypto/asn1/a_utf8.c -# src/crypto/asn1/asn1_lib.c -# src/crypto/asn1/asn1_par.c -# src/crypto/asn1/asn_pack.c -# src/crypto/asn1/f_enum.c -# src/crypto/asn1/f_int.c -# src/crypto/asn1/f_string.c -# src/crypto/asn1/tasn_dec.c -# src/crypto/asn1/tasn_enc.c -# src/crypto/asn1/tasn_fre.c -# src/crypto/asn1/tasn_new.c -# src/crypto/asn1/tasn_typ.c -# src/crypto/asn1/tasn_utl.c -# src/crypto/asn1/time_support.c -# src/crypto/base64/base64.c -# src/crypto/bio/bio.c -# src/crypto/bio/bio_mem.c -# src/crypto/bio/connect.c -# src/crypto/bio/fd.c -# src/crypto/bio/file.c -# src/crypto/bio/hexdump.c -# src/crypto/bio/pair.c -# src/crypto/bio/printf.c -# src/crypto/bio/socket.c -# src/crypto/bio/socket_helper.c -# src/crypto/bn_extra/bn_asn1.c -# src/crypto/bn_extra/convert.c -# src/crypto/buf/buf.c -# src/crypto/bytestring/asn1_compat.c -# src/crypto/bytestring/ber.c -# src/crypto/bytestring/cbb.c -# src/crypto/bytestring/cbs.c -# src/crypto/bytestring/unicode.c -# src/crypto/chacha/chacha.c -# src/crypto/cipher_extra/cipher_extra.c -# src/crypto/cipher_extra/derive_key.c -# src/crypto/cipher_extra/e_aesccm.c -# src/crypto/cipher_extra/e_aesctrhmac.c -# src/crypto/cipher_extra/e_aesgcmsiv.c -# src/crypto/cipher_extra/e_chacha20poly1305.c -# src/crypto/cipher_extra/e_null.c -# src/crypto/cipher_extra/e_rc2.c -# src/crypto/cipher_extra/e_rc4.c -# src/crypto/cipher_extra/e_tls.c -# src/crypto/cipher_extra/tls_cbc.c -# src/crypto/cmac/cmac.c -# src/crypto/conf/conf.c -# src/crypto/cpu-aarch64-fuchsia.c -# src/crypto/cpu-aarch64-linux.c -# src/crypto/cpu-arm-linux.c -# src/crypto/cpu-arm.c -# src/crypto/cpu-intel.c -# src/crypto/cpu-ppc64le.c -# src/crypto/crypto.c -# src/crypto/curve25519/spake25519.c -# src/crypto/dh/check.c -# src/crypto/dh/dh.c -# src/crypto/dh/dh_asn1.c -# src/crypto/dh/params.c -# src/crypto/digest_extra/digest_extra.c -# src/crypto/dsa/dsa.c -# src/crypto/dsa/dsa_asn1.c -# src/crypto/ec_extra/ec_asn1.c -# src/crypto/ec_extra/ec_derive.c -# src/crypto/ecdh_extra/ecdh_extra.c -# src/crypto/ecdsa_extra/ecdsa_asn1.c -# src/crypto/engine/engine.c -# src/crypto/err/err.c -# src/crypto/evp/digestsign.c -# src/crypto/evp/evp.c -# src/crypto/evp/evp_asn1.c -# src/crypto/evp/evp_ctx.c -# src/crypto/evp/p_dsa_asn1.c -# src/crypto/evp/p_ec.c -# src/crypto/evp/p_ec_asn1.c -# src/crypto/evp/p_ed25519.c -# src/crypto/evp/p_ed25519_asn1.c -# src/crypto/evp/p_rsa.c -# src/crypto/evp/p_rsa_asn1.c -# src/crypto/evp/p_x25519.c -# src/crypto/evp/p_x25519_asn1.c -# src/crypto/evp/pbkdf.c -# src/crypto/evp/print.c -# src/crypto/evp/scrypt.c -# src/crypto/evp/sign.c -# src/crypto/ex_data.c -# src/crypto/fipsmodule/bcm.c -# src/crypto/fipsmodule/fips_shared_support.c -# src/crypto/fipsmodule/is_fips.c -# src/crypto/hkdf/hkdf.c -# src/crypto/hrss/hrss.c -# src/crypto/lhash/lhash.c -# src/crypto/mem.c -# src/crypto/obj/obj.c -# src/crypto/obj/obj_xref.c -# src/crypto/pem/pem_all.c -# src/crypto/pem/pem_info.c -# src/crypto/pem/pem_lib.c -# src/crypto/pem/pem_oth.c -# src/crypto/pem/pem_pk8.c -# src/crypto/pem/pem_pkey.c -# src/crypto/pem/pem_x509.c -# src/crypto/pem/pem_xaux.c -# src/crypto/pkcs7/pkcs7.c -# src/crypto/pkcs7/pkcs7_x509.c -# src/crypto/pkcs8/p5_pbev2.c -# src/crypto/pkcs8/pkcs8.c -# src/crypto/pkcs8/pkcs8_x509.c -# src/crypto/poly1305/poly1305.c -# src/crypto/poly1305/poly1305_arm.c -# src/crypto/poly1305/poly1305_vec.c -# src/crypto/pool/pool.c -# src/crypto/rand_extra/deterministic.c -# src/crypto/rand_extra/forkunsafe.c -# src/crypto/rand_extra/fuchsia.c -# src/crypto/rand_extra/rand_extra.c -# src/crypto/rand_extra/windows.c -# src/crypto/rc4/rc4.c -# src/crypto/refcount_c11.c -# src/crypto/refcount_lock.c -# src/crypto/rsa_extra/rsa_asn1.c -# src/crypto/rsa_extra/rsa_print.c -# src/crypto/siphash/siphash.c -# src/crypto/stack/stack.c -# src/crypto/thread.c -# src/crypto/thread_none.c -# src/crypto/thread_pthread.c -# src/crypto/thread_win.c -# src/crypto/x509/a_digest.c -# src/crypto/x509/a_sign.c -# src/crypto/x509/a_strex.c -# src/crypto/x509/a_verify.c -# src/crypto/x509/algorithm.c -# src/crypto/x509/asn1_gen.c -# src/crypto/x509/by_dir.c -# src/crypto/x509/by_file.c -# src/crypto/x509/i2d_pr.c -# src/crypto/x509/rsa_pss.c -# src/crypto/x509/t_crl.c -# src/crypto/x509/t_req.c -# src/crypto/x509/t_x509.c -# src/crypto/x509/t_x509a.c -# src/crypto/x509/x509.c -# src/crypto/x509/x509_att.c -# src/crypto/x509/x509_cmp.c -# src/crypto/x509/x509_d2.c -# src/crypto/x509/x509_def.c -# src/crypto/x509/x509_ext.c -# src/crypto/x509/x509_lu.c -# src/crypto/x509/x509_obj.c -# src/crypto/x509/x509_r2x.c -# src/crypto/x509/x509_req.c -# src/crypto/x509/x509_set.c -# src/crypto/x509/x509_trs.c -# src/crypto/x509/x509_txt.c -# src/crypto/x509/x509_v3.c -# src/crypto/x509/x509_vfy.c -# src/crypto/x509/x509_vpm.c -# src/crypto/x509/x509cset.c -# src/crypto/x509/x509name.c -# src/crypto/x509/x509rset.c -# src/crypto/x509/x509spki.c -# src/crypto/x509/x_algor.c -# src/crypto/x509/x_all.c -# src/crypto/x509/x_attrib.c -# src/crypto/x509/x_crl.c -# src/crypto/x509/x_exten.c -# src/crypto/x509/x_info.c -# src/crypto/x509/x_name.c -# src/crypto/x509/x_pkey.c -# src/crypto/x509/x_pubkey.c -# src/crypto/x509/x_req.c -# src/crypto/x509/x_sig.c -# src/crypto/x509/x_spki.c -# src/crypto/x509/x_val.c -# src/crypto/x509/x_x509.c -# src/crypto/x509/x_x509a.c -# src/crypto/x509v3/pcy_cache.c -# src/crypto/x509v3/pcy_data.c -# src/crypto/x509v3/pcy_lib.c -# src/crypto/x509v3/pcy_map.c -# src/crypto/x509v3/pcy_node.c -# src/crypto/x509v3/pcy_tree.c -# src/crypto/x509v3/v3_akey.c -# src/crypto/x509v3/v3_akeya.c -# src/crypto/x509v3/v3_alt.c -# src/crypto/x509v3/v3_bcons.c -# src/crypto/x509v3/v3_bitst.c -# src/crypto/x509v3/v3_conf.c -# src/crypto/x509v3/v3_cpols.c -# src/crypto/x509v3/v3_crld.c -# src/crypto/x509v3/v3_enum.c -# src/crypto/x509v3/v3_extku.c -# src/crypto/x509v3/v3_genn.c -# src/crypto/x509v3/v3_ia5.c -# src/crypto/x509v3/v3_info.c -# src/crypto/x509v3/v3_int.c -# src/crypto/x509v3/v3_lib.c -# src/crypto/x509v3/v3_ncons.c -# src/crypto/x509v3/v3_ocsp.c -# src/crypto/x509v3/v3_pci.c -# src/crypto/x509v3/v3_pcia.c -# src/crypto/x509v3/v3_pcons.c -# src/crypto/x509v3/v3_pku.c -# src/crypto/x509v3/v3_pmaps.c -# src/crypto/x509v3/v3_prn.c -# src/crypto/x509v3/v3_purp.c -# src/crypto/x509v3/v3_skey.c -# src/crypto/x509v3/v3_sxnet.c -# src/crypto/x509v3/v3_utl.c -# src/third_party/fiat/curve25519.c ${src} - -#$AR rcs ../lib/libcrypto.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/boringssl/meson.build b/lib/boringssl/meson.build deleted file mode 100644 index 44499e4..0000000 --- a/lib/boringssl/meson.build +++ /dev/null @@ -1,350 +0,0 @@ -libcrypto_sources = files( - 'err_data.c', - 'src/crypto/asn1/a_bitstr.c', - 'src/crypto/asn1/a_bool.c', - 'src/crypto/asn1/a_d2i_fp.c', - 'src/crypto/asn1/a_dup.c', - 'src/crypto/asn1/a_enum.c', - 'src/crypto/asn1/a_gentm.c', - 'src/crypto/asn1/a_i2d_fp.c', - 'src/crypto/asn1/a_int.c', - 'src/crypto/asn1/a_mbstr.c', - 'src/crypto/asn1/a_object.c', - 'src/crypto/asn1/a_octet.c', - 'src/crypto/asn1/a_print.c', - 'src/crypto/asn1/a_strnid.c', - 'src/crypto/asn1/a_time.c', - 'src/crypto/asn1/a_type.c', - 'src/crypto/asn1/a_utctm.c', - 'src/crypto/asn1/a_utf8.c', - 'src/crypto/asn1/asn1_lib.c', - 'src/crypto/asn1/asn1_par.c', - 'src/crypto/asn1/asn_pack.c', - 'src/crypto/asn1/f_enum.c', - 'src/crypto/asn1/f_int.c', - 'src/crypto/asn1/f_string.c', - 'src/crypto/asn1/tasn_dec.c', - 'src/crypto/asn1/tasn_enc.c', - 'src/crypto/asn1/tasn_fre.c', - 'src/crypto/asn1/tasn_new.c', - 'src/crypto/asn1/tasn_typ.c', - 'src/crypto/asn1/tasn_utl.c', - 'src/crypto/asn1/time_support.c', - 'src/crypto/base64/base64.c', - 'src/crypto/bio/bio.c', - 'src/crypto/bio/bio_mem.c', - 'src/crypto/bio/connect.c', - 'src/crypto/bio/fd.c', - 'src/crypto/bio/file.c', - 'src/crypto/bio/hexdump.c', - 'src/crypto/bio/pair.c', - 'src/crypto/bio/printf.c', - 'src/crypto/bio/socket.c', - 'src/crypto/bio/socket_helper.c', - 'src/crypto/bn_extra/bn_asn1.c', - 'src/crypto/bn_extra/convert.c', - 'src/crypto/buf/buf.c', - 'src/crypto/bytestring/asn1_compat.c', - 'src/crypto/bytestring/ber.c', - 'src/crypto/bytestring/cbb.c', - 'src/crypto/bytestring/cbs.c', - 'src/crypto/bytestring/unicode.c', - 'src/crypto/chacha/chacha.c', - 'src/crypto/cipher_extra/cipher_extra.c', - 'src/crypto/cipher_extra/derive_key.c', - 'src/crypto/cipher_extra/e_aesccm.c', - 'src/crypto/cipher_extra/e_aesctrhmac.c', - 'src/crypto/cipher_extra/e_aesgcmsiv.c', - 'src/crypto/cipher_extra/e_chacha20poly1305.c', - 'src/crypto/cipher_extra/e_null.c', - 'src/crypto/cipher_extra/e_rc2.c', - 'src/crypto/cipher_extra/e_rc4.c', - 'src/crypto/cipher_extra/e_tls.c', - 'src/crypto/cipher_extra/tls_cbc.c', - 'src/crypto/cmac/cmac.c', - 'src/crypto/conf/conf.c', - 'src/crypto/cpu-aarch64-fuchsia.c', - 'src/crypto/cpu-aarch64-linux.c', - 'src/crypto/cpu-arm-linux.c', - 'src/crypto/cpu-arm.c', - 'src/crypto/cpu-intel.c', - 'src/crypto/cpu-ppc64le.c', - 'src/crypto/crypto.c', - 'src/crypto/curve25519/spake25519.c', - 'src/crypto/dh/check.c', - 'src/crypto/dh/dh.c', - 'src/crypto/dh/dh_asn1.c', - 'src/crypto/dh/params.c', - 'src/crypto/digest_extra/digest_extra.c', - 'src/crypto/dsa/dsa.c', - 'src/crypto/dsa/dsa_asn1.c', - 'src/crypto/ec_extra/ec_asn1.c', - 'src/crypto/ec_extra/ec_derive.c', - 'src/crypto/ecdh_extra/ecdh_extra.c', - 'src/crypto/ecdsa_extra/ecdsa_asn1.c', - 'src/crypto/engine/engine.c', - 'src/crypto/err/err.c', - 'src/crypto/evp/digestsign.c', - 'src/crypto/evp/evp.c', - 'src/crypto/evp/evp_asn1.c', - 'src/crypto/evp/evp_ctx.c', - 'src/crypto/evp/p_dsa_asn1.c', - 'src/crypto/evp/p_ec.c', - 'src/crypto/evp/p_ec_asn1.c', - 'src/crypto/evp/p_ed25519.c', - 'src/crypto/evp/p_ed25519_asn1.c', - 'src/crypto/evp/p_rsa.c', - 'src/crypto/evp/p_rsa_asn1.c', - 'src/crypto/evp/p_x25519.c', - 'src/crypto/evp/p_x25519_asn1.c', - 'src/crypto/evp/pbkdf.c', - 'src/crypto/evp/print.c', - 'src/crypto/evp/scrypt.c', - 'src/crypto/evp/sign.c', - 'src/crypto/ex_data.c', - 'src/crypto/fipsmodule/bcm.c', - 'src/crypto/fipsmodule/fips_shared_support.c', - 'src/crypto/fipsmodule/is_fips.c', - 'src/crypto/hkdf/hkdf.c', - 'src/crypto/hrss/hrss.c', - 'src/crypto/lhash/lhash.c', - 'src/crypto/mem.c', - 'src/crypto/obj/obj.c', - 'src/crypto/obj/obj_xref.c', - 'src/crypto/pem/pem_all.c', - 'src/crypto/pem/pem_info.c', - 'src/crypto/pem/pem_lib.c', - 'src/crypto/pem/pem_oth.c', - 'src/crypto/pem/pem_pk8.c', - 'src/crypto/pem/pem_pkey.c', - 'src/crypto/pem/pem_x509.c', - 'src/crypto/pem/pem_xaux.c', - 'src/crypto/pkcs7/pkcs7.c', - 'src/crypto/pkcs7/pkcs7_x509.c', - 'src/crypto/pkcs8/p5_pbev2.c', - 'src/crypto/pkcs8/pkcs8.c', - 'src/crypto/pkcs8/pkcs8_x509.c', - 'src/crypto/poly1305/poly1305.c', - 'src/crypto/poly1305/poly1305_arm.c', - 'src/crypto/poly1305/poly1305_vec.c', - 'src/crypto/pool/pool.c', - 'src/crypto/rand_extra/deterministic.c', - 'src/crypto/rand_extra/forkunsafe.c', - 'src/crypto/rand_extra/fuchsia.c', - 'src/crypto/rand_extra/rand_extra.c', - 'src/crypto/rand_extra/windows.c', - 'src/crypto/rc4/rc4.c', - 'src/crypto/refcount_c11.c', - 'src/crypto/refcount_lock.c', - 'src/crypto/rsa_extra/rsa_asn1.c', - 'src/crypto/rsa_extra/rsa_print.c', - 'src/crypto/siphash/siphash.c', - 'src/crypto/stack/stack.c', - 'src/crypto/thread.c', - 'src/crypto/thread_none.c', - 'src/crypto/thread_pthread.c', - 'src/crypto/thread_win.c', - 'src/crypto/x509/a_digest.c', - 'src/crypto/x509/a_sign.c', - 'src/crypto/x509/a_strex.c', - 'src/crypto/x509/a_verify.c', - 'src/crypto/x509/algorithm.c', - 'src/crypto/x509/asn1_gen.c', - 'src/crypto/x509/by_dir.c', - 'src/crypto/x509/by_file.c', - 'src/crypto/x509/i2d_pr.c', - 'src/crypto/x509/rsa_pss.c', - 'src/crypto/x509/t_crl.c', - 'src/crypto/x509/t_req.c', - 'src/crypto/x509/t_x509.c', - 'src/crypto/x509/t_x509a.c', - 'src/crypto/x509/x509.c', - 'src/crypto/x509/x509_att.c', - 'src/crypto/x509/x509_cmp.c', - 'src/crypto/x509/x509_d2.c', - 'src/crypto/x509/x509_def.c', - 'src/crypto/x509/x509_ext.c', - 'src/crypto/x509/x509_lu.c', - 'src/crypto/x509/x509_obj.c', - 'src/crypto/x509/x509_r2x.c', - 'src/crypto/x509/x509_req.c', - 'src/crypto/x509/x509_set.c', - 'src/crypto/x509/x509_trs.c', - 'src/crypto/x509/x509_txt.c', - 'src/crypto/x509/x509_v3.c', - 'src/crypto/x509/x509_vfy.c', - 'src/crypto/x509/x509_vpm.c', - 'src/crypto/x509/x509cset.c', - 'src/crypto/x509/x509name.c', - 'src/crypto/x509/x509rset.c', - 'src/crypto/x509/x509spki.c', - 'src/crypto/x509/x_algor.c', - 'src/crypto/x509/x_all.c', - 'src/crypto/x509/x_attrib.c', - 'src/crypto/x509/x_crl.c', - 'src/crypto/x509/x_exten.c', - 'src/crypto/x509/x_info.c', - 'src/crypto/x509/x_name.c', - 'src/crypto/x509/x_pkey.c', - 'src/crypto/x509/x_pubkey.c', - 'src/crypto/x509/x_req.c', - 'src/crypto/x509/x_sig.c', - 'src/crypto/x509/x_spki.c', - 'src/crypto/x509/x_val.c', - 'src/crypto/x509/x_x509.c', - 'src/crypto/x509/x_x509a.c', - 'src/crypto/x509v3/pcy_cache.c', - 'src/crypto/x509v3/pcy_data.c', - 'src/crypto/x509v3/pcy_lib.c', - 'src/crypto/x509v3/pcy_map.c', - 'src/crypto/x509v3/pcy_node.c', - 'src/crypto/x509v3/pcy_tree.c', - 'src/crypto/x509v3/v3_akey.c', - 'src/crypto/x509v3/v3_akeya.c', - 'src/crypto/x509v3/v3_alt.c', - 'src/crypto/x509v3/v3_bcons.c', - 'src/crypto/x509v3/v3_bitst.c', - 'src/crypto/x509v3/v3_conf.c', - 'src/crypto/x509v3/v3_cpols.c', - 'src/crypto/x509v3/v3_crld.c', - 'src/crypto/x509v3/v3_enum.c', - 'src/crypto/x509v3/v3_extku.c', - 'src/crypto/x509v3/v3_genn.c', - 'src/crypto/x509v3/v3_ia5.c', - 'src/crypto/x509v3/v3_info.c', - 'src/crypto/x509v3/v3_int.c', - 'src/crypto/x509v3/v3_lib.c', - 'src/crypto/x509v3/v3_ncons.c', - 'src/crypto/x509v3/v3_ocsp.c', - 'src/crypto/x509v3/v3_pci.c', - 'src/crypto/x509v3/v3_pcia.c', - 'src/crypto/x509v3/v3_pcons.c', - 'src/crypto/x509v3/v3_pku.c', - 'src/crypto/x509v3/v3_pmaps.c', - 'src/crypto/x509v3/v3_prn.c', - 'src/crypto/x509v3/v3_purp.c', - 'src/crypto/x509v3/v3_skey.c', - 'src/crypto/x509v3/v3_sxnet.c', - 'src/crypto/x509v3/v3_utl.c', - 'src/third_party/fiat/curve25519.c', -) -#if host_machine.system() in ['linux', 'darwin'] -#libcrypto_sources += files('event_tag_map.cpp') -#endif - -if host_machine.system() == 'linux' - if host_machine.cpu_family() == 'arm' - libcrypto_sources += files( - 'linux-arm/crypto/chacha/chacha-armv4.S', - 'linux-arm/crypto/fipsmodule/aes-armv4.S', - 'linux-arm/crypto/fipsmodule/aesv8-armx32.S', - 'linux-arm/crypto/fipsmodule/armv4-mont.S', - 'linux-arm/crypto/fipsmodule/bsaes-armv7.S', - 'linux-arm/crypto/fipsmodule/ghash-armv4.S', - 'linux-arm/crypto/fipsmodule/ghashv8-armx32.S', - 'linux-arm/crypto/fipsmodule/sha1-armv4-large.S', - 'linux-arm/crypto/fipsmodule/sha256-armv4.S', - 'linux-arm/crypto/fipsmodule/sha512-armv4.S', - 'linux-arm/crypto/fipsmodule/vpaes-armv7.S', - 'linux-arm/crypto/test/trampoline-armv4.S', - 'src/crypto/curve25519/asm/x25519-asm-arm.S', - 'src/crypto/poly1305/poly1305_arm_asm.S', - ) - elif host_machine.cpu_family() == 'aarch64' - libcrypto_sources += files( - 'linux-aarch64/crypto/chacha/chacha-armv8.S', - 'linux-aarch64/crypto/fipsmodule/aesv8-armx64.S', - 'linux-aarch64/crypto/fipsmodule/armv8-mont.S', - 'linux-aarch64/crypto/fipsmodule/ghash-neon-armv8.S', - 'linux-aarch64/crypto/fipsmodule/ghashv8-armx64.S', - 'linux-aarch64/crypto/fipsmodule/sha1-armv8.S', - 'linux-aarch64/crypto/fipsmodule/sha256-armv8.S', - 'linux-aarch64/crypto/fipsmodule/sha512-armv8.S', - 'linux-aarch64/crypto/fipsmodule/vpaes-armv8.S', - 'linux-aarch64/crypto/test/trampoline-armv8.S', - ) - elif host_machine.cpu_family() == 'x86' - libcrypto_sources += files( - 'linux-x86/crypto/chacha/chacha-x86.S', - 'linux-x86/crypto/fipsmodule/aes-586.S', - 'linux-x86/crypto/fipsmodule/aesni-x86.S', - 'linux-x86/crypto/fipsmodule/bn-586.S', - 'linux-x86/crypto/fipsmodule/co-586.S', - 'linux-x86/crypto/fipsmodule/ghash-ssse3-x86.S', - 'linux-x86/crypto/fipsmodule/ghash-x86.S', - 'linux-x86/crypto/fipsmodule/md5-586.S', - 'linux-x86/crypto/fipsmodule/sha1-586.S', - 'linux-x86/crypto/fipsmodule/sha256-586.S', - 'linux-x86/crypto/fipsmodule/sha512-586.S', - 'linux-x86/crypto/fipsmodule/vpaes-x86.S', - 'linux-x86/crypto/fipsmodule/x86-mont.S', - 'linux-x86/crypto/test/trampoline-x86.S', - ) - elif host_machine.cpu_family() == 'x86_64' - libcrypto_sources += files( - 'linux-x86_64/crypto/chacha/chacha-x86_64.S', - 'linux-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.S', - 'linux-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.S', - 'linux-x86_64/crypto/fipsmodule/aes-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/aesni-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/ghash-ssse3-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/ghash-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/md5-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.S', - 'linux-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.S', - 'linux-x86_64/crypto/fipsmodule/rdrand-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/rsaz-avx2.S', - 'linux-x86_64/crypto/fipsmodule/sha1-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/sha256-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/sha512-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/vpaes-x86_64.S', - 'linux-x86_64/crypto/fipsmodule/x86_64-mont.S', - 'linux-x86_64/crypto/fipsmodule/x86_64-mont5.S', - 'linux-x86_64/crypto/test/trampoline-x86_64.S', - 'src/crypto/hrss/asm/poly_rq_mul.S', - ) - endif -elif host_machine.system() == 'windows' - if host_machine.cpu_family() == 'x86' - libcrypto_sources += files( - 'win-x86/crypto/chacha/chacha-x86.asm', - 'win-x86/crypto/fipsmodule/aes-586.asm', - 'win-x86/crypto/fipsmodule/aesni-x86.asm', - 'win-x86/crypto/fipsmodule/bn-586.asm', - 'win-x86/crypto/fipsmodule/co-586.asm', - 'win-x86/crypto/fipsmodule/ghash-ssse3-x86.asm', - 'win-x86/crypto/fipsmodule/ghash-x86.asm', - 'win-x86/crypto/fipsmodule/md5-586.asm', - 'win-x86/crypto/fipsmodule/sha1-586.asm', - 'win-x86/crypto/fipsmodule/sha256-586.asm', - 'win-x86/crypto/fipsmodule/sha512-586.asm', - 'win-x86/crypto/fipsmodule/vpaes-x86.asm', - 'win-x86/crypto/fipsmodule/x86-mont.asm', - 'win-x86/crypto/test/trampoline-x86.asm', - ) - elif host_machine.cpu_family() == 'x86_64' - libcrypto_sources += files( - 'win-x86_64/crypto/chacha/chacha-x86_64.asm', - 'win-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.asm', - 'win-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.asm', - 'win-x86_64/crypto/fipsmodule/aes-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/aesni-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/ghash-ssse3-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/ghash-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/md5-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/p256-x86_64-asm.asm', - 'win-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.asm', - 'win-x86_64/crypto/fipsmodule/rdrand-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/rsaz-avx2.asm', - 'win-x86_64/crypto/fipsmodule/sha1-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/sha256-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/sha512-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/vpaes-x86_64.asm', - 'win-x86_64/crypto/fipsmodule/x86_64-mont.asm', - 'win-x86_64/crypto/fipsmodule/x86_64-mont5.asm', - 'win-x86_64/crypto/test/trampoline-x86_64.asm', - ) - endif -endif diff --git a/lib/ext4_utils/CMakeLists.txt b/lib/ext4_utils/CMakeLists.txt index 97f10a6..89f00f3 100644 --- a/lib/ext4_utils/CMakeLists.txt +++ b/lib/ext4_utils/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(ext4_utils VERSION 1.0.0 DESCRIPTION "ext4_utils") @@ -17,7 +17,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) target_compile_options(ext4_utils PRIVATE -fno-strict-aliasing -std=c++17) - -#$CC -std=c++17 -I../include -fno-strict-aliasing ${CFLAGS} -c ext4_utils.cpp wipe.cpp ext4_sb.cpp -#$AR rcs ../lib/libext4_utils.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/ext4_utils/meson.build b/lib/ext4_utils/meson.build deleted file mode 100644 index 4db6cc4..0000000 --- a/lib/ext4_utils/meson.build +++ /dev/null @@ -1,5 +0,0 @@ -libext4_utils_sources = files( - 'ext4_utils.cpp', - 'wipe.cpp', - 'ext4_sb.cpp', -) diff --git a/lib/fmtlib/CMakeLists.txt b/lib/fmtlib/CMakeLists.txt index 84246ea..f2836ac 100644 --- a/lib/fmtlib/CMakeLists.txt +++ b/lib/fmtlib/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(fmtlib VERSION 1.0.0 DESCRIPTION "fmtlib") @@ -15,8 +15,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) target_compile_options(fmtlib PRIVATE -std=c++17) - -#cd ../fmtlib -#$CC -std=c++17 -Iinclude ${CFLAGS} -c src/format.cc -#$AR rcs ../lib/fmtlib.a *.o -#rm -r *.o diff --git a/lib/libcrypto_utils/CMakeLists.txt b/lib/libcrypto_utils/CMakeLists.txt index 9f19b68..6bc8790 100644 --- a/lib/libcrypto_utils/CMakeLists.txt +++ b/lib/libcrypto_utils/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(libcrypto_utils VERSION 1.0.0 DESCRIPTION "libcrypto_utils") @@ -14,8 +14,3 @@ target_include_directories(libcrypto_utils PRIVATE set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) - -#cd ../libcrypto_utils -#$CC -Iinclude -I../boringssl/include ${CFLAGS} -c android_pubkey.c -#$AR rcs ../lib/libcrypto_utils.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/libjsonpb/CMakeLists.txt b/lib/libjsonpb/CMakeLists.txt index 0f1dc78..52fa1d3 100644 --- a/lib/libjsonpb/CMakeLists.txt +++ b/lib/libjsonpb/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(libjsonpb VERSION 1.0.0 DESCRIPTION "ext4_utils") @@ -16,8 +16,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) target_compile_options(libjsonpb PRIVATE -std=c++17) - -#cd ../libjsonpb -#$CC -std=c++17 -I../include -Iparse/include ${CFLAGS} -c parse/jsonpb.cpp -#$AR rcs ../lib/libjsonpbparse.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/liblog/CMakeLists.txt b/lib/liblog/CMakeLists.txt index faaa73a..df3c6e2 100644 --- a/lib/liblog/CMakeLists.txt +++ b/lib/liblog/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(liblog VERSION 1.0.0 DESCRIPTION "liblog") @@ -29,15 +29,3 @@ target_compile_definitions(liblog PRIVATE ) target_compile_options(liblog PRIVATE -std=c++17) - -#case "$OSTYPE" in -# linux* | darwin*) -# src="event_tag_map.cpp" -# ;; -# *) -# ;; -#esac -#$CC -std=c++17 -I../include -Iinclude -I../base/include -DLIBLOG_LOG_TAG=1006 -DSNET_EVENT_LOG_TAG=1397638484 ${CFLAGS} -c log_event_list.cpp log_event_write.cpp logger_name.cpp logger_read.cpp logger_write.cpp logprint.cpp properties.cpp ${src} -#$AR rcs ../lib/liblog.a *.o -#rm -r *.o -#unset src
\ No newline at end of file diff --git a/lib/liblog/meson.build b/lib/liblog/meson.build deleted file mode 100644 index 7d81592..0000000 --- a/lib/liblog/meson.build +++ /dev/null @@ -1,12 +0,0 @@ -liblog_sources = files( - 'log_event_list.cpp', - 'log_event_write.cpp', - 'logger_name.cpp', - 'logger_read.cpp', - 'logger_write.cpp', - 'logprint.cpp', - 'properties.cpp', -) -if host_machine.system() in ['linux', 'darwin'] - liblog_sources += files('event_tag_map.cpp') -endif diff --git a/lib/liblp/CMakeLists.txt b/lib/liblp/CMakeLists.txt index e1a4cfe..d25a9d8 100644 --- a/lib/liblp/CMakeLists.txt +++ b/lib/liblp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(liblp VERSION 1.0.0 DESCRIPTION "liblp") @@ -23,8 +23,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJ target_compile_definitions(liblp PRIVATE -D_FILE_OFFSET_BITS=64) target_compile_options(liblp PRIVATE -std=c++17) - -#cd ../liblp -#$CC -std=c++17 -I../include -D_FILE_OFFSET_BITS=64 ${CFLAGS} -c builder.cpp images.cpp partition_opener.cpp property_fetcher.cpp reader.cpp utility.cpp writer.cpp -#$AR rcs ../lib/liblp.a *.o -#rm -r *.o diff --git a/lib/liblp/meson.build b/lib/liblp/meson.build deleted file mode 100644 index 6c8f434..0000000 --- a/lib/liblp/meson.build +++ /dev/null @@ -1,9 +0,0 @@ -liblp_sources = files( - 'builder.cpp', - 'images.cpp', - 'partition_opener.cpp', - 'property_fetcher.cpp', - 'reader.cpp', - 'utility.cpp', - 'writer.cpp', -) diff --git a/lib/libsparse/CMakeLists.txt b/lib/libsparse/CMakeLists.txt index 17906a8..4e120ad 100644 --- a/lib/libsparse/CMakeLists.txt +++ b/lib/libsparse/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(libsparse VERSION 1.0.0 DESCRIPTION "libsparse") @@ -20,8 +20,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) target_compile_options(libsparse PRIVATE -std=c++17) - -#cd ../libsparse -#$CC -std=c++17 -I../include ${CFLAGS} -c backed_block.cpp output_file.cpp sparse.cpp sparse_crc32.cpp sparse_err.cpp sparse_read.cpp -#$AR rcs ../lib/libsparse.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/libsparse/meson.build b/lib/libsparse/meson.build deleted file mode 100644 index f104cb5..0000000 --- a/lib/libsparse/meson.build +++ /dev/null @@ -1,8 +0,0 @@ -libsparse_sources = files( - 'backed_block.cpp', - 'output_file.cpp', - 'sparse.cpp', - 'sparse_crc32.cpp', - 'sparse_err.cpp', - 'sparse_read.cpp', -) diff --git a/lib/protobuf/CMakeLists.txt b/lib/protobuf/CMakeLists.txt index f1d98b0..c593872 100644 --- a/lib/protobuf/CMakeLists.txt +++ b/lib/protobuf/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(protobuf VERSION 1.0.0 DESCRIPTION "protobuf") @@ -99,88 +99,3 @@ target_compile_options(protobuf PRIVATE -std=c++17) target_compile_definitions(protobuf PRIVATE -DHAVE_ZLIB=1 ) -#cd ../protobuf -#$CC -std=c++17 -Isrc -Iandroid -DHAVE_ZLIB=1 ${CFLAGS} -c \ -#src/google/protobuf/any_lite.cc \ -#src/google/protobuf/arena.cc \ -#src/google/protobuf/extension_set.cc \ -#src/google/protobuf/generated_enum_util.cc \ -#src/google/protobuf/generated_message_table_driven_lite.cc \ -#src/google/protobuf/generated_message_util.cc \ -#src/google/protobuf/implicit_weak_message.cc \ -#src/google/protobuf/io/coded_stream.cc \ -#src/google/protobuf/io/io_win32.cc \ -#src/google/protobuf/io/strtod.cc \ -#src/google/protobuf/io/zero_copy_stream.cc \ -#src/google/protobuf/io/zero_copy_stream_impl.cc \ -#src/google/protobuf/io/zero_copy_stream_impl_lite.cc \ -#src/google/protobuf/message_lite.cc \ -#src/google/protobuf/parse_context.cc \ -#src/google/protobuf/repeated_field.cc \ -#src/google/protobuf/stubs/bytestream.cc \ -#src/google/protobuf/stubs/common.cc \ -#src/google/protobuf/stubs/int128.cc \ -#src/google/protobuf/stubs/status.cc \ -#src/google/protobuf/stubs/statusor.cc \ -#src/google/protobuf/stubs/stringpiece.cc \ -#src/google/protobuf/stubs/stringprintf.cc \ -#src/google/protobuf/stubs/structurally_valid.cc \ -#src/google/protobuf/stubs/strutil.cc \ -#src/google/protobuf/stubs/time.cc \ -#src/google/protobuf/wire_format_lite.cc \ -#src/google/protobuf/any.cc \ -#src/google/protobuf/any.pb.cc \ -#src/google/protobuf/api.pb.cc \ -#src/google/protobuf/compiler/importer.cc \ -#src/google/protobuf/compiler/parser.cc \ -#src/google/protobuf/descriptor.cc \ -#src/google/protobuf/descriptor.pb.cc \ -#src/google/protobuf/descriptor_database.cc \ -#src/google/protobuf/duration.pb.cc \ -#src/google/protobuf/dynamic_message.cc \ -#src/google/protobuf/empty.pb.cc \ -#src/google/protobuf/extension_set_heavy.cc \ -#src/google/protobuf/field_mask.pb.cc \ -#src/google/protobuf/generated_message_reflection.cc \ -#src/google/protobuf/generated_message_table_driven.cc \ -#src/google/protobuf/io/gzip_stream.cc \ -#src/google/protobuf/io/printer.cc \ -#src/google/protobuf/io/tokenizer.cc \ -#src/google/protobuf/map_field.cc \ -#src/google/protobuf/message.cc \ -#src/google/protobuf/reflection_ops.cc \ -#src/google/protobuf/service.cc \ -#src/google/protobuf/source_context.pb.cc \ -#src/google/protobuf/struct.pb.cc \ -#src/google/protobuf/stubs/mathlimits.cc \ -#src/google/protobuf/stubs/substitute.cc \ -#src/google/protobuf/text_format.cc \ -#src/google/protobuf/timestamp.pb.cc \ -#src/google/protobuf/type.pb.cc \ -#src/google/protobuf/unknown_field_set.cc \ -#src/google/protobuf/util/delimited_message_util.cc \ -#src/google/protobuf/util/field_comparator.cc \ -#src/google/protobuf/util/field_mask_util.cc \ -#src/google/protobuf/util/internal/datapiece.cc \ -#src/google/protobuf/util/internal/default_value_objectwriter.cc \ -#src/google/protobuf/util/internal/error_listener.cc \ -#src/google/protobuf/util/internal/field_mask_utility.cc \ -#src/google/protobuf/util/internal/json_escaping.cc \ -#src/google/protobuf/util/internal/json_objectwriter.cc \ -#src/google/protobuf/util/internal/json_stream_parser.cc \ -#src/google/protobuf/util/internal/object_writer.cc \ -#src/google/protobuf/util/internal/proto_writer.cc \ -#src/google/protobuf/util/internal/protostream_objectsource.cc \ -#src/google/protobuf/util/internal/protostream_objectwriter.cc \ -#src/google/protobuf/util/internal/type_info.cc \ -#src/google/protobuf/util/internal/type_info_test_helper.cc \ -#src/google/protobuf/util/internal/utility.cc \ -#src/google/protobuf/util/json_util.cc \ -#src/google/protobuf/util/message_differencer.cc \ -#src/google/protobuf/util/time_util.cc \ -#src/google/protobuf/util/type_resolver_util.cc \ -#src/google/protobuf/wire_format.cc \ -#src/google/protobuf/wrappers.pb.cc - -#$AR rcs ../lib/libprotobuf-cpp-full.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/protobuf/meson.build b/lib/protobuf/meson.build deleted file mode 100644 index 9c95c89..0000000 --- a/lib/protobuf/meson.build +++ /dev/null @@ -1,82 +0,0 @@ -libprotobuf_sources = files( - 'src/google/protobuf/any_lite.cc', - 'src/google/protobuf/arena.cc', - 'src/google/protobuf/extension_set.cc', - 'src/google/protobuf/generated_enum_util.cc', - 'src/google/protobuf/generated_message_table_driven_lite.cc', - 'src/google/protobuf/generated_message_util.cc', - 'src/google/protobuf/implicit_weak_message.cc', - 'src/google/protobuf/io/coded_stream.cc', - 'src/google/protobuf/io/io_win32.cc', - 'src/google/protobuf/io/strtod.cc', - 'src/google/protobuf/io/zero_copy_stream.cc', - 'src/google/protobuf/io/zero_copy_stream_impl.cc', - 'src/google/protobuf/io/zero_copy_stream_impl_lite.cc', - 'src/google/protobuf/message_lite.cc', - 'src/google/protobuf/parse_context.cc', - 'src/google/protobuf/repeated_field.cc', - 'src/google/protobuf/stubs/bytestream.cc', - 'src/google/protobuf/stubs/common.cc', - 'src/google/protobuf/stubs/int128.cc', - 'src/google/protobuf/stubs/status.cc', - 'src/google/protobuf/stubs/statusor.cc', - 'src/google/protobuf/stubs/stringpiece.cc', - 'src/google/protobuf/stubs/stringprintf.cc', - 'src/google/protobuf/stubs/structurally_valid.cc', - 'src/google/protobuf/stubs/strutil.cc', - 'src/google/protobuf/stubs/time.cc', - 'src/google/protobuf/wire_format_lite.cc', - 'src/google/protobuf/any.cc', - 'src/google/protobuf/any.pb.cc', - 'src/google/protobuf/api.pb.cc', - 'src/google/protobuf/compiler/importer.cc', - 'src/google/protobuf/compiler/parser.cc', - 'src/google/protobuf/descriptor.cc', - 'src/google/protobuf/descriptor.pb.cc', - 'src/google/protobuf/descriptor_database.cc', - 'src/google/protobuf/duration.pb.cc', - 'src/google/protobuf/dynamic_message.cc', - 'src/google/protobuf/empty.pb.cc', - 'src/google/protobuf/extension_set_heavy.cc', - 'src/google/protobuf/field_mask.pb.cc', - 'src/google/protobuf/generated_message_reflection.cc', - 'src/google/protobuf/generated_message_table_driven.cc', - 'src/google/protobuf/io/gzip_stream.cc', - 'src/google/protobuf/io/printer.cc', - 'src/google/protobuf/io/tokenizer.cc', - 'src/google/protobuf/map_field.cc', - 'src/google/protobuf/message.cc', - 'src/google/protobuf/reflection_ops.cc', - 'src/google/protobuf/service.cc', - 'src/google/protobuf/source_context.pb.cc', - 'src/google/protobuf/struct.pb.cc', - 'src/google/protobuf/stubs/mathlimits.cc', - 'src/google/protobuf/stubs/substitute.cc', - 'src/google/protobuf/text_format.cc', - 'src/google/protobuf/timestamp.pb.cc', - 'src/google/protobuf/type.pb.cc', - 'src/google/protobuf/unknown_field_set.cc', - 'src/google/protobuf/util/delimited_message_util.cc', - 'src/google/protobuf/util/field_comparator.cc', - 'src/google/protobuf/util/field_mask_util.cc', - 'src/google/protobuf/util/internal/datapiece.cc', - 'src/google/protobuf/util/internal/default_value_objectwriter.cc', - 'src/google/protobuf/util/internal/error_listener.cc', - 'src/google/protobuf/util/internal/field_mask_utility.cc', - 'src/google/protobuf/util/internal/json_escaping.cc', - 'src/google/protobuf/util/internal/json_objectwriter.cc', - 'src/google/protobuf/util/internal/json_stream_parser.cc', - 'src/google/protobuf/util/internal/object_writer.cc', - 'src/google/protobuf/util/internal/proto_writer.cc', - 'src/google/protobuf/util/internal/protostream_objectsource.cc', - 'src/google/protobuf/util/internal/protostream_objectwriter.cc', - 'src/google/protobuf/util/internal/type_info.cc', - 'src/google/protobuf/util/internal/type_info_test_helper.cc', - 'src/google/protobuf/util/internal/utility.cc', - 'src/google/protobuf/util/json_util.cc', - 'src/google/protobuf/util/message_differencer.cc', - 'src/google/protobuf/util/time_util.cc', - 'src/google/protobuf/util/type_resolver_util.cc', - 'src/google/protobuf/wire_format.cc', - 'src/google/protobuf/wrappers.pb.cc', -) diff --git a/lib/zlib/CMakeLists.txt b/lib/zlib/CMakeLists.txt index 9f2d765..4a6f26e 100644 --- a/lib/zlib/CMakeLists.txt +++ b/lib/zlib/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.11.0) project(zlib VERSION 1.0.0 DESCRIPTION "zlib") @@ -35,8 +35,3 @@ target_compile_definitions(zlib PRIVATE ) target_compile_options(zlib PRIVATE -O3) - -#cd ../zlib -#$CC -I. -O3 -DHAVE_HIDDEN -DZLIB_CONST ${CFLAGS} -c adler32.c compress.c cpu_features.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inflate.c inftrees.c inffast.c trees.c uncompr.c zutil.c -#$AR rcs ../lib/libz.a *.o -#rm -r *.o
\ No newline at end of file diff --git a/lib/zlib/meson.build b/lib/zlib/meson.build deleted file mode 100644 index ff38153..0000000 --- a/lib/zlib/meson.build +++ /dev/null @@ -1,18 +0,0 @@ -libz_sources = files( - 'adler32.c', - 'compress.c', - 'cpu_features.c', - 'crc32.c', - 'deflate.c', - 'gzclose.c', - 'gzlib.c', - 'gzread.c', - 'gzwrite.c', - 'infback.c', - 'inflate.c', - 'inftrees.c', - 'inffast.c', - 'trees.c', - 'uncompr.c', - 'zutil.c', -) diff --git a/make.sh b/make.sh deleted file mode 100755 index c460fe3..0000000 --- a/make.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -set -x -e - -if [ ! -d build ]; then - meson setup --prefix=$(readlink -f $(dirname $0)) build -else - meson setup --reconfigure build -fi -ninja -C build -meson install -C build diff --git a/meson.build b/meson.build deleted file mode 100644 index a44138e..0000000 --- a/meson.build +++ /dev/null @@ -1,164 +0,0 @@ -project('partition_tools', 'c', 'cpp', - default_options: [ - 'strip=true', - 'c_std=c99', - 'cpp_std=c++17',]) - -lib_includes = include_directories('lib/include') - -# log -subdir('lib/liblog') - -liblog_includes = [lib_includes, include_directories('lib/liblog/include')] - -liblog = static_library('log', - liblog_sources, - cpp_args: [ - '-DLIBLOG_LOG_TAG=1006', - '-DSNET_EVENT_LOG_TAG=1397638484', - ], - include_directories: liblog_includes, -) - -# zlib -subdir('lib/zlib') - -libz_includes = [lib_includes, include_directories('lib/zlib')] - -libz = static_library('z', - libz_sources, - cpp_args: [ - '-O3', - '-DHAVE_HIDDEN', - '-DZLIB_CONST', - ], - include_directories: libz_includes, -) - -# base -subdir('lib/base') - -libbase = static_library('base', - libbase_sources, - include_directories: lib_includes, -) - -# sparse -subdir('lib/libsparse') - -libsparse = static_library('sparse', - libsparse_sources, - include_directories: lib_includes, -) - -# fmtlib -fmtlib = static_library('fmtlib', - 'lib/fmtlib/src/format.cc', - include_directories: 'lib/fmtlib/include', - name_prefix: '', -) - -# lp -subdir('lib/liblp') - -liblp = static_library('lp', - liblp_sources, - cpp_args: [ - '-D_FILE_OFFSET_BITS=64', - ], - include_directories: lib_includes, -) - -# ext4_utils -subdir('lib/ext4_utils') - -libext4_utils = static_library('ext4_utils', - libext4_utils_sources, - cpp_args: [ - '-D_FILE_OFFSET_BITS=64', - ], - include_directories: lib_includes, -) - -# crypto_utils -libcrypto_utils_includes = include_directories( - 'lib/libcrypto_utils/include', - 'lib/boringssl/include', -) - -libcrypto_utils = static_library('crypto_utils', - 'lib/libcrypto_utils/android_pubkey.c', - include_directories: libcrypto_utils_includes, -) - -# protobuf -subdir('lib/protobuf') - -libprotobuf_includes = include_directories( - 'lib/protobuf/src', - 'lib/protobuf/android', -) - -libprotobuf = static_library('protobuf-cpp-full', - libprotobuf_sources, - cpp_args: [ - '-DHAVE_ZLIB=1', - ], - include_directories: libprotobuf_includes, -) - -# jsonpb -libjsonpb_includes = [lib_includes, include_directories('lib/libjsonpb/parse/include')] - -libjsonpb = static_library('jsonpbparse', - 'lib/libjsonpb/parse/jsonpb.cpp', - include_directories: libjsonpb_includes, -) - -# crypto -subdir('lib/boringssl') - -libcrypto_cflags = [ - '-DBORINGSSL_IMPLEMENTATION', - '-fvisibility=hidden', - '-DBORINGSSL_SHARED_LIBRARY', - '-DBORINGSSL_ANDROID_SYSTEM', - '-DOPENSSL_SMALL', - '-D_XOPEN_SOURCE=700', -] - -if host_machine.system() != 'linux' - libcrypto_cflags += '-DOPENSSL_NO_ASM' -endif - -libcrypto = static_library('crypto', - libcrypto_sources, - c_args: libcrypto_cflags, - include_directories: 'lib/boringssl/include', -) - -# partition_tools -subdir('partition_tools') -pt_libs = [libbase, liblp, libsparse, libz, libcrypto, liblog, libext4_utils] - -foreach prog : pt_progs - executable(prog[0], - prog[1], - cpp_args: [ - '-D_FILE_OFFSET_BITS=64', - ], - include_directories: lib_includes, - link_with: pt_libs, - install: true, - ) -endforeach - -executable('lpdump', - lpdump_sources, - cpp_args: [ - '-D_FILE_OFFSET_BITS=64', - ], - include_directories: lib_includes, - link_with: [pt_libs, libjsonpb, libprotobuf,], - install: true, -) diff --git a/packaging/dynpart-tools.manifest b/packaging/dynpart-tools.manifest new file mode 100644 index 0000000..da7c9cc --- /dev/null +++ b/packaging/dynpart-tools.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest>
\ No newline at end of file diff --git a/packaging/dynpart-tools.spec b/packaging/dynpart-tools.spec new file mode 100644 index 0000000..6154f4f --- /dev/null +++ b/packaging/dynpart-tools.spec @@ -0,0 +1,48 @@ +Name: dynpart-tools +Summary: Host tools for managing dynamic partitions for Tizen +Version: 1.0 +Release: 1 +Group: Development/Tools +License: Apache-2.0 +URL: https://github.com/LonelyFool/lpunpack_and_lpmake +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest + +BuildRequires: cmake +BuildRequires: zlib-devel +BuildRequires: clang + +ExclusiveArch: x86_64 + +%description +Host tools for managing dynamic partitions for Tizen + +%prep +%setup -q + +%build +%cmake \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + . + +make + +cp %{SOURCE1} . + +%install +mkdir -p %{buildroot}%{_bindir} +cp lpadd %{buildroot}%{_bindir} +cp lpdump %{buildroot}%{_bindir} +cp lpflash %{buildroot}%{_bindir} +cp lpmake %{buildroot}%{_bindir} +cp lpunpack %{buildroot}%{_bindir} + +%files +%manifest dynpart-tools.manifest +%license LICENSE.Apache-2.0 +%{_bindir}/lpadd +%{_bindir}/lpdump +%{_bindir}/lpflash +%{_bindir}/lpmake +%{_bindir}/lpunpack |