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

473 commits

Author SHA1 Message Date
70a4a23eef Fix wrong actions install path 2016-10-12 23:30:12 +02:00
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
eea8d3323c Move lua scripts into their own directory
Build untested.
2016-10-12 22:59:02 +02:00
01c23c2664 Buildfix in release 2016-10-12 01:11:09 +02:00
11110c0428 Re-shuffle blocks of cmake code.
They should be grouped in a better way like this.
2016-08-10 01:40:09 +02:00
758cf4d9a0 Add detected target arch to builtin info. 2016-08-10 01:39:15 +02:00
a355e85c65 Hide the cmake warning from gtest.
Really gtest, sort it out already!
2016-08-10 01:30:59 +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
705bf615ba Stub implementation of a qt5 gui that can run locate command. 2016-08-09 22:22:15 +02:00
08a6c0d73d Detect compiler to use.
For example if you run the script from dindexer/clang_debug
you will tell cmake to make a debug build using clang.
You can also use gcc_debug but there is no way to specify
a particular version.
2016-08-02 02:11:05 +02:00
a10982533e Add helper scripts for wrapping cmake invocation
export_compile_commands assumes you have your working copy in
$HOME/dev/code/dindexer and you are running it from your build
directory, which is in something like
$HOME/dev/build/dindexer/<config>

It will then invoke cmake with CMAKE_EXPORT_COMPILE_COMMANDS ON
for YouCompleteMe to work. The exported .json file is
automatically symlinked into your working copy. Any previous
symlink or file is deleted from your working copy first, so if
you run this script for Release and then for Debug, the appropriate
symlink to Debug will be in your working tree.

cmake_default simply wraps export_compile_commands passing
default cmake values I normally like to use.
2016-08-02 01:21:34 +02:00
ec8e451481 Add YouCompleteMe files to gitignore 2016-08-02 00:10:35 +02:00
2e5bb32439 Improve flat_git script.
It now has a clone subcommand that does the same thing as before,
and a status subcommand that tells the user what submodules
are flattened.
2016-07-27 23:46:11 +02:00
b520b2f3d4 Try to fix error during make install. 2016-07-15 20:14:40 +01:00
f28ff13492 travis is not getting the -fPIC right for pq it seems.
Also make top-level cmake file default to Release if
no build type is given.
2016-07-15 20:02:42 +01:00
06abcab627 Fix install command for hiredis in travis script 2016-07-15 19:39:20 +01:00
32ca308982 Compile hiredis manually because the one from travis dates back to 2011 2016-07-15 19:26:42 +01:00
3cf0f95343 Add libev to travis config 2016-07-15 19:11:30 +01:00
e6ea0abe38 Update incredis, see if it fixes the build on travis 2016-07-15 19:05:01 +01:00
1b80d85d7e Fix travis config 2016-07-15 18:51:50 +01:00
53540e40d8 Fix incredis.hpp not found error. 2016-07-15 18:47:57 +01:00
ccf13d7dfe Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off 2016-07-15 17:45:48 +01:00
ac79665c9e Need travis to build boost-regex too... 2016-07-15 17:24:12 +01:00
b84c31fb15 Buildfix on travis.
Don't include incredis when not needed, or cmake will look for hiredis.
Install hiredis and enable redis backend explicitly.
2016-07-15 17:12:40 +01:00
2467f2f12d Fix a bug with the script not detecting non-empty
directories properly. It was looking for a relative path,
but the base path would change across invocations of clone_submodules().
2016-07-15 16:55:06 +01:00
29c71c9222 Merge 2016-07-15 15:51:42 +01:00
062b927d39 Add unlicense license to flat_git. 2016-07-15 15:47:21 +01:00
7804fbccbc Import flat_git tool 2016-07-15 15:23:38 +01:00
45ff635ee1 Update list of submodules to be ignored by flat_git 2016-07-15 15:17:55 +01:00
b021c36080 Update submodules 2016-07-15 15:11:45 +01:00
29c6e084b3 Update submodules 2016-07-15 15:00:54 +01:00
5ddd8d9408 Update submodules 2016-07-15 14:55:33 +01:00
e5814a5575 Buildfix in redis backend 2016-07-14 18:13:30 +01:00
f96fa212d6 Remove Sprout - it's not used by this project anymore.
duckhandy still uses it, and it pulls it in by itself.
2016-07-14 18:04:25 +01:00
6478b45dbf Updated submodules 2016-07-14 17:31:56 +01:00
2f6c4f3dab Remove incredis and import it as a submodule. 2016-07-14 17:30:45 +01:00
7a3438def6 Fix namespaces.
Build works, except for incredis which I'm going to move out anyways.
2016-07-14 16:02:15 +01:00
a5477c99cf Import duckhandy as a submodule and fix includes. 2016-07-14 15:52:03 +01:00
aeb8dee561 Fix detection of strings starting by ../ 2016-07-14 15:36:29 +01:00
a5d9d6b716 Remove helpers from this repo.
They have been pulled out into a separate git repository.
Adding that as a submodule in an upcoming commit.
2016-07-14 15:27:11 +01:00
3edb83dce3 Add new shared_git_project module for cmake. 2016-07-14 14:05:19 +01:00
dc814b4d09 Move flatinsertin2dlist to postgresql backend.
It's the only place using that header and its use is so
specialized I struggle to even remember what it does.
2016-07-14 11:24:41 +01:00
0b10316d9e Use lexical_cast from dinhelp, not boost. 2016-07-14 11:02:06 +01:00
4e41ea1864 Move hiredis wrapper into a separate .so
...but the new cmake file has some ugly hacks. Trying to work on
the problems...
2016-07-13 15:13:59 +01:00
43e53c3740 Move pending futures count's ownership to Command.
This is to make the count global across batches created from
the same Command.
2016-07-13 14:28:32 +01:00
960f10c370 Silence verbose feedback from commands sent to Redis. 2016-07-13 12:19:52 +01:00
853fb13495 Implement find_paths_starting_by(). 2016-07-13 12:19:27 +01:00
12c062b939 Prevent values being stolen accidentally and provide proper overloads. 2016-07-13 12:17:54 +01:00
f58d7d84eb Implement find_file_details(). 2016-07-13 01:49:29 +01:00
9a84f63e54 Implement zrangebyscore(). 2016-07-13 01:49:29 +01:00