Kaydet (Commit) bcd8f9e2 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

make glxtest available in salmain

Change-Id: Ic8bc3f2d5d96506590d35138089ead2eac984314
üst 674c7abb
......@@ -95,8 +95,8 @@ $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
))
ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_exception_objects,sofficeapp,\
desktop/unx/source/glxtest \
$(eval $(call gb_Library_use_static_libraries,sofficeapp,\
glxtest \
))
$(eval $(call gb_Library_add_libs,sofficeapp,\
......
......@@ -16,6 +16,8 @@ VCL_DLLPUBLIC int* getGlxPipe();
VCL_DLLPUBLIC pid_t* getGlxPid();
bool fire_glxtest_process();
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -65,6 +65,13 @@ ifeq ($(OS),LINUX)
$(eval $(call gb_Executable_add_libs,gengal,\
-ldl \
-lpthread \
-lGL \
-lGLU \
-lX11 \
))
$(eval $(call gb_Executable_use_static_libraries,gengal,\
glxtest \
))
endif
......
......@@ -42,4 +42,20 @@ $(eval $(call gb_Executable_add_exception_objects,tiledrendering,\
sw/qa/tiledrendering/tiledrendering \
))
ifeq ($(OS),LINUX)
$(eval $(call gb_Executable_add_libs,tiledrendering,\
-lm \
-ldl \
-lpthread \
-lGL \
-lGLU \
-lX11 \
))
$(eval $(call gb_Executable_use_static_libraries,tiledrendering,\
glxtest \
))
endif
# vim: set noet sw=4 ts=4:
......@@ -24,7 +24,16 @@ $(eval $(call gb_Executable_use_api,icontest,\
ifeq ($(OS),LINUX)
$(eval $(call gb_Executable_add_libs,icontest,\
-lm \
-ldl \
-lpthread \
-lGL \
-lGLU \
-lX11 \
))
$(eval $(call gb_Executable_use_static_libraries,icontest,\
glxtest \
))
else ifeq ($(OS),WNT)
......
......@@ -34,4 +34,19 @@ $(eval $(call gb_Executable_add_exception_objects,ui-previewer,\
vcl/source/uipreviewer/previewer \
))
ifeq ($(OS),LINUX)
$(eval $(call gb_Executable_add_libs,ui-previewer,\
-lm \
-ldl \
-lpthread \
-lGL \
-lGLU \
-lX11 \
))
$(eval $(call gb_Executable_use_static_libraries,ui-previewer,\
glxtest \
))
endif
# vim: set noet sw=4 ts=4:
......@@ -41,4 +41,19 @@ $(eval $(call gb_Executable_use_static_libraries,vcldemo,\
vclmain \
))
ifeq ($(OS),LINUX)
$(eval $(call gb_Executable_add_libs,vcldemo,\
-lm \
-ldl \
-lpthread \
-lGL \
-lGLU \
-lX11 \
))
$(eval $(call gb_Executable_use_static_libraries,vcldemo,\
glxtest \
))
endif
# vim: set noet sw=4 ts=4:
......@@ -47,6 +47,7 @@ $(eval $(call gb_Module_add_targets,vcl,\
Library_vclplug_gen \
Library_desktop_detector \
StaticLibrary_headless \
StaticLibrary_glxtest \
Package_fontunxppds \
Package_fontunxpsprint \
))
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
$(eval $(call gb_StaticLibrary_StaticLibrary,glxtest))
$(eval $(call gb_StaticLibrary_set_include,glxtest,\
$$(INCLUDE) \
-I$(SRCDIR)/vcl/inc \
))
$(eval $(call gb_StaticLibrary_use_api,glxtest,\
offapi \
udkapi \
))
$(eval $(call gb_StaticLibrary_add_libs,glxtest,\
-lm \
-ldl \
-lpthread \
-lGL \
-lGLU \
-lX11 \
))
$(eval $(call gb_StaticLibrary_add_exception_objects,glxtest,\
vcl/unx/glxtest \
))
# vim: set noet sw=4 ts=4:
......@@ -28,7 +28,14 @@
#include "salinst.hxx"
#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID
#include <vcl/opengl/glxtest.hxx>
#endif
SAL_IMPLEMENT_MAIN() {
#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID
fire_glxtest_process();
#endif
tools::extendApplicationEnvironment();
vclmain::createApplication();
return SVMain();
......
......@@ -5,8 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "app.hxx"
//////////////////////////////////////////////////////////////////////////////
//
// Explanation: See bug 639842. Safely getting GL driver info on X11 is hard, because the only way to do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment