gtk2/tests/meson.build
Ting-Wei Lan f922109a9c build: Make the default setting work on non-Linux Unix-like systems
All of the four platform-dependent backends are enabled by default. It
is usually a good default because it requires users to explicitly choose
backends they want to use. Rules in meson.build also automatically
disable unavailable backends for macOS, Windows, Linux, so users on
these 3 major platforms don't have to manually disable things when
running meson commands.

However, meson.build doesn't do the same thing for other Unix-like
systems, which is acceptable but not ideal. To make it easier to build
GTK+ on these systems, the Linux case, which enables X11 and Wayland and
disables Win32 and Quartz, is made the default for all operating systems
that are not Windows or macOS.

This commit also changes most 'host_machine.system()' calls to os_*
variables, which are easier to read and less likely to be used wrongly.
2018-04-22 21:57:10 +08:00

158 lines
3.6 KiB
Meson

gtk_tests = [
# testname, optional extra sources
['rendernode'],
['rendernode-create-tests'],
['overlayscroll'],
['syncscroll'],
['animated-resizing', ['frame-stats.c', 'variable.c']],
['animated-revealing', ['frame-stats.c', 'variable.c']],
['motion-compression'],
['scrolling-performance', ['frame-stats.c', 'variable.c']],
['blur-performance', ['../gsk/gskcairoblur.c']],
['simple'],
['flicker'],
['print-editor'],
['video-timer', ['variable.c']],
['testaccel'],
['testadjustsize'],
['testappchooser'],
['testappchooserbutton'],
['testassistant'],
['testbaseline'],
['testbbox'],
['testbox'],
['testboxcss'],
['testbuttons'],
['testcairo'],
['testcalendar'],
['testclipboard2'],
['testcolorchooser'],
['testcolorchooser2'],
['testcombo'],
['testcombochange'],
['testcellrenderertext'],
['testdialog'],
['testdnd'],
['testdnd2'],
['testellipsise'],
['testemblems'],
['testentrycompletion'],
['testentryicons'],
['testfilechooser'],
['testfilechooserbutton'],
['testflowbox'],
['testfontchooser'],
['testfontoptions'],
['testframe'],
['testfullscreen'],
['testgiconpixbuf'],
['testglarea'],
['testglblending', ['gtkgears.c']],
['testgrid'],
['testgtk'],
['testheaderbar'],
['testheightforwidth'],
['testiconview'],
['testiconview-keynav'],
['testicontheme'],
['testinfobar'],
['testimage'],
['testinput'],
['testkineticscrolling'],
['testlist'],
['testlist2'],
['testlist3'],
['testlist4'],
['testlevelbar'],
['testlockbutton'],
['testmenubutton'],
['testmodelbutton'],
['testmountoperation'],
['testnotebookdnd'],
['testnouiprint'],
['testorientable'],
['testoverlay'],
['testoverlaystyleclass'],
['testprint', ['testprintfileoperation.c']],
['testscale'],
['testselectionmode'],
['testspinbutton'],
['testtoolbar'],
['testtoolbar2'],
['stresstest-toolbar'],
['testtreechanging'],
['testtreednd'],
['testtreeedit'],
['testtreemodel'],
['testtreeview'],
['testtreefocus'],
['testtreeflow'],
['testtreecolumns'],
['testtreecolumnsizing'],
['testtreesort'],
['testverticalcells'],
['treestoretest'],
['testxinerama'],
['testgrouping'],
['testtooltips'],
['testexpand'],
['testexpander'],
['testvolumebutton'],
['testscrolledwindow'],
['testscrolledge'],
['testcellarea'],
['testswitch'],
['testnoscreen'],
['testtreepos'],
['testsensitive'],
['testtextview'],
['testpixbuf-scale'],
['testgmenu'],
['testlogout'],
['teststack'],
['testrevealer'],
['testrevealer2'],
['testtitlebar'],
['testsplitheaders'],
['teststackedheaders'],
['testactionbar'],
['testwindowsize'],
['testpopover'],
['gdkgears', ['gtkgears.c']],
['listmodel'],
['testpopup'],
['testpopupat'],
['testgaction'],
['testwidgetfocus'],
['testcenterbox'],
['testgridbaseline'],
['showrendernode'],
['testborderdrawing'],
['testoutsetshadowdrawing'],
['testblur'],
['testtexture'],
]
if os_unix
gtk_tests += [['testfontchooserdialog']]
endif
if x11_enabled
gtk_tests += [['testerrors']]
endif
# Pass the source dir here so programs can change into the source directory
# and find .ui files and .png files and such that they load at runtime
test_args = ['-DGTK_SRCDIR="@0@"'.format(meson.current_source_dir())]
foreach t: gtk_tests
test_name = t.get(0)
test_srcs = ['@0@.c'.format(test_name), t.get(1, [])]
executable(test_name, test_srcs,
include_directories: [confinc, gdkinc],
c_args: test_args,
dependencies: [libgtk_dep, libm])
endforeach
subdir('visuals')