Browse Source

initial meson files added

master
Martin Brodbeck 2 years ago
parent
commit
ad895abd35
  1. 3
      meson.build
  2. 9
      src/core/meson.build
  3. 15
      src/gui/meson.build
  4. 5
      src/meson.build
  5. 5
      src/printer/meson.build

3
meson.build

@ -0,0 +1,3 @@
project('kima2', 'cpp')
subdir('src')

9
src/core/meson.build

@ -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

@ -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

@ -0,0 +1,5 @@
printer = dependency('printer_dep', fallback : ['printer', 'printer_dep'])
subdir('core')
subdir('printer')
subdir('gui')

5
src/printer/meson.build

@ -0,0 +1,5 @@
libusb = dependency('libusb-1.0')
src = ['posprinter.cpp']
printer_lib = static_library('printer', src, dependencies: [libusb])
Loading…
Cancel
Save