Commit Graph

201 Commits

Author SHA1 Message Date
Peter Mattern bf3d71f9c0 Add README.md 2016-10-06 22:08:20 +02:00
Alf Gaida 46d8398627 Remove cpack (#107)
* remove "building with cpack" from CMakeLists.txt - not used anymore
* Added very basic .gitattributes
2016-09-30 17:07:28 +02:00
Alf Gaida 89ae60caf3 Bump version ot 0.11.0 (#105) 2016-09-23 23:08:39 +02:00
Palo Kisa 524a6062b3 Settings: Add "homemade" XDG_CONFIG_DIRS support
The LXQt::Settings uses the Qt's QSettings which doesn't support the
xdg spec regarding th XDG_CONFIG_DIRS ->
https://bugreports.qt.io/browse/QTBUG-34919.

This commit adds a workaround by searching the directories for
system wide configuration file and if found, all keys from it are
copied into the user configuration file.
2016-09-14 18:35:02 +02:00
Palo Kisa 177ffdecde translations: Change default translations repository
https://github.com/lxde/translations.git -> https://github.com/lxde/lxqt-l10n.git
2016-08-12 10:26:31 +02:00
Luís Pereira 65a4ce642b Don't lock the screen when it's already locked.
The status of the screensaver wasn't taken into account when locking it.
Now we only lock it if it's not already locked. This way we don't get the
annoying error message stating that there was an error starting the
screensaver.

Part of the code is taken from the Chromium project. Adapted to fit our
purposes.
2016-07-01 12:54:26 +01:00
Palo Kisa 14a78353dd LXQtTranslateTs.cmake: Enable PULL_TRANSLATIONS by default 2016-05-17 22:29:38 +02:00
Palo Kisa d173e0da06 LXQtTranslateTs.cmake: Use/update template in remote repo
...if possible
2016-05-16 14:49:24 +02:00
Palo Kisa a9b89e6142 .gitignore: Cleanup 2016-05-15 23:54:05 +02:00
Palo Kisa c48215910d build: Use external translations 2016-05-15 23:52:59 +02:00
Luís Pereira e9e63adcec Merge branch 'icon-theme-fallback'
* icon-theme-fallback:
  Print warning messages when using the fallback Icon Theme
  Use LXQT_DATA_DIR for fallback icon theme search path
  Sets Oxygen as the only fallback icon theme
2016-05-06 17:38:09 +01:00
Luís Pereira a7255faa46 translations: Fix external translations logic
- Don't try to remove non existing files (If the file doesn't exists
ex_result will contain an error message and fail.)

- Make sure git init doesn't fail (If ${TR_TRANSLATION_DIR} doesn't
exist, git init will fail.)
2016-04-28 19:31:37 +02:00
Palo Kisa a69f584c1e translations: Add external translations support
Translations can now be pulled from external git repository, if enabled
by PULL_TRANSLATIONS.
2016-04-28 19:31:37 +02:00
Luís Pereira 11b396ee7f Adds CMAKE_INSTALL_PREFIX to the LXQt Theme search paths
Just add it as a fallback.
2016-04-20 22:57:06 +01:00
Luís Pereira 1b8a37d687 LXQtCompilerSettings: Add QT_USE_QSTRINGBUILDER to the compile definitions
It makes the '+' will automatically be performed as the QStringBuilder '%'
everywhere.

Disclaimer: This is not entirely source compatible.
2016-04-08 18:50:45 +01:00
Luís Pereira deb65aa5a7 Merge pull request #82 from lxde/translate-add-options
Translate add options
2016-03-18 10:05:09 +00:00
Luís Pereira efea57c1f1 TranslateDesktopTs: Adds UPDATE_OPTIONS options
qtX_add_translation() allows the user to pass OPTIONS to lupdate, but we
didn't provide a way, for the user of lxqt_translate_ts(), to set them.
2016-02-23 11:44:01 +00:00
Luís Pereira 7b5fa4af44 TranslateDesktop: Remove lupdate absolute option
Not needed, it's the default behaviour.
2016-02-22 12:13:37 +00:00
Palo Kisa 6c6d8280c4 TranslateDesktop: Use -a switch in grep commands
As of grep v2.23 some translation files are considered as binary (maybe because of some locale settings)
and then the created .desktop file is malformed. So we force the grep to handle all provided input
files as text.

