forked from AuroraMiddleware/gtk
testsuite/css: Add common_cflags to build
And fix all the errors coming from that.
This commit is contained in:
parent
79c60bb7fd
commit
01bd7910ce
@ -4,6 +4,7 @@ testdatadir = join_paths(installed_test_datadir, 'css')
|
|||||||
test_change = executable(
|
test_change = executable(
|
||||||
'test-css-change',
|
'test-css-change',
|
||||||
'test-css-change.c',
|
'test-css-change.c',
|
||||||
|
c_args: common_cflags,
|
||||||
dependencies: libgtk_dep,
|
dependencies: libgtk_dep,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
install_dir: testexecdir,
|
install_dir: testexecdir,
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
/* There shall be no other styles */
|
/* There shall be no other styles */
|
||||||
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
|
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
|
||||||
|
|
||||||
char *
|
static char *
|
||||||
test_get_other_file (const char *ui_file, const char *extension)
|
test_get_other_file (const char *ui_file, const char *extension)
|
||||||
{
|
{
|
||||||
GString *file = g_string_new (NULL);
|
GString *file = g_string_new (NULL);
|
||||||
|
@ -7,6 +7,7 @@ testexecdir = join_paths(installed_test_bindir, 'css')
|
|||||||
testdatadir = join_paths(installed_test_datadir, 'css')
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
||||||
|
|
||||||
test_api = executable('api', 'api.c',
|
test_api = executable('api', 'api.c',
|
||||||
|
c_args: common_cflags,
|
||||||
dependencies: libgtk_dep,
|
dependencies: libgtk_dep,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
install_dir: testexecdir)
|
install_dir: testexecdir)
|
||||||
@ -23,6 +24,7 @@ test('api', test_api,
|
|||||||
suite: 'css')
|
suite: 'css')
|
||||||
|
|
||||||
test_data = executable('data', ['data.c', '../../gtk/css/gtkcssdataurl.c'],
|
test_data = executable('data', ['data.c', '../../gtk/css/gtkcssdataurl.c'],
|
||||||
|
c_args: common_cflags,
|
||||||
include_directories: [confinc, ],
|
include_directories: [confinc, ],
|
||||||
dependencies: gtk_deps,
|
dependencies: gtk_deps,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
|
@ -2,6 +2,7 @@ testexecdir = join_paths(installed_test_bindir, 'css', 'nodes')
|
|||||||
testdatadir = join_paths(installed_test_datadir, 'css')
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
||||||
|
|
||||||
test_nodes = executable('test-css-nodes', 'test-css-nodes.c',
|
test_nodes = executable('test-css-nodes', 'test-css-nodes.c',
|
||||||
|
c_args: common_cflags,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
install_dir: testexecdir,
|
install_dir: testexecdir,
|
||||||
dependencies: libgtk_dep)
|
dependencies: libgtk_dep)
|
||||||
|
@ -2,6 +2,7 @@ testexecdir = join_paths(installed_test_bindir, 'css', 'parser')
|
|||||||
testdatadir = join_paths(installed_test_datadir, 'css')
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
||||||
|
|
||||||
test_parser = executable('test-css-parser', 'test-css-parser.c',
|
test_parser = executable('test-css-parser', 'test-css-parser.c',
|
||||||
|
c_args: common_cflags,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
install_dir: testexecdir,
|
install_dir: testexecdir,
|
||||||
dependencies: libgtk_dep)
|
dependencies: libgtk_dep)
|
||||||
|
@ -11,6 +11,7 @@ test_style = executable(
|
|||||||
'test-css-style',
|
'test-css-style',
|
||||||
'test-css-style.c',
|
'test-css-style.c',
|
||||||
cssresources,
|
cssresources,
|
||||||
|
c_args: common_cflags,
|
||||||
dependencies: libgtk_dep,
|
dependencies: libgtk_dep,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
install_dir: testexecdir,
|
install_dir: testexecdir,
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
/* There shall be no other styles */
|
/* There shall be no other styles */
|
||||||
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
|
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
|
||||||
|
|
||||||
char *
|
static char *
|
||||||
test_get_other_file (const char *ui_file, const char *extension)
|
test_get_other_file (const char *ui_file, const char *extension)
|
||||||
{
|
{
|
||||||
GString *file = g_string_new (NULL);
|
GString *file = g_string_new (NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user