##// END OF EJS Templates
meson WIP
jeandet -
r117:25f6868b4126 0.6 draft
parent child
Show More
@@ -0,0 +1,10
1 project('SocExplorer','c','cpp')
2
3 qt5_mod = import('qt5')
4 qt5widgets = dependency('qt5', modules: ['Gui'])
5 qt5printsupport = dependency('qt5', modules: ['PrintSupport'])
6 qt5network = dependency('qt5', modules: ['Network'])
7 qt5svg = dependency('qt5', modules: ['Svg'])
8 pkg = import('pkgconfig')
9
10 subdir('src')
@@ -0,0 +1,90
1 moc_headers=[
2 'QCustomPlot/qcustomplot.h',
3 'SocExplorerPlot.h',
4 'tcp_terminal_client.h',
5 'genericBinaryFiles/elf/elfinfowdgt.h',
6 'genericBinaryFiles/elf/elffile.h',
7 'genericBinaryFiles/elf/elffilewidget.h',
8 'qipdialogbox.h',
9 'genericBinaryFiles/srec/srecfile.h',
10 'genericBinaryFiles/srec/srecfilewidget.h',
11 'genericBinaryFiles/BinFile/binaryfile.h',
12 'genericBinaryFiles/BinFile/binaryfilewidget.h',
13 'genericBinaryFiles/genericbinaryfilewidget.h',
14 'genericBinaryFiles/abstractbinfile.h',
15 'genericBinaryFiles/qvpushbutton.h',
16 'genericBinaryFiles/filelist.h',
17 'qhexedit/qhexedit.h',
18 'qhexedit/qhexedit_p.h',
19 'memsizewdgt.h',
20 'qhexspinbox.h',
21 ]
22
23 moc_sources=[]
24
25 ui_files = [
26 'genericBinaryFiles/elf/elffilewidget.ui',
27 'genericBinaryFiles/srec/srecfilewidget.ui',
28 'genericBinaryFiles/BinFile/binaryfilewidget.ui',
29 'genericBinaryFiles/genericbinaryfilewidget.ui']
30
31 processed = qt5_mod.preprocess(
32 moc_headers : moc_headers, # Only headers that need moc should be put here
33 moc_sources : moc_sources, # must have #include"moc_helperFile.cpp"
34 ui_files : ui_files,
35 qresources : ['genericBinaryFiles/ressources/genericBinaryFiles.qrc']
36 )
37
38 if target_machine.system() == 'windows'
39 lppserial_sources = 'lppserial/src/RS232_win.c'
40 else
41 lppserial_sources = 'lppserial/src/RS232_unix.c'
42 endif
43
44 sources = [
45 lppserial_sources,
46 'qsvgicon.cpp',
47 'genericBinaryFiles/elf/elfparser.cpp',
48 'genericBinaryFiles/qtablewidgetintitem.cpp',
49 'genericBinaryFiles/genericbinaryfilewidget.cpp',
50 'qhexedit/xbytearray.cpp',
51 'qhexedit/commands.cpp',
52 'memsizewdgt.cpp',
53 'qhexspinbox.cpp',
54 'qhexedit/qhexedit_p.cpp',
55 'qhexedit/qhexedit.cpp',
56 'QCustomPlot/qcustomplot.cpp',
57 'tcp_terminal_client.cpp',
58 'genericBinaryFiles/elf/elfinfowdgt.cpp',
59 'genericBinaryFiles/elf/elffile.cpp',
60 'qipdialogbox.cpp',
61 'SocExplorerPlot.cpp',
62 'genericBinaryFiles/elf/elffilewidget.cpp',
63 'genericBinaryFiles/srec/srecfile.cpp',
64 'genericBinaryFiles/srec/srecfilewidget.cpp',
65 'genericBinaryFiles/abstractbinfile.cpp',
66 'genericBinaryFiles/BinFile/binaryfile.cpp',
67 'genericBinaryFiles/BinFile/binaryfilewidget.cpp',
68 'genericBinaryFiles/qvpushbutton.cpp',
69 'genericBinaryFiles/filelist.cpp',
70 processed
71 ]
72
73 inc = ['QCustomPlot','genericBinaryFiles','genericBinaryFiles/srec','genericBinaryFiles/BinFile','qhexedit']
74
75 libelf = dependency('libelf', fallback:['libelf','libelf_dep'])
76
77 socexplorercommon = shared_library('socexplorercommon',
78 sources,
79 include_directories: include_directories(inc),
80 dependencies: [qt5widgets, qt5printsupport, qt5network, qt5svg,libelf],
81 install: true
82 )
83
84
85 pkg.generate(libraries : socexplorercommon,
86 subdirs : inc,
87 version : '1.0',
88 name : 'libsocexplorercommon',
89 filebase : 'socexplorercommon',
90 description : 'SocExplorer common.')
@@ -0,0 +1,1
1 subdir('common')
@@ -0,0 +1,11
1 [wrap-file]
2 directory = libelf-0.8.13
3
4 source_url = http://www.mr511.de/software/libelf-0.8.13.tar.gz
5 source_filename = libelf-0.8.13.tar.gz
6 source_hash = 591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d
7
8 patch_url = file:///home/jeandet/Téléchargements/test/libelf-wrap-0.8.13.zip
9 patch_filename = libelf-wrap-0.8.13.zip
10 patch_hash = 37c3a3a47240e4fb06400263b8e2183333f5f9ef405dfcc28074da269e191f73
11
General Comments 0
You need to be logged in to leave comments. Login now