closes lxde/lxqt#957
2016-02-12 08:11:41 +01:00
Hong Hao 562d394905 Use CMAKE_INSTALL_FULL_DATAROOTDIR 2015-12-01 18:30:56 +00:00
Palo Kisa a5c711abf8 Add LXQT_GRAPHICS_DIR directory definition 2015-11-24 23:06:52 +01:00
Luís Pereira 57be0e77e3 Merge branch 'add-find-package-xdg-user-dirs' 2015-11-21 00:04:30 +00:00
Luís Pereira 6a9d492f47 Adds FindXdgUserDirs CMake find_package module
It will be used to make lxqt-session depended on it.
Referenced at lxde/lxqt#896.
2015-11-18 17:07:43 +00:00
Jerome Leclanche 7105209e6b Release 0.10.0 2015-11-02 09:12:49 +02:00
Palo Kisa f901618a79 pluginTranslation: removed using QStringLiteral as it was causing SEGFAULT in static finalization time 2015-10-16 08:49:01 +02:00
Palo Kisa 3e463ed46a pluginTranslation: add some symbol for referencing (for file to be not stripped out in static linking time) 2015-10-16 08:49:01 +02:00
Luís Pereira 2be990a11a Adds "automatic" plugin translations loader support
Q_COREAPP_STARTUP_FUNCTION can also be used with libs. That's great.

Its part of the solution for https://github.com/lxde/lxqt/issues/766
and the translations loader problems described at
https://github.com/lxde/lxqt-panel/pull/228
2015-10-16 08:49:01 +02:00
Paulo Lieuthier e18f327e18 Rename LxQt to LXQt everywhere 2015-08-29 10:13:38 -03:00
Luís Pereira 139874f95e Handles CMake policy CMP0063
The ``OLD`` behavior for this policy is to ignore the visibility properties
for static libraries, object libraries, and executables without exports.
The ``NEW`` behavior for this policy is to honor the visibility properties
for all target types.

This policy was introduced in CMake version 3.3.  CMake version
3.3.0 warns when the policy is not set and uses ``OLD`` behavior. Use
the ``cmake_policy()`` command to set it to ``OLD`` or ``NEW``
explicitly.

We use NO_POLICY_SCOPE to make the LXQtCompilerSettings commands
affect the includer.
2015-08-07 10:41:30 -07:00
Luís Pereira 14a3662642 Merge branch 'compiler-settings'
* compiler-settings:
  Adds an lxqt_enable_target_exceptions() CMake function
  Adds LXQtCompilerSettings CMake module
2015-07-30 04:03:04 -07:00
Luís Pereira f68ad98df7 Adds an lxqt_enable_target_exceptions() CMake function
Some components need exceptions, e.g, lxqt-globalkeys.
2015-07-28 08:27:47 -07:00
Luís Pereira ee61b02970 Adds LXQtCompilerSettings CMake module
All settings in one place. Easier to search and maintain.
It will also bring performance improvements to some components. We disable
exceptions and set symbol VISIBILITY to hidden.

The settings were split into several categories.
We support GNU and Clang.
2015-07-28 08:14:54 -07:00
Luís Pereira cd9d2b4d51 Merge branch 'build-system'
* build-system:
  LXQtCreatePkgConfigFile.cmake: Makes install COMPONENT configurable
  LXQtTranslateTs.cmake Adds install COMPONENT option
  Adds Runtime install COMPONENT
2015-07-14 09:07:07 -07:00
Luís Pereira ed2134ef52 LXQtCreatePkgConfigFile.cmake: Makes install COMPONENT configurable
Devel remains the default of course.
2015-07-13 16:11:46 -07:00
Luís Pereira db7dbcbb22 LXQtTranslateTs.cmake Adds install COMPONENT option
Defaults to Runtime.
2015-07-13 15:49:59 -07:00
Luís Pereira 8289e06e59 Adds Runtime install COMPONENT
There are two install components:
* Devel Contains all the development files;
* Runtime Contains all the runtime needed files.

