2021-07-05 19:57:22 +08:00
|
|
|
#A Simple Project Test
|
2021-07-05 20:26:13 +08:00
|
|
|
project('gtk93', 'cpp',
|
2021-07-05 19:57:22 +08:00
|
|
|
default_options : ['c_std=c17', 'cpp_std=c++17'])
|
|
|
|
|
|
|
|
#Initalize variants
|
|
|
|
# gnome=import('gnome')
|
|
|
|
|
|
|
|
#Compile Resource
|
|
|
|
# gresources = gnome.compile_resources(
|
|
|
|
# 'resources', 'res/gtk91.resource.xml',
|
|
|
|
# source_dir: 'res',
|
|
|
|
# c_name: 'resources'
|
|
|
|
# )
|
|
|
|
|
|
|
|
#The Gtkmm Library as a dependency
|
2021-07-05 20:26:13 +08:00
|
|
|
gtkdep = dependency('gtkmm-4.0')
|
2021-07-05 19:57:22 +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-07-05 20:26:13 +08:00
|
|
|
executable('gtk93', icon_res, 'src/main.cc', 'src/MyWin.cc', dependencies : gtkdep,
|
2021-07-05 19:57:22 +08:00
|
|
|
win_subsystem : 'windows')
|
|
|
|
else
|
2021-07-05 20:26:13 +08:00
|
|
|
executable('gtk93', 'src/main.cc', 'src/MyWin.cc', dependencies : gtkdep)
|
2021-07-05 19:57:22 +08:00
|
|
|
endif
|