mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
d12ab27c8e
gdk and gsk are no longer separate libs but part of gtk now, so any Gtk+ user should just link to gtk, there's no need to additionally link against all those static helper libs that go into the gtk lib. This means we need to specifically add confinc to include_directories in more places to make sure the right config.h (i.e. ours) gets included and not a subproject's like graphene's config.h. Not dragging in static libs also fixes the issue of all executables having to be relinked for any and all changes. With this change it's super-fast now and can be skipped for most changes that don't touch the external ABI.
154 lines
3.5 KiB
Meson
154 lines
3.5 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'],
|
|
['testclipboard'],
|
|
['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'],
|
|
['testimage'],
|
|
['testinput'],
|
|
['testkineticscrolling'],
|
|
['testlist'],
|
|
['testlist2'],
|
|
['testlist3'],
|
|
['testlevelbar'],
|
|
['testlockbutton'],
|
|
['testmenubutton'],
|
|
['testmountoperation'],
|
|
['testmultidisplay'],
|
|
['testnotebookdnd'],
|
|
['testnouiprint'],
|
|
['testorientable'],
|
|
['testoverlay'],
|
|
['testoverlaystyleclass'],
|
|
['testprint', ['testprintfileoperation.c']],
|
|
['testrecentchooser'],
|
|
['testrecentchoosermenu'],
|
|
['testrichtext'],
|
|
['testscale'],
|
|
['testselection'],
|
|
['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'],
|
|
['testtoplevelembed'],
|
|
['testnoscreen'],
|
|
['testtreepos'],
|
|
['testsensitive'],
|
|
['testtextview'],
|
|
['testanimation'],
|
|
['testpixbuf-scale'],
|
|
['testgmenu'],
|
|
['testlogout'],
|
|
['teststack'],
|
|
['testrevealer'],
|
|
['testrevealer2'],
|
|
['testtitlebar'],
|
|
['testsplitheaders'],
|
|
['teststackedheaders'],
|
|
['testactionbar'],
|
|
['testwindowsize'],
|
|
['testpopover'],
|
|
['gdkgears', ['gtkgears.c']],
|
|
['listmodel'],
|
|
['testpopup'],
|
|
['testpopupat'],
|
|
['testgaction'],
|
|
]
|
|
|
|
if os_linux
|
|
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')
|