2011-08-10 02:12:48 +09:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# This file is part of the LibreOffice project.
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# 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/.
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# This file incorporates work covered by the following license notice:
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# 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 .
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_Module_Module,vcl))
|
|
|
|
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
|
|
|
Library_vcl \
|
2014-10-29 22:30:55 +01:00
|
|
|
Package_opengl \
|
2016-02-15 09:15:42 +02:00
|
|
|
$(if $(filter WNT,$(OS)), \
|
|
|
|
Package_opengl_blacklist ) \
|
2013-02-22 23:19:22 +02:00
|
|
|
$(if $(filter DESKTOP,$(BUILD_TYPE)), \
|
2014-05-17 00:39:58 +10:00
|
|
|
StaticLibrary_vclmain \
|
2016-03-04 13:28:20 +01:00
|
|
|
$(if $(ENABLE_MACOSX_SANDBOX),, \
|
|
|
|
$(if $(ENABLE_HEADLESS),, \
|
|
|
|
Executable_ui-previewer)) \
|
2015-09-15 15:58:51 +02:00
|
|
|
$(if $(filter LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \
|
2014-11-07 12:03:28 +01:00
|
|
|
Executable_outdevgrind \
|
2014-12-22 19:10:59 +01:00
|
|
|
$(if $(ENABLE_HEADLESS),, \
|
|
|
|
Executable_vcldemo \
|
|
|
|
Executable_icontest \
|
2016-08-22 18:10:02 +09:00
|
|
|
Executable_visualbackendtest \
|
2014-12-22 19:10:59 +01:00
|
|
|
Executable_mtfdemo ))) \
|
2016-12-15 13:59:27 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
ifeq ($(CROSS_COMPILING)$(DISABLE_DYNLOADING),)
|
|
|
|
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
2014-05-18 13:39:02 +02:00
|
|
|
$(if $(filter-out ANDROID IOS WNT,$(OS)), \
|
2014-05-18 15:56:42 +10:00
|
|
|
Executable_svdemo \
|
2015-07-10 11:04:50 +01:00
|
|
|
Executable_fftester \
|
2014-05-18 16:07:08 +10:00
|
|
|
Executable_svptest \
|
2014-11-07 12:03:28 +01:00
|
|
|
Executable_svpclient) \
|
2011-01-25 17:35:20 +01:00
|
|
|
))
|
|
|
|
|
2016-12-15 13:59:27 +00:00
|
|
|
endif
|
|
|
|
|
2013-11-13 02:12:48 +01:00
|
|
|
$(eval $(call gb_Module_add_l10n_targets,vcl,\
|
|
|
|
AllLangResTarget_vcl \
|
2013-12-16 16:51:35 +01:00
|
|
|
UIConfig_vcl \
|
2013-11-13 02:12:48 +01:00
|
|
|
))
|
|
|
|
|
2015-09-18 14:12:08 +02:00
|
|
|
ifeq ($(USING_X11),TRUE)
|
2011-01-25 17:35:20 +01:00
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
|
|
|
Library_vclplug_gen \
|
|
|
|
Library_desktop_detector \
|
2014-12-22 19:10:59 +01:00
|
|
|
StaticLibrary_glxtest \
|
2014-03-21 15:27:33 +02:00
|
|
|
Package_fontunxppds \
|
|
|
|
Package_fontunxpsprint \
|
2011-01-25 17:35:20 +01:00
|
|
|
))
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_GTK),)
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
2013-10-17 19:42:35 +01:00
|
|
|
Executable_xid_fullscreen_on_all_monitors \
|
2011-01-25 17:35:20 +01:00
|
|
|
Library_vclplug_gtk \
|
|
|
|
))
|
|
|
|
endif
|
2011-06-14 14:07:28 +01:00
|
|
|
ifneq ($(ENABLE_GTK3),)
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
|
|
|
Library_vclplug_gtk3 \
|
|
|
|
))
|
|
|
|
endif
|
2012-05-14 20:09:41 -05:00
|
|
|
ifneq ($(ENABLE_TDE),)
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
|
|
|
CustomTarget_tde_moc \
|
|
|
|
Executable_tdefilepicker \
|
|
|
|
Library_vclplug_tde \
|
|
|
|
))
|
|
|
|
endif
|
2011-01-25 17:35:20 +01:00
|
|
|
ifneq ($(ENABLE_KDE4),)
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
2012-03-28 19:45:12 +02:00
|
|
|
CustomTarget_kde4_moc \
|
2011-01-25 17:35:20 +01:00
|
|
|
Library_vclplug_kde4 \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-12-11 23:06:47 +02:00
|
|
|
ifeq ($(OS),MACOSX)
|
2011-01-28 13:43:38 +01:00
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
2013-04-28 18:11:56 +02:00
|
|
|
Package_osxres \
|
2011-01-28 13:43:38 +01:00
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
2012-12-11 23:06:47 +02:00
|
|
|
ifeq ($(OS),WNT)
|
2011-03-23 17:32:53 +01:00
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
|
|
|
WinResTarget_vcl \
|
|
|
|
))
|
|
|
|
endif
|
2011-01-25 17:35:20 +01:00
|
|
|
|
2016-12-05 12:10:47 +00:00
|
|
|
ifneq ($(ENABLE_FUZZERS),)
|
|
|
|
$(eval $(call gb_Module_add_targets,vcl,\
|
2016-12-16 09:03:33 +00:00
|
|
|
CustomTarget_nativecode \
|
2016-12-30 15:30:20 +00:00
|
|
|
StaticLibrary_fuzzer \
|
2016-12-05 12:59:08 +00:00
|
|
|
Executable_wmffuzzer \
|
2016-12-30 15:30:20 +00:00
|
|
|
Executable_jpgfuzzer \
|
2017-01-03 18:41:22 +00:00
|
|
|
Executable_giffuzzer \
|
2017-01-06 12:21:56 +00:00
|
|
|
Executable_xbmfuzzer \
|
2017-01-07 20:29:35 +00:00
|
|
|
Executable_xpmfuzzer \
|
2017-01-08 20:54:02 +00:00
|
|
|
Executable_pngfuzzer \
|
2017-01-08 21:20:56 +00:00
|
|
|
Executable_bmpfuzzer \
|
2017-01-09 10:06:07 +00:00
|
|
|
Executable_svmfuzzer \
|
2017-01-09 17:04:27 +00:00
|
|
|
Executable_pcdfuzzer \
|
2016-12-05 12:10:47 +00:00
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
2013-01-02 22:07:41 +01:00
|
|
|
$(eval $(call gb_Module_add_check_targets,vcl,\
|
2015-06-05 12:49:05 +01:00
|
|
|
CppunitTest_vcl_lifecycle \
|
2015-03-25 11:35:55 +09:00
|
|
|
CppunitTest_vcl_bitmap_test \
|
2014-10-04 21:55:58 +10:00
|
|
|
CppunitTest_vcl_fontcharmap \
|
2016-01-15 17:33:17 +11:00
|
|
|
CppunitTest_vcl_font \
|
vcl: Create accessor and mutator for font scaling in FontMetric
This is fragile code! There are actually *two* classes that do almost
precisely the same thing, they are:
- ImplFontMetric, and
- ImplFontMetricData
They both have much in common, including their class name, and even
most of their functionality. In fact, they both have common accessor
functions. When I look at the code, it looks like OutputDevice is
actually given an ImplFontMetricData object, which it then uses to
populate an ImplFontMetric object...
Basically, I'm going to merge these classes. To do so, I'm going to
do the following:
Step 1: Implement accessor functions for ImplFontMetric and FontMetric
(then remove the friendship of this class to OutputDevice!)
Step 2: Write a unit test for each accessor function in ImplFontMetric
Step 3: Ensure that ImplFontMetric and ImplFontMetricData use some
sort of smart pointer (probably an intrusive_ptr like I did
ages ago with FontCharMap)
Step 4: Merge the two classes together once their class interfaces
are the same and I am satisfied they do the same thing
Step 5: Find all instances of inefficient usage - for instance, I can
do away with the code that copies the ImplFontMetricData
attributes into an ImplFontMetric object.
Change-Id: I07c1cb848774b130fa2ca60b51da53e07754dd00
Reviewed-on: https://gerrit.libreoffice.org/21399
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-13 03:05:29 +11:00
|
|
|
CppunitTest_vcl_fontmetric \
|
2013-06-15 20:51:38 +01:00
|
|
|
CppunitTest_vcl_complextext \
|
2016-01-21 10:19:13 +01:00
|
|
|
CppunitTest_vcl_filters_test \
|
2016-02-13 16:08:01 +11:00
|
|
|
CppunitTest_vcl_mapmode \
|
2014-11-28 16:11:25 +00:00
|
|
|
CppunitTest_vcl_outdev \
|
2014-02-09 00:53:28 +01:00
|
|
|
CppunitTest_vcl_app_test \
|
2016-08-30 16:20:11 +02:00
|
|
|
$(if $(MERGELIBS),,CppunitTest_vcl_wmf_test) \
|
2016-09-28 20:22:44 +02:00
|
|
|
CppunitTest_vcl_jpeg_read_write_test \
|
2013-01-02 22:07:41 +01:00
|
|
|
))
|
|
|
|
|
2014-12-22 19:10:59 +01:00
|
|
|
|
2015-09-18 14:12:08 +02:00
|
|
|
ifeq ($(USING_X11),TRUE)
|
2014-09-25 11:22:39 +01:00
|
|
|
$(eval $(call gb_Module_add_check_targets,vcl,\
|
|
|
|
CppunitTest_vcl_timer \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
2014-12-22 19:10:59 +01:00
|
|
|
ifeq ($(ENABLE_HEADLESS),TRUE)
|
|
|
|
$(eval $(call gb_Module_add_check_targets,vcl,\
|
|
|
|
CppunitTest_vcl_timer \
|
|
|
|
))
|
|
|
|
endif
|
2015-08-20 21:06:06 -04:00
|
|
|
|
2015-08-28 10:43:46 +03:00
|
|
|
# Is any configuration missing?
|
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(eval $(call gb_Module_add_check_targets,vcl,\
|
|
|
|
CppunitTest_vcl_timer \
|
2016-02-15 15:10:03 +01:00
|
|
|
CppunitTest_vcl_blocklistparser_test \
|
2015-08-28 10:43:46 +03:00
|
|
|
))
|
|
|
|
endif
|
2016-07-22 17:36:02 +02:00
|
|
|
|
2016-08-17 09:43:33 +02:00
|
|
|
# screenshots
|
|
|
|
$(eval $(call gb_Module_add_screenshot_targets,vcl,\
|
2016-07-22 17:36:02 +02:00
|
|
|
CppunitTest_vcl_dialogs_test \
|
|
|
|
))
|
|
|
|
|
2011-01-25 17:35:20 +01:00
|
|
|
# vim: set noet sw=4 ts=4:
|