1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-12-02 02:05:41 +00:00
Commit graph

25 commits

Author SHA1 Message Date
a48742c0b0 Add a DINDEXER_INST_MODE cmake switch.
Attempt to clean up the path mess in cmake and improve scalability.
Previously, paths such as action search path and config file path had to
be given manually and were likely to be wrong if running make install or
if running the program from the build directory directly.

This commit introduces set_switchable(), along with the
DINDEXER_INST_MODE. Whenever relevant, paths come with a regular and an
INST variant (eg: DINDEXER_QML_PATH and DINDEXER_INST_QML_PATH), which
are CACHE variables so users can customize them and expect their setting
to be persistent.
set_switchable() then sets a CURR variant of the same variable (eg:
DINDEXER_CURR_QML_PATH), which is set to either of the above two values
depending on if DINDEXER_INST_MODE is on or off. This way the rest of
the cmake code can just use the CURR variable and expect it to be set to
the right value.
2016-10-12 23:08:29 +02:00
17689af906 Conditionally build the Qt5 gui project.
Take the chance to introduce cmake_dependent_option. Using
it for some of the old options as well.
2016-08-10 01:30:28 +02:00
062b927d39 Add unlicense license to flat_git. 2016-07-15 15:47:21 +01:00
2f6c4f3dab Remove incredis and import it as a submodule. 2016-07-14 17:30:45 +01:00
aeb8dee561 Fix detection of strings starting by ../ 2016-07-14 15:36:29 +01:00
3edb83dce3 Add new shared_git_project module for cmake. 2016-07-14 14:05:19 +01:00
cf9ac6b296 Add locking so async communication works correctly.
helgrind says it works. I think.
2016-06-29 22:51:45 +01:00
e179a31616 Change CRYPTOPP case to CryptoPP as it seems to be the official convention.
Looking at this page https://cryptopp.com/wiki/CMake#Using_the_library_in_other_projects
it seems to me there should be or there is going to be a system-wide
official FindCryptoPP module. Those changes should match the case convention
from that page... somewhat. I'm not going to do the cryptopp-shared thing.

So *if* that official module will ever become available on mainstream distros,
and *if* they start using proper names, this file should just be deleted
and everything should keep on working just fine.
2016-06-20 18:56:31 +01:00
af0f18d5ff Fix indentation so vim is happy. 2016-06-20 18:50:15 +01:00
8324527073 Import Findcryptopp.cmake.
See: https://github.com/ceph/ceph/blob/master/cmake/modules/Findcryptopp.cmake
2016-06-20 18:50:01 +01:00
29c98c0154 Add module to find Redis C library 2016-06-02 22:49:49 +01:00
354c760a07 Use the same compiler passed to cmake for libpqtypes.
Don't bother the user with silly messages, if the compiler doesn't
work then it just won't work. But at least try, u damn script!
2016-05-13 19:54:25 +01:00
2a2e9e501a Forgot to remove the time from the date 2016-04-22 20:49:51 +02:00
343c44add5 Add an option to compile the build date into dindexer's binary 2016-04-22 01:35:57 +02:00
69590a0267 Improve compiler version detection in cmake 2016-04-14 20:47:16 +02:00
a75eee1325 Add DINDEXER_NATIVE_RELEASE cmake option.
Allows to pass -march=native to dindxer projects and to libpqtypes.
CMake min version raised to 3.3 since externalproject_add didn't
support generator expressions prior to that version.
2016-03-17 09:11:13 +01:00
d21a4fa374 Use readline
Maybe this should be made optional?
2016-03-15 08:42:01 +01:00
c89d4b69d5 Add install target. 2016-02-11 09:07:36 +01:00
f094f31477 Allow user to set c++11 abi if using gcc 5 2016-02-10 20:55:52 +01:00
a91e75829f Fix libpqtypes as external project.
Note: due to a bug in cmake/ninja, this change introduces
problems when building with ninja. See:
https://cmake.org/Bug/view.php?id=15256
2015-12-27 03:09:08 +00:00
c409a3e0a2 Make main dindexer show options used to build. 2015-12-26 14:51:49 +00:00
148b60ee97 Add retrieving the mime type.
This is not being stored to the db yet.
2015-12-15 11:26:04 +00:00
bef901c56c Print git revision in --version. 2015-12-12 20:27:31 +00:00
fe2ea40c4f Implement autodetect set type.
Only supports HardDisk, Directory, CdRom, DVD, BluRay for now.
2015-12-08 13:56:46 +00:00
292e32b38f Read db connection parameters from a yml file. 2015-11-11 17:08:17 +00:00