testing-repository/Gtkmm3/gtk108_settings/meson.build

36 lines
1.0 KiB
Meson
Raw Normal View History

2021-09-10 21:35:21 +08:00
#A Simple Project Test
2021-09-10 21:40:32 +08:00
project('gtk108', 'cpp',
2021-09-10 21:35:21 +08:00
default_options : ['c_std=c17', 'cpp_std=c++17'])
#Initalize variants
gnome=import('gnome')
#Compile Resource
gresources = gnome.compile_resources(
2021-09-10 21:40:32 +08:00
'resources', 'res/gtk108.resource.xml',
2021-09-10 21:35:21 +08:00
source_dir: 'res',
c_name: 'resources'
)
#compile schemas
app_schemas = gnome.compile_schemas(depend_files: 'org.gtk.daleclack.gschema.xml')
#The Gtkmm Library as a dependency
gtkdep = dependency('gtkmm-3.0')
#Additional include dirs
dir_include = include_directories('..')
#source files
2021-09-11 11:18:23 +08:00
src=['src/main.cc', 'src/MyWin.cc', 'src/MyPrefs.cc']
2021-09-10 21:35:21 +08:00
#Use Different Build Opinions in windows and Linux
if host_machine.system() == 'windows'
win=import('windows')
icon_res=win.compile_resources('../icon.rc')
2021-09-10 21:40:32 +08:00
executable('gtk108', icon_res, src, gresources, dependencies : gtkdep, app_schemas,
2021-09-10 21:35:21 +08:00
win_subsystem : 'windows', include_directories : dir_include)
else
2021-09-10 21:40:32 +08:00
executable('gtk108', src, gresources, app_schemas, dependencies : gtkdep, include_directories : dir_include)
2021-09-10 21:35:21 +08:00
endif