Skip to content

Commit b642f41

Browse files
committed
project: use Meson
Autotools is a relic of the past, let it rot in peace. Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
1 parent dd510cf commit b642f41

4 files changed

Lines changed: 58 additions & 105 deletions

File tree

Makefile.am

Lines changed: 0 additions & 38 deletions
This file was deleted.

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,23 @@ making it an invaluable asset for engineers working on complex projects.
2525
3. libwinpthread-1.dll - pthread library for POSIX thread support.
2626
4. libstdc++-6.dll - GNU Standard C++ library providing standard C++ library functions.
2727

28+
On Windows you'll want to grab:
29+
```
30+
choco install meson ninja pkgconfiglite
31+
```
32+
33+
As well as a version of Visual Studio build tools, which are installed as part of the VS installer workflow.
34+
2835
## Building EUD:
29-
30-
1. autoreconf --verbose --force --install
31-
2. ./configure --enable-dll (Ignore --enable-dll if building on linux)
32-
3. make
36+
```
37+
# Windows prerequisite
38+
mkdir subprojects
39+
meson wrap install libusb
40+
41+
# On all platforms
42+
meson build
43+
ninja -C build
44+
```
3345

3446
## License:
35-
EUD is licensed on the GPL-2.0 OR BSD 3-clause "New" or "Revised" License. Check out the [LICENSE](LICENSE.txt) for more details.
47+
EUD is licensed on the GPL-2.0 OR BSD 3-clause "New" or "Revised" License. Check out the [LICENSE](LICENSE.txt) for more details.

configure.ac

Lines changed: 0 additions & 62 deletions
This file was deleted.

meson.build

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
project('eud',
2+
'cpp',
3+
version: '0.1',
4+
# default_options: ['warning_level=1', 'buildtype=release']
5+
)
6+
libeud_srcs = [
7+
'src/eud_error_defines.cpp',
8+
'src/usb.cpp',
9+
'src/device_manager.cpp',
10+
'src/general_api_processing.cpp',
11+
'src/rw_childprocess.cpp',
12+
'src/eud.cpp',
13+
'src/eud_api.cpp',
14+
'src/jtag_eud.cpp',
15+
'src/jtag_api.cpp',
16+
'src/jtag_test.cpp',
17+
'src/com_eud.cpp',
18+
'src/com_api.cpp',
19+
'src/ctl_eud.cpp',
20+
'src/ctl_api.cpp',
21+
'src/trc_eud.cpp',
22+
'src/trc_api.cpp',
23+
'src/swd_eud.cpp',
24+
'src/swd_api.cpp',
25+
]
26+
27+
if build_machine.system() == 'windows'
28+
shared_library('eud',
29+
libeud_srcs,
30+
version: meson.project_version(),
31+
dependencies: dependency('libusb-1.0'),
32+
include_directories : include_directories('inc'),
33+
)
34+
else
35+
static_library('eud',
36+
libeud_srcs,
37+
dependencies: dependency('libusb-1.0'),
38+
include_directories : include_directories('inc'),
39+
cpp_args: '-Wno-narrowing', # TODO: drop me
40+
)
41+
endif

0 commit comments

Comments
 (0)