Commit Graph

119 Commits

Author SHA1 Message Date
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
Anton Kochkov
e3d11b989c Fix Linux build 2018-06-11 11:02:49 +08:00
pancake
c52c7bace3 Fix #10300 - Link issues --with-sysmagic 2018-06-11 03:36:45 +02:00
Paul I
cad927a591 Meson: add rule for tags.r2 (#10215) 2018-05-28 23:25:48 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
Paul I
9c0d682e60 Meson: Invoke python via <python3> module + some little fixes (#9594)
* Meson: Invoke python via <python3> module

* Meson: Added version check

* Meson: Disable git output for capstone cloning command
2018-03-06 08:28:40 +01:00
Paul I
13f7013696 Meson: Added sdb building/installation rules (#9575) 2018-03-05 00:10:28 +01:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
pancake
040dbad8a3 Add mach code signature magic entry 2018-03-01 19:03:20 +01:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
whitequark
0f97fdd228 Fix numerous issues with pkgconfig files.
* Modifications like adding @SSL_CFLAGS@ to .pc.acr files that
    would be overwritten by `make pkgcfg` have been moved to
    Makefiles proper.
  * Missing .pc.acr files for libraries r_egg and r_crypto were
    added to the tree as well as the configure script.
  * Instead of explicitly listing every -lr_* library in every
    .pc file in the Libs: section, r_* libraries are now listed
    in the Requires: section, which ensures that flags get
    transitively propagated. This gets rid of the MAGICSED hack.
2018-01-11 23:09:22 +01:00
Khairul Kasmiran
1db08bb498 Fixed r_magic_version prototype warning 2017-12-31 20:29:09 +08:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
pancake
1926ad859a Fix make symstall with relative paths 2017-10-18 17:53:00 +02:00
Fangrui Song
c1472e6630 Leak fixes (#8060) 2017-07-30 03:57:02 +02:00
pancake
abaac71290 Fix last covs 2017-07-26 18:46:29 +02:00
Anton Kochkov
0e9a5fff34 Fix a few {A,M,UB}SAN complaints 2017-07-26 20:54:52 +08:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
Lowly Worm
192dbad64e fix a few covs for out of bounds reads/writes
from fencepost errors
2017-06-03 01:21:07 -04:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
Anton Kochkov
82e41828ac Fix Cygwin build [2] 2017-04-17 19:30:39 +08:00
Marcel
a4fc91f29b Remove dirent.h dependency for Windows and add utf16<->utf8 conversion function 2017-04-15 13:07:33 +02:00
Álvaro Felipe Melchor
6870bec29f Fix #6853 - get rid of asserts 2017-03-12 15:24:05 +01:00
pancake
485f1ff834 Fix #6176 - Avoid using non-gnu-friendly format types in magic files 2017-03-12 11:46:38 +01:00
pancake
fe1094fe5e Remove noisy magic and fix indent in anal/bb 2016-12-26 04:42:18 +01:00
pancake
8cc53279dc Add X86/MBR DOS/FAT magic signature 2016-12-24 02:04:22 +01:00
Álvaro Felipe Melchor
88d4649cc6 fix more coverities 2016-12-19 17:23:30 +01:00
pancake
0111506292 Fix STRLCPY macro from regex and fix 1 byte overflow CID 2016-12-19 03:23:49 +01:00
Sebastian Reichel
0deb096ea7 Fix magic files (#6178)
* magic: fix 'Printf format is too long' warnings

* magic: fix warning: Current entry does not yet have a description for adding a MIME type

* magic: fix mime type for debian packages

* magic: workaround for libmagic bug

libmagic currently warns about beshort/leshort type being
printed as "%hd" with the following warning:

Printf format is too long for type `leshort' in description `%hd'

As a workaround the short value can be printed using '%d'
without generating a warning.
2016-11-12 11:10:09 +01:00
Sebastian Reichel
e9383b1441 Arch independent data in share (#6183)
* magic data is architecture independent

* fcnsign data is architecture independent

* opcode data is architecture independent

* syscall data is architecture independent

* hud data is architecture independent
2016-11-12 11:08:34 +01:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
pancake
aae417badf More OSX-PPC fixes 2016-04-27 01:52:35 +02:00
pancake
ed82bfd59c Fix double free in libmagic pointed out by clang-analyzer 2015-11-02 12:21:17 +01:00
xambroz
d448260816 build cleanup focused on possibility to control the lib directories with the build parameters
needed mainly for RedHat/Fedora builds
2015-10-27 03:26:45 +01:00
pancake
74ccde1168 Fix softmagic crash in PE bin (reported by @daniel-rome) 2015-09-21 12:51:01 +02:00
pancake
90f8ec4ff8 Fix #3297 - make install after make symstall 2015-09-17 11:11:24 +02:00
jvoisin
dba909b1dd Fix yet-another-batch of clang-analyzer issues 2015-09-01 23:24:11 +02:00
pancake
9c8c017f40 Fix #3192 - dsojson double free and code cleanup (-34LOC) 2015-08-31 21:58:59 +02:00
pancake
c576ca036b Detect shellscripts with pm 2015-06-29 11:36:50 +02:00