testing-repository/Gtkmm3/gtk90_css_test/meson.build

27 lines
729 B
Meson

#A Simple Project Test
project('gtk90', 'cpp',
default_options : ['c_std=c17', 'cpp_std=c++17'])
#Initalize variants
gnome=import('gnome')
#Compile Resource
gresources = gnome.compile_resources(
'resources', 'res/gtk89.resource.xml',
source_dir: 'res',
c_name: 'resources'
)
#The Gtkmm Library as a dependency
gtkdep = dependency('gtkmm-3.0')
#Use Different Build Opinions in windows and Linux
if host_machine.system() == 'windows'
win=import('windows')
icon_res=win.compile_resources('icon.rc')
executable('gtk90', icon_res, 'src/main.cc', gresources, dependencies : gtkdep,
win_subsystem : 'windows')
else
executable('gtk90', 'src/main.cc', gresources, dependencies : gtkdep)
endif