It's possible to install:

Everything: make install OR cmake -P cmake_install.cmake
Development files only: cmake -DCOMPONENT=Devel -P cmake_install.cmake
Runtime files only: cmake -DCOMPONENT=Runtime -P cmake_install.cmake

This COMPONENT's can also be used with CPack.
2015-07-13 13:51:49 -07:00
Luís Pereira 419b6b411e Merge branch 'build-system'
* build-system:
  Fixes an SuperBuild/NormalBuild FTBFS
  CMake: Use CMAKE_AUTOUIC, drop qt5_wrap()
  CMake: Quote variables
  CMake: Removes unused variables
2015-07-10 14:53:40 -07:00
Luís Pereira 75bdd667f2 Fixes an SuperBuild/NormalBuild FTBFS
The two weren't interchangeable. If one user compiled in NormalBuild with
SuperBuild already installed it FTBFS.
2015-07-10 14:37:31 -07:00
Luís Pereira 09a6ca6e0d CMake: Use CMAKE_AUTOUIC, drop qt5_wrap() 2015-07-10 05:01:55 -07:00
Luís Pereira e9ff9c497e CMake: Quote variables
Quoting the ones that may have blanks. Blanks break things.
2015-07-09 11:19:17 -07:00
Luís Pereira df17ed6e2b CMake: Removes unused variables
Not used anymore.
2015-07-09 09:16:40 -07:00
Luís Pereira c37d00dfa9 Merge branch 'targets'
* targets:
  Removes LIB_INSTALL_DIR CACHE PATH variable
  Removes deprecated documentation
  Use relative paths in install DESTINATION
  Marks link libraries as PUBLIC
  Use target_compile_definitions() instead of add_definitions()
  Make Release the default build type
  Simplifies build type matching
  lxqt-config.cmake.in: Use find_dependency()
  Updates the build system to the Targets infrastructure
  pkg-config: Adds Qt5Xdg to the required dependencies
  Updates lxqt_create_pkgconfig_file()
  Stops using Qt5Xdg dropped stuff
2015-07-03 03:32:54 -07:00
Luís Pereira 86b6f5afd6 Removes LIB_INSTALL_DIR CACHE PATH variable
It's not used anymore.
2015-06-26 15:24:42 -07:00
Luís Pereira 4eedcc091f Use relative paths in install DESTINATION 2015-06-26 15:22:54 -07:00
Luís Pereira f09f92ea17 Marks link libraries as PUBLIC
This way they will be include in the target INTERFACE_LINK_LIBRARIES.
2015-06-26 15:20:55 -07:00
Luís Pereira 609dd3956b Use target_compile_definitions() instead of add_definitions()
It narrows it's scope. We use cmake generator expressions instead of
matching CMAKE_BUILD_TYPE.
2015-06-26 15:20:48 -07:00
Luís Pereira d7cc3fd978 Make Release the default build type
It wasn't defined.
2015-06-26 15:20:06 -07:00
Luís Pereira 06fb1337ec Simplifies build type matching
Using the idiomatic way.
2015-06-26 15:20:05 -07:00
Luís Pereira 40ea3ca2fb lxqt-config.cmake.in: Use find_dependency()
Replaces find_package() with find_dependency(). From the documentation:

"find_dependency() wraps a find_package() call for a package dependency.
It is designed to be used in a <package>Config.cmake file, and it forwards
the correct parameters for EXACT, QUIET and REQUIRED which were passed to
the original find_package() call. It also sets an informative diagnostic
message if the dependency could not be found."
CMake v3.0.2 or higher or required.
2015-06-26 15:20:05 -07:00
Luís Pereira 0528aaf5f3 Updates the build system to the Targets infrastructure
Drops the include(${USE_FILE}) way. Adopts the Targets way.
2015-06-26 15:16:40 -07:00