initial meson files added
This commit is contained in:
parent
ec0b7cbf0d
commit
ad895abd35
5 changed files with 37 additions and 0 deletions
3
meson.build
Normal file
3
meson.build
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
project('kima2', 'cpp')
|
||||||
|
|
||||||
|
subdir('src')
|
9
src/core/meson.build
Normal file
9
src/core/meson.build
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
boost = dependency('boost', modules :['date_time'])
|
||||||
|
xlnt = dependency('xlnt')
|
||||||
|
sqlite = dependency('sqlite3')
|
||||||
|
|
||||||
|
src = ['database.cpp', 'entity.cpp', 'entityint.cpp', 'entityuuid.cpp',
|
||||||
|
'seller.cpp', 'article.cpp', 'sale.cpp', 'marketplace.cpp',
|
||||||
|
'excelreader.cpp', 'csvreader.cpp', 'jsonutil.cpp', 'utils.cpp']
|
||||||
|
|
||||||
|
core_lib = static_library('core', src, dependencies :[boost, xlnt, sqlite])
|
15
src/gui/meson.build
Normal file
15
src/gui/meson.build
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
qt5 = import('qt5')
|
||||||
|
qt5_dep = dependency('qt5', modules: ['Core', 'Gui', 'PrintSupport'])
|
||||||
|
|
||||||
|
src = ['kima2.cpp', 'mainwindow.cpp', 'sellerdialog.cpp', 'sellermodel.cpp',
|
||||||
|
'pricedialog.cpp', 'basketmodel.cpp', 'salemodel.cpp', 'reportdialog.cpp',
|
||||||
|
'reportmodel.cpp', 'settingsdialog.cpp']
|
||||||
|
|
||||||
|
ui = ['mainwindow.ui', 'sellerdialog.ui', 'pricedialog.ui', 'reportdialog.ui', 'settingsdialog.ui']
|
||||||
|
|
||||||
|
processed = qt5.preprocess(moc_headers : ['basketmodel.h', 'mainwindow.h', 'pricedialog.h', 'reportdialog.h', 'sellerdialog.h', 'settingsdialog.h'],
|
||||||
|
ui_files : ui,
|
||||||
|
qresources : '../../kima2.qrc',
|
||||||
|
dependencies: qt5_dep)
|
||||||
|
|
||||||
|
kima2 = executable('kima2', sources : [src, processed], dependencies : qt5_dep)
|
5
src/meson.build
Normal file
5
src/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
printer = dependency('printer_dep', fallback : ['printer', 'printer_dep'])
|
||||||
|
|
||||||
|
subdir('core')
|
||||||
|
subdir('printer')
|
||||||
|
subdir('gui')
|
5
src/printer/meson.build
Normal file
5
src/printer/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
libusb = dependency('libusb-1.0')
|
||||||
|
|
||||||
|
src = ['posprinter.cpp']
|
||||||
|
|
||||||
|
printer_lib = static_library('printer', src, dependencies: [libusb])
|
Loading…
Reference in a new